Dynamic trap table interposition for efficient collection of trap statistics
Abstract
A system and method for monitoring the performance of a computer system by dynamically interposing an instrumented trap table. A base address of a trap table, which may be contained in a trap base address register, may be changed to indicate an instrumented trap table. An instrumented trap table may gather a variety of statistics, including the type of trap and an entry timestamp. An instrumented trap table may then call a non-instrumented trap table to process the trap. A non-instrumented trap table may pass control back to the instrumented trap table to collect further statistics, for example an exit timestamp. An instrumented trap table may then return process flow to the calling routing. In this manner, useful performance statistics may be gathered while trap events are processed by regular, optimized software.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 10.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A computer system for gathering performance statistics comprising: a first trap table for responding to trap events, said first trap table comprising addresses of a plurality of trap handling routines; a second trap table for gathering trap statistics and for referencing said first trap table, said second trap table comprising a plurality of counters for maintaining counts of different trap types for encountered trap events; a pointer for selecting between said first and second trap tables, wherein said pointer indicates said second trap table when trap statistic gathering is enabled and other
- Claim 2Depends on #1
The method as described in claim 1 wherein said statistics comprise a count of each of a plurality of trap types for each of a plurality of privilege levels of an operating system.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (10 of 10 total)
References Cited — Backward Prior Art (10)
Non-Patent Literature (4)
- Jacobson, Quinn; Smith, James E. "Instruction Pre-Processing in Trace Processors", Jan. 1999, IEEE retrieved Nov. 29, 2004.
- Kapur, Hohit; Hay, Cy; Williams, T.W; "The Mutating Metric for Benchmarking Test", p. 18-21, IEEE 2000, retrieved Jan. 19, 1005.
- Martonosi, Margaret; Ofelt, David; Heinrich, Mark; "Integrating Performance Monitoring and Communication in Parallel Computers", p. 138-147, 1996 ACM, retrieved Jan. 19, 2005.
- May, John M; "MPX: Software for Multiplexing Hardware Performance Counters in Multithreaded Programs", 2001 IEEE, retrieved Jan. 19, 2005.