DocumentCode :
3471895
Title :
Selecting software phase markers with code structure analysis
Author :
Lau, Jeremy ; Perelman, Erez ; Calder, Brad
Author_Institution :
Dept. of Comput. Sci. & Eng., California Univ., San Diego, CA, USA
fYear :
2006
fDate :
26-29 March 2006
Abstract :
Most programs are repetitive, where similar behavior can be seen at different execution times. Algorithms have been proposed that automatically group similar portions of a program\´s execution into phases, where samples of execution in the same phase have homogeneous behavior and similar resource requirements. In this paper, we present an automated profiling approach to identify code locations whose executions correlate with phase changes. These \´\´software phase markers" can be used to easily detect phase changes across different inputs to a program without hardware support. Our approach builds a combined hierarchical procedure call and loop graph to represent a program\´s execution, where each edge also tracks the max, average, and standard deviation in hierarchical execution variability on paths from that edge. We search this annotated call-loop graph for instructions in the binary that accurately identify the start of unique stable behaviors across different inputs. We show that our phase markers can be used to accurately partition execution into units of repeating homogeneous behavior by counting execution cycles and data cache hits. We also compare the use of our software markers to prior work on guiding data cache reconfiguration using data-reuse markers. Finally, we show that the phase markers can be used to partition the program\´s execution at code transitions to pick accurately simulation points for SimPoint. When simulation points are defined in terms of phase markers, they can potentially be re-used across inputs, compiler optimizations, and different instruction set architectures for the same source code.
Keywords :
instruction sets; optimising compilers; program control structures; program diagnostics; SimPoint; automated profiling approach; call-loop graph; code location identification; code structure analysis; compiler optimizations; data cache hits; data cache reconfiguration; data-reuse markers; execution cycles; hierarchical procedure call; instruction set architectures; phase change detection; program execution partition; software phase markers; Acceleration; Clustering algorithms; Computer science; Hardware; Heuristic algorithms; Optimizing compilers; Pattern analysis; Phase detection; Program processors; Tracking loops;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Code Generation and Optimization, 2006. CGO 2006. International Symposium on
Print_ISBN :
0-7695-2499-0
Type :
conf
DOI :
10.1109/CGO.2006.32
Filename :
1611536
Link To Document :
بازگشت