arrow
Return

Hierarchical Program Paths

delete2016-08-22
delete6
PRE
AI
W
W. K. Chan *
DOI:10.1145/2963094delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Complete dynamic control flow is a fundamental kind of execution profile about program executions with a wide range of applications. Tracing the dynamic control flow of program executions for a brief period easily generates a trace consisting of billions of control flow events. The number of events in such a trace is large, making both path tracing and path querying to incur significant slowdowns. A major class of path tracing techniques is to design novel trace representations that can be generated efficiently, and encode the inputted sequences of such events so that the inputted sequences are still derivable from the encoded and smaller representations. The control flow semantics in such representations have, however, become obscure, which makes implementing path queries on such a representation inefficient and the design of such queries complicated. We propose a novel two-phase path tracing framework-Hierarchical Program Path (HPP)-to model the complete dynamic control flow of an arbitrary number of executions of a program. In Phase 1, HPP monitors each execution, and efficiently generates a stream of events, namely HPPTree, representing a novel tree-based representation of control flow for each thread of control in the execution. In Phase 2, given a set of such event streams, HPP identifies all the equivalent instances of the same exercised interprocedural path in all the corresponding HPPTree instances, and represents each such equivalent set of paths with a single subgraph, resulting in our compositional graph-based trace representation, namely, HPPDAG. Thus, an HPPDAG instance has the potential to be significantly smaller in size than the corresponding HPPTree instances, and still completely preserves the control flow semantics of the traced executions. Control flow queries over all the traced executions can also be directly performed on the single HPPDAG instance instead of separately processing the trace representation of each execution followed by aggregating their results. We validate HPP using the SPLASH2 and SPECint 2006 benchmarks. Compared to the existing technique, named BLPT (Ball-Larus-based Path Tracing), HPP generates significantly smaller trace representations and incurs fewer slowdowns to the native executions in online tracing of Phase 1. The HPPDAG instances generated in Phase 2 are significantly smaller than their corresponding BLPT and HPPTree traces. We show that HPPDAG supports efficient backtrace querying, which is a representative path query based on complete control flow trace. Finally, we illustrate the ease of use of HPPDAG by building a novel and highly efficient path profiling technique to demonstrate the applicability of HPPDAG.
Keywords:
Path tracing
interprocedural path
hierarchical and compositional representation

Journal

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
Papers:
1.3K
Citations:
3.8K

Organization

C
City University of Hong Kong
Scholars:
2.6K
Papers: 1.2K
Citations: 3
Cited Papers

Cited Papers

Contemporary review of testicular torsion: New concepts, emerging technologies and potential therapeutics
err2013-12-01
err0
errOAAI
errDaniel G. DaJusta; Candace F. Granberg; Carlos Villanueva; Linda A. Baker
errShare
errSave
Changes in Prognostic and Therapeutic Parameters in Prostate Cancer from an Epidemiological View over 20 Years
err2015-01-26
err0
errOAAI
errMartin Dörr; Dieter Hölzel; Gabriele Schubert-Fritschle; Jutta Engel; Anne Schlesinger-Raab
errShare
errSave
errShare
errSave
Organização dos serviços farmacêuticos no Sistema Único de Saúde em regiões de saúde
err2017-04-01
err0
errOAAI
errSuetônio Queiroz Araújo; Karen Sarmento Costa; Vera Lucia Luiza; Carmen Lavras; Eucilene Alves Santana; Noemia Urruth Leão Tavares
errShare
errSave
Can Listening to Music Decrease Pain, Anxiety, and Stress During a Urodynamic Study? A Randomized Prospective Trial Focusing on Gender Differences
err2017-06-01
err0
PREAI
errJi Sung Shim; Ji Yun Chae; Sung Gu Kang; Jae Young Park; Jae Hyun Bae; Seok Ho Kang; Hong Seok Park; Du Geon Moon; Jun Cheon; Jeong Gu Lee; Je Jong Kim; Mi Mi Oh
errShare
errSave
Liquid Immiscibility and Problems of Ore Genesis: Experimental Data
err2019-09-17
err0
PREAI
errYu. B. Shapovalov; A. R. Kotelnikov; N. I. Suk; V. S. Korzhinskaya; Z. A. Kotelnikova
errShare
errSave
researcher View more