Hardware-based edge profiling
Abstract
A method comprising: counting each occurrence of a hardware event by a Performance Monitoring Counter of a hardware processor during the execution of a target program code; orderly and continuously storing in a buffer of a Taken Branch Trace (TBT) Facility of said hardware processor a predefined TBT size of last taken branches of said target program code during its execution; every time said counting equals a sampling rate, triggering sampling of said buffer, to receive a TBT comprising current said predefined TBT size of last taken branches; constructing a full branch trace for each said TBT based on said target program code; extracting a predefined Chopped Branch Trace (CBT) size of last branches from each said full branch trace, to receive a chopped branch trace for said each TBT; and incrementally storing each said chopped branch trace to generate an edge profile of said target program code.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 23 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method comprising: counting each occurrence of a hardware event by a Performance Monitoring Counter (PMC) of at least one hardware processor during the execution of a target program code, wherein each occurrence of each hardware event comprises any of: a taken and a not taken branch; orderly and continuously storing in a buffer of a Taken Branch Trace Facility (TBTC) of said at least one hardware processor a predefined Taken Branch Trace (TBT) size of last taken branches of said target program code during its execution; every time said counting of any of said taken and said not taken branche
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (23)
Non-Patent Literature (5)
- Alex Shye et al., "Analyis of Path Profiling Information Generated with Performance Monitoring Hardware" Interaction between Compilers and Computer Architectures, 2005. INTERACT-9. 9th Annual Workshop on Feb. 13, 2005, pp. 34-43.
- Chen et al., Taming Hardware Event Samples for Precise and Versatile Feedback Directed Optimizations, published by IEEE Transaction on computers vol. 62, No. 2, Feb. 2014, pp. 376-389.
- Thomas M. Conte et al., "Accurate and practical profile-driven compilation using the profile buffer", MICRO 29 Proceedings of the 29th annual ACM/IEEE international symposium on Microarchitecture, pp. 36-45, 1996.
- Vinodha Ramasamy et al., "Feedback-Directed Optimizations with Estimated Edge Profiles from Hardware Event Sampling", Proceedings of GCC Summit 2008, pp. 87-102.
- Wu & Larus., "Static branch frequency and program profile analysis", MICRO 27 Proceedings of the 27th annual international symposium on Microarchitecture, pp. 1-11.