Randomly branching using performance counters
Abstract
A system and method for efficiently performing program instrumentation. A processor processes instructions stored in a memory. When the processor processes a given instruction of a given instruction type, the processor updates a corresponding performance counter. When the performance counter reaches a threshold, the processor generates an interrupt and compares a location of the given instruction with stored locations in a given list. If a match is not found, then the processor processes an instruction following the given instruction in the computer program without processing intermediate instrumentation code. If a match is found, then the processor processes instrumentation code. Regardless of whether or not the instrumentation code is processed, when control flow returns to the computer program, the corresponding performance counter is initialized with a random value.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 26 · Forward citations: 0.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A computing system comprising: a memory configured to store a computer program; a processor coupled to the memory, wherein the processor is configured to: process instructions of the stored computer program; and responsive to at least detecting a predetermined instruction type being processed: update a count, wherein the count is initialized with a pseudorandom number; and in response to determining the count reaches a threshold, process instrumentation code in place of the computer program, in response to at least determining a program location of the predetermined instruction type matches a
- Claim 2Depends on #1
The computing system as recited in claim 1 , wherein in further response to detecting the predetermined instruction type, the processor is further configured to process an instruction fol
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 (26)
Non-Patent Literature (4)
- Dean, et al., "ProfileMe: Hardware Support for Instruction-Level Profiling on Out-of-Order Processors", MICRO 30 Proceedings of the 30th Annual ACM/IEEE International Symposium on Microarchitecture, Dec. 1-3, 1997, 12 pages, IEEE Computer Society, Washington, DC, USA.
- Drongowski, Paul J., "Instruction-Based Sampling: A New Performance Analysis Technique for AMD Family 10h Processors", Advanced Micro Devices, Inc., Nov. 16, 2007, 14 pages.
- Lee, et al., "Branch-on-Random", Proceedings of the 6th Annual IEEE/ACM International Symposium on Code Generation and Optimization, Apr. 5-10, 2008, 10 pages, ACM, New York, NY, USA.
- 'Modern Microprocessors-A 90 Minute Guide!' by Patterson, archived version from Aug. 2012.