Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Hardware-assisted program trace collection with selectable call-signature capture

a hardware mechanism and program tracing technology, applied in the field of hardware-assisted program tracing, can solve the problem that the hardware mechanism for tracing along specific program paths is not generally presen

Inactive Publication Date: 2013-02-28
IBM CORP
View PDF7 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

This patent text describes a processor, computer system, computer program product, and method that can uniquely identify program trace segments between call and return pairs during program execution. This is accomplished by computing the program call signature when a specified root instruction is executed. This technology can aid in program profiling and debugging. Additionally, the patent describes how the processor can have a single or multiple register to store the call signature, which can be determined based on the processor's operating mode. The technical effects of this technology include improved program profiling and debugging and improved efficiency in identifying program trace segments.

Problems solved by technology

However, specific hardware mechanisms to support program tracing along specific program paths are not generally present in today's processors.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Hardware-assisted program trace collection with selectable call-signature capture
  • Hardware-assisted program trace collection with selectable call-signature capture
  • Hardware-assisted program trace collection with selectable call-signature capture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020]The present invention relates to processors, methods and computer programs for tracing program execution using hardware-assisted program trace collection. The processor includes a register that is programmed with the address of a specified root instruction, and commences capture of branch history information once the root instruction is encountered. The processor also computes a signature that uniquely describes the subroutine call and return history and the value of the signature is captured when the root instruction is executed, in order to identify the sequence of function calls and returns that led to the root instruction. The processor may include a selectable operating mode that governs how capture of the signature is performed. In one operating mode, a program call signature is captured every time the root instruction is executed. After execution has proceeded long enough for the program to reach a steady-state condition, the processor waits for the root instruction to ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Hardware-assisted program tracing is facilitated by a processor that includes a root instruction address register, a program trace signature computation unit and a call signature register. When a program instruction having an address matching the root instruction address register is executed, a program trace signature is captured in the call signature register and capture of branch history is commenced. By accumulating different values of the call signature register, for example in response to an interrupt generated when the root instruction is executed, software that performs program tracing can obtain signatures of all of the multiple execution paths that lead to the root instruction, which is also specified by software in order to set different root instructions for program tracing. In an alternative implementation, a storage for multiple call signatures is provided in the processor and read at once by the software.

Description

[0001]This U.S. Patent Application is a Continuation-in-Part of, and thus claims priority under 35 U.S.C. 120 to, U.S. patent application Ser. No. 13 / 214,352 filed on Aug. 22, 2011, the disclosure of which is incorporated herein by reference. The above-incorporated U.S. Patent Application has at least one inventor in common with the present U.S. Patent Application and is assigned to the same Assignee.BACKGROUND OF THE INVENTION[0002]1. Field of the Invention[0003]The present invention is related to hardware-assisted program tracing, and more specifically to a processor and method that capture a call signature when a specified root instruction is executed, and optionally when the call signature also has a specified value.[0004]2. Description of Related Art[0005]Run-time program tracing software provides valuable insight as to the actual patterns of execution encountered during program execution. Such information can be used to selectively optimize program code and to inform developer...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/34
CPCG06F11/348G06F2201/83G06F11/3466G06F11/3636G06F2201/865
Inventor FRAZIER, GILES R.LEVITAN, DAVID S.MESTAN, BRIAN R.SERRANO, MAURICIO J.
Owner IBM CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products