Edge profiling for executable program code having branches through stub code segments
Abstract
Method and apparatus for profiling edges that pass through stub code segments in executable program code. The compilation and linking of a computer program sometimes generates stub code segments that implement the transfer of control to functions that are external to a local segment of code. Branches through the stub code segments hinder the analysis of edges relative to the source code. In various embodiments of the invention, edges are created to represent respective branch instructions in the executable program code. Each edge has a source attribute, a target attribute, and an edge-taken count attribute. During execution, the numbers of times edges are taken are counted, and stub entry points and stub targets are identified. For each edge having a target that matches an entry point of a stub code segment, the edge target is changed to the stub target associated with the matching entry point. By identifying edges that target stub code segments, edges that target stub code segments can be combined with other edges for correlation with the source code.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 19.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method for generating edge profile data for executable program code generated from source code, comprising: creating edges that represent respective branch instructions in the executable program code, each edge having associated therewith a source attribute, a target attribute, and an edge-taken count attribute; counting numbers of times the branch instructions are executed and assigning values of the numbers to the edge-taken count attributes of the edges; identifying entry point addresses and target addresses of stub code segments in the executable program code; and fo
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 19 total)
References Cited — Backward Prior Art (6)
Non-Patent Literature (1)
- S. Graham, P. Kessler, M. McKusick; gprof: a Call Graph Execution Profiler; Jun. 1982; Proceedings of the SIGPLAN '82 Symposium on Compiler Construction, SIGPLAN Notices, vol. 17, No. 6.