Hardware profiling mechanism to enable page level automatic binary translation
Abstract
A hardware profiling mechanism implemented by performance monitoring hardware enables page level automatic binary translation. The hardware during runtime identifies a code page in memory containing potentially optimizable instructions. The hardware requests allocation of a new page in memory associated with the code page, where the new page contains a collection of counters and each of the counters corresponds to one of the instructions in the code page. When the hardware detects a branch instruction having a branch target within the code page, it increments one of the counters that has the same position in the new page as the branch target in the code page. The execution of the code page is repeated and the counters are incremented when branch targets fall within the code page. The hardware then provides the counter values in the new page to a binary translator for binary translation.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
An apparatus comprising: one or more processor cores, each of the one or more of the processor cores including performance monitoring hardware; and cache units coupled to the one or more processor cores, wherein the performance monitoring hardware is configured to: identify a code page in memory containing potentially optimizable instructions; request allocation of a new page in the memory, wherein the new page is associated with the code page, and wherein the new page contains a collection of counters and the counters correspond to instructions in the code page; detect a branch instruction ha
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (8)
Non-Patent Literature (5)
- Extended European Search Report from European Patent Application No. 12873053.7, mailed Dec. 3, 2015, 11 pages.
- Lenoski, D. et al., "The DASH Prototype: Logic Overhead and Performance", IEEE Transactions on Parallel and Distributed Systems, IEEE Service Center, Los Alamitos, CA, US, vol. 4, No. 1, Jan. 1, 1993, pp. 41-61, KP000381324, ISSN: 1045-9219, DOI: 10.1109171.205652.
- Merten et al., An architectural framework for runtime optimization, Jun. 2001, IEEE transactions on computers, vol. 50 No. 6, 23 pages.
- PCT International Search Report for PCT Counterpart Application No. PCT/US2012/031572, 4 pgs., (Nov. 1, 2012).
- PCT Written Opinion of the International Searching Authority for PCT Counterpart Application No. PCT/US2012/031572, 4 pgs., (Nov. 1, 2012).