Recovery from nested exceptions in an instrumentation routine
Abstract
A system and method for instrumentation of software, the software comprising a set of instructions (program or code) which are executable on a processor of a system, for example a computer system. A location in the instruction to insert a probe is first identified. The instruction is replaced with the probe by copying the instruction to a predefined location. The instruction is executed in the kernel space. A first exception is generated upon encountering the probe and calling a first exception handler, and the first exception handler is configured to call an instrumentation routine. A second exception is generated when the instrumentation routine encounters an error and calling a second exception handler, recovering from the exceptions and returning to a sane state to continue normal execution of the instruction.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 19 · Forward citations: 13.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of instrumentation for a software instruction, the method comprising: identifying a location in the instruction to insert a probe, wherein the probe is a breakpoint; replacing the instruction with the probe by copying the instruction to a predefined location; executing, by a processor, the instruction in a kernel space; generating a first exception upon encountering the probe and calling a first exception handler, wherein the first exception handler is configured to call an instrumentation routine; saving a system register state as part of the first exception; executing the first exce
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (13 of 13 total)
References Cited — Backward Prior Art (19)
Non-Patent Literature (5)
- Brenda M. Ozaki, Eduardo B. Fernandez, Ehud Gudes, "Software Fault Tolerance in Architectures with Hierarchical Protection Levels" Jul./Aug. 1988 (vol. 8, No. 4) pp. 30-43.
- Donnamaie E. White "Bit-Slice Design: Controllers and ALUs" http://www10.dacafe.com/book/parse-book.php?article=BITSLICE/BIT-CHAP-4/bitCh4C.html.
- Govindarajan, "Exception handlers in funcational programming languages", IEEE, pp. 826-834, 1993.
- Kumar et al, "Tdb: A source level debugger for dynamiclaly translated programs", ACM AADEBUG, pp. 123-132, 2005.
- Tikir et al, "Effiient instrumentation for code coverage testing", ACM, pp. 86-96, 2002.