arrow
Return

Precise Calling Context Encoding

delete2012-09-01
delete18
delete
OA
AI
W
William N. Sumner *
Y
Yunhui Zheng
D
Dasarath Weeratunge
X
Xiangyu Zhang
DOI:10.1109/TSE.2011.70delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Calling contexts (CCs) are very important for a wide range of applications such as profiling, debugging, and event logging. Most applications perform expensive stack walking to recover contexts. The resulting contexts are often explicitly represented as a sequence of call sites and hence are bulky. We propose a technique to encode the current calling context of any point during an execution. In particular, an acyclic call path is encoded into one number through only integer additions. Recursive call paths are divided into acyclic subsequences and encoded independently. We leverage stack depth in a safe way to optimize encoding: If a calling context can be safely and uniquely identified by its stack depth, we do not perform encoding. We propose an algorithm to seamlessly fuse encoding and stack depth-based identification. The algorithm is safe because different contexts are guaranteed to have different IDs. It also ensures contexts can be faithfully decoded. Our experiments show that our technique incurs negligible overhead (0-6.4 percent). For most medium-sized programs, it can encode all contexts with just one number. For large programs, we are able to encode most calling contexts to a few numbers. We also present our experience of applying context encoding to debugging crash-based failures.
Keywords:
Calling context
context sensitivity
profiling
path encoding
calling context encoding
call graph
errShare
errSave
Frequency and recency context for the management and retrieval of personal information on mobile devices
err2014-12-01
err7
PREAI
errStefanis, Vassileios; Plessas, Athanasios; Komninos, Andreas; Garofalakis, John
errShare
errSave
A probabilistic ontology-based platform for self-learning context-aware healthcare applications
err2013-12-01
err37
errOAAI
errOngenae, Femke; Claeys, Maxim; Dupont, Thomas; Kerckhove, Wannes; Verhoeve, Piet; Dhaene, Tom; De Turck, Filip
errShare
errSave
errShare
errSave
Enhancing the detection of metamorphic malware using call graphs
err2014-10-01
err48
PREAI
errElhadi, Ammar Ahmed E.; Maarof, Mohd Aizaini; Barry, Bazara I. A.; Hamza, Hentabli
errShare
errSave
Joint Cranial Bone Labeling and Landmark Detection in Pediatric CT Images Using Context Encoding
err2023-10-01
err3
PREAI
errLiu, Jiawei; Xing, Fuyong; Shaikh, Abbas; French, Brooke; Linguraru, Marius George; Porras, Antonio R.
errShare
errSave

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
3.0K
Citations:
1.3W

Organization

Purdue University System cover
Purdue University System
Scholars:
4.0W
Papers: 3.6W
Citations: 4.7W
Cited Papers

Cited Papers

Thermo-Optical “Canard Orbits” and Excitable Limit Cycles
err2004-02-18
err0
errOAAI
errFrancesco Marino; Gustau Catalán; Pedro Sánchez; Salvador Balle; Oreste Piro
errShare
errSave
Micro FET pressure sensor manufactured using CMOS-MEMS technique
err2008-05-01
err0
PREAI
errChing-Liang Dai; Pin-Hsu Kao; Yao-Wei Tai; Chyan-Chyi Wu
errShare
errSave
Impact of Increasing Diabetes on Coronary Artery Disease in the Past Decade
err2004-01-01
err0
errOAAI
errHiroshi Takaishi; Takahiro Taniguchi; Yoshio Fujioka; Yuichi Ishikawa; Mitsuhiro Yokoyama
errShare
errSave
Implantable and Semi-Implantable Hearing Aids: A Review of History, Indications, and Surgery
err2014-04-09
err0
errOAAI
errPatrick Burke; Isabela Jardim; Rubens Brito; Robinson Tsuji; Anna Fonseca; Ricardo Bento; Aline Bittencourt
errShare
errSave
researcher View more