Invention Grant
- Patent Title: Dynamic instrumentation
- Patent Title (中): 动态仪器仪表
-
Application No.: US12642973Application Date: 2009-12-21
-
Publication No.: US08832666B2Publication Date: 2014-09-09
- Inventor: Balbir Singh , Maneesh Soni
- Applicant: Balbir Singh , Maneesh Soni
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: The Steadman Law Firm PLLC
- Agent Cynthia G. Seal; Katherine S. Brown
- Main IPC: G06F9/44
- IPC: G06F9/44

Abstract:
A method and system for instrumentation are provided along with a method for instrumentation preparation. The method for instrumentation preparation may comprise obtaining address data of an original instruction in an original instruction stream, obtaining kernel mode data comprising a kernel breakpoint handler, obtaining user mode data comprising a user breakpoint handler, allocating a page of a process address space, creating a trampoline, associating the trampoline with a breakpoint instruction, and replacing the original instruction with the breakpoint instruction. The method for instrumentation may comprise detecting the breakpoint instruction, calling the kernel breakpoint handler, modifying an instruction pointer via the kernel breakpoint handler such that the instruction pointer points to the trampoline, and executing the trampoline. The system for instrumentation may comprise a breakpoint setup module and a breakpoint execution module for respectively setting up and completing instrumentation involving the trampoline.
Public/Granted literature
- US20110154297A1 DYNAMIC INSTRUMENTATION Public/Granted day:2011-06-23
Information query