The present invention, in various embodiments, provides techniques for adding capabilities to a debugger for a user to debug a program more efficiently. In one embodiment, when the debugger and the program are run, one or more breakpoints are reached. At each breakpoint, the…
Robert Hundt
A software tool includes logic configured to enable a child process that inherits the address space of a modified parent process to execute an unaltered version of the address space when the child process inherits the altered address space of the parent process. A method for…
A computer-implemented method for examining a software program using dynamic instrumentation and instruction pointer sampling. In one embodiment, the method includes the step of inserting probe code into a program during runtime. A performance analysis tool is used to collect…
Method and apparatus for dynamic instrumentation of an executable application program. The application program includes a plurality of functions, each function having an entry point and an endpoint. When the application is executed, a shared memory segment is created for an…
A debug interface, includes logic responsive to a pre-fork event, the pre-fork event responsive to a fork instruction call wherein the pre-fork event includes indicia that identifies a child process to be created in accordance with the fork instruction call. A method for…
Method and apparatus for optimization of an executable program that calls procedures in a shared library. Code segments that read procedure address information from a linkage table are first identified. Each linkage code segment is associated with a call to a procedure in the…
A method and system for analyzing a virtual function. In one embodiment, the present invention determines whether a virtual table exists for a virtual function, and determines a call type for the virtual function. In the present embodiment, provided the virtual table is located,…
Method and apparatus for optimizing executable program code having linkage stub code segments. A linkage stub code segment has a symbolic name that is a variation of the symbolic name for the code that implements the function and is used to transfer control to the code that…
Method and apparatus for profiling edges that pass through stub code segments in executable program code. The compilation and linking of a computer program sometimes generates stub code segments that implement the transfer of control to functions that are external to a local…
Computer-implemented methods for dynamic instrumentation of an application program are provided. One such computer-implemented method includes creating substitute functions corresponding to the original functions in the application program, executing the substitute functions in…
Techniques for partitioning modules into smaller groups are disclosed. In various embodiments, cross-module optimization may be performed on these smaller groups. Further, related modules are grouped together based on a predefined algorithm. Relatedness, or closeness, or…
A computer-implemented method for creating a process invocation tree includes identifying an event indicating that a parent process of interest has invoked a child process, suspending execution of the child process, collecting information-of-interest associated with the…
Method and apparatus for handling calls from relocated instrumented functions to functions that expect a return pointer value in an original address space. In various embodiments of the invention, instrumented versions of selected functions of an executable program are generated…
Techniques for cloning programming code are disclosed. In an embodiment, the cloned code is in the form of functions in the C language. Further, in a method embodiment, a clone of a function is invoked, and information mapping the clone to the function is generated. At link…
A method and system for reverting a process in an in-line instrumented state to an uninstrumented state. In one embodiment, the present invention modifies selected text segment portions from the process to be uninstrumented. The present embodiment then unmaps instrumented code…
A pair of functions setjmp( ) and longjmp( ) shares the data related to the program context. When instrumentation starts, the instrumentation tool creates the instrumented code, resulting in two sets of program code, e.g., the original code and the instrumented code. Functions…
The present invention, in various embodiments, is directed to techniques for providing debugging capability for program code instrumentation. In one embodiment, an instrumentor inserts an instrumentation breakpoint at the beginning of a block of original code. When this…
A method and system for enabling the registration of dynamically generated code and corresponding unwind information. In one embodiment, the present invention creates a module which includes data related to dynamically generated code and corresponding unwind information. The…
Method and apparatus for analysis of executable program code. The executable program includes segments of code that correspond to callable functions in the source code from which the executable code was generated Compiler-generated checkpoint descriptors are included in the…
Method and apparatus for optimizing an executable computer program having address-bridging code segments. Various embodiments are described for optimizing an executable computer program that occupies a first address space and has address-bridging code segments. Address-bridging…
A method and system for reverting a process in an in-line instrumented state to an uninstrumented state. In one embodiment, the present invention modifies selected text segment portions from the process to be uninstrumented. The present embodiment then unmaps instrumented code…
A method and system for examining an inlined function using a performance analysis tool. In one method embodiment, the present invention identifies an inlined function. Upon identification of the inlined function, the present embodiment uses a performance analysis tool to…
A method and system for lazily registering dynamically generated code and corresponding unwind information of a process. In one embodiment, the present invention detects a request for first unwind information related to first corresponding dynamically generated code. The present…