US20020078264A1 - System and method for capturing and storing trace data signals in system main storage - Google Patents

System and method for capturing and storing trace data signals in system main storage Download PDF

Info

Publication number
US20020078264A1
US20020078264A1 US09/206,326 US20632698A US2002078264A1 US 20020078264 A1 US20020078264 A1 US 20020078264A1 US 20632698 A US20632698 A US 20632698A US 2002078264 A1 US2002078264 A1 US 2002078264A1
Authority
US
United States
Prior art keywords
trace
array
data signals
main store
storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
US09/206,326
Other versions
US6457144B1 (en
Inventor
Raymond J. Eberhard
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
International Business Machines Corp
Original Assignee
International Business Machines Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by International Business Machines Corp filed Critical International Business Machines Corp
Priority to US09/206,326 priority Critical patent/US6457144B1/en
Assigned to INTERNATIONAL BUSINESS MACHINES CORPORATION reassignment INTERNATIONAL BUSINESS MACHINES CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: EBERHARD, RAYMOND J.
Publication of US20020078264A1 publication Critical patent/US20020078264A1/en
Application granted granted Critical
Publication of US6457144B1 publication Critical patent/US6457144B1/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/349Performance evaluation by tracing or monitoring for interfaces, buses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Definitions

  • This invention pertains to capturing trace data. More particularly, it pertains to capturing trace data for storage in main store.
  • Processor architectures often provide mechanisms for capturing instruction streams to aid performance analysis. However, there is also a need to provide for capture of processor bus and I/O bus behavior which is useful for analyzing memory controller performance. Further, having detailed and accurate information about instruction frequency and sequences is important for developing designs having high performance.
  • On-chip entities known as trace arrays which are used to collect information useful for debug have finite depth and are often not deep enough to capture enough information to completely analyze a problem.
  • a solution which has been used to address this problem provides off-chip signals (chip I/Os) to convey this same information to an external logic analyzer. This solution is costly since it reserves chip I/Os for problem debug which otherwise could be used to enhance performance or function.
  • U.S. Pat. No. 5,355,487 describes a software tracing system in which a trace buffer is configured as two buffers. This system requires the use of a trace hook and timer interrupts for controlling the interrupt mechanism. There is a need in the art for a method and system for tracing many facilities each hardware cycle and is, therefore, not constrained by a timer interrupt mechanism.
  • a system and method for capturing trace data in main store. Trace data signals are captured and driven to a trace array for storage. In accordance with a first embodiment, responsive to the trace array becoming full, further trace signal capture is disabled and the contents of the trace array are moved to main store. In accordance with a second embodiment, the contents of the trace array are moved to main store when a storage request queue is empty.
  • FIG. 1 illustrates the system of the invention for collecting and storing trace data to main store.
  • FIG. 2 illustrates the method steps of a first preferred embodiment of the invention.
  • FIG. 3 illustrates the method steps of a second preferred embodiment of the invention.
  • a method and system for capturing instruction sequence and instruction frequency data in a processor's main store—these are signals which are useful for hardware or software debug and performance monitoring. Additionally, it provides a method and system for capturing hardware debug information which otherwise exceeds the storage capability of a memory controller's trace array by storing this same information in main store. Which signals to record, when recording should begin, and which addresses in main store are used to store the signal values are selectable via program control. Once recording has completed, the signal values are accessed from main store by either the same processor, or a remote processor, via execution of a list of instructions which comprise a software program. Depending on its design, the software program provides an analysis which is useful for measuring performance or debugging hardware or software problems.
  • the system of the invention includes a memory controller used to manage the memory interface (main store interface) for processor and input and output (I/O) device access, a storage array used for accumulating trace data to be stored to main store, control logic used to determine when the array should be updated and when its contents should be stored to main store, an address register which provides the starting address of main store assigned to store trace data, an offset address register which identifies the current address to store trace data, and a space size register used to identify the amount of main store reserved to store trace data. Additionally, in accordance with a preferred embodiment of the invention, data capture is controlled by way of a sequence of instructions, i.e., a computer program.
  • Logic which selects the source of data to be traced is controlled by registers that contain a value which identifies the source to be traced.
  • the source selected to be traced is changed by modifying the value stored in these registers.
  • the value of a register is modified by either a memory mapped I/O (MMIO) request received from a processor, or by a request received from an IEEE 1149.1-like scan interface.
  • MMIO memory mapped I/O
  • a selected source is stored and accumulated in an on chip storage array, that is, a trace array of N words by M bits. Additional mechanisms and controls are provided to determine if data updates the array each machine cycle, or if the collection of data should occur only when a condition corresponding to criteria provided in a matching criteria control register is satisfied.
  • the matching criteria control register is updated using the same technique used to update the registers which select trace source data.
  • the array write address counter increments by one, providing the array with the next sequential address to store data. Data stored to the preceding address is preserved. The write address counter continues to increment as data store requests are received from control logic until all N storage locations in the storage array have been updated.
  • the array update control is disabled.
  • the current offset address is compared to the addresses provided in the trace starting address register and space size register. This comparison is performed to determine if enough memory remains within a predefined space in main store to store the contents of the storage array. If not enough memory exists to store the contents of the storage array, an attention signal is activated requesting program intervention. If trace space in main store exists, subsequent requests received on buses selected as an input source to the array are stalled. Requests which would otherwise be driven on the memory interface are stalled, and the contents of the storage array is read from the array and stored to main store beginning at the offset address.
  • the offset register is incremented by an amount equivalent to the number of memory addresses consumed by the contents of the array.
  • an alternative implementation provides additional control registers and logic which allow memory to be updated from the storage array when the memory interface is not busy.
  • the memory interface is busied with requests which store data from the storage array to main store until either all data captured in the storage array is stored to main store or until a memory request is received from either the processor or I/O bus.
  • Control logic is provided to keep track of what portion of the storage array contains data to be stored to main store.
  • requests are received by memory controller 100 from either processing unit 101 via system bus 102 , or an I/O unit 103 via I/O bus 104 .
  • a request may either be forwarded to main store 110 via storage bus 105 , or may target a specific register 106 - 109 within memory controller 100 .
  • the availability of storage bus 105 to deliver requests to main store 110 and the latency of main store 110 data access requires memory controller 100 to queue requests from system bus 103 or I/O bus 104 in queue 111 until the time when needed resources become available.
  • Trace array 112 Embedded within memory controller 100 is trace array 112 and its corresponding trace array control logic 113 .
  • Trace array 112 is a simple storage array N entries deep by M bits wide which is used as temporary storage for signal values which are to be stored to main store 110 .
  • Trace array control logic 113 includes several registers 106 - 109 used for controlling trace operations which are accessible via program control, i.e. register space read/write.
  • Trace control register 107 is used to enable/disable the trace function, control when trace record requests are sent to memory controller 100 , and identify those conditions that cause trace array entry creation.
  • Trace select register 106 provides select signals to a multiplexer 114 having inputs including system bus 102 , I/O bus 104 , and memory controller signals 117 wired with all possible memory controller 100 signals of interest, i.e. useful for performance analysis, and software/hardware debug.
  • Current trace address register 108 contains the address in main store 110 next to be updated with an entry from trace array 112 .
  • Trace end address register 109 contains the address of the last storage address assigned in main store 110 to store signal values.
  • trace control registers 113 are initialized to enable signal capture.
  • signals 114 selected by preprogrammed select register 106 are driven to trace array 112 to be stored.
  • trace array control logic 113 increments the store address it supplies to trace array 112 so that signal values previously captured in trace array 112 are preserved. The resulting incremented address becomes the next entry in trace array 112 used to capture signal values 114 .
  • steps 126 and 128 once all available entries within trace array 112 contain captured signal values, signal capture is disabled and, in step 130 , trace array control logic 113 compares the size of trace array 112 and the address stored in current trace address register 108 to the address stored in trace end address register 109 . If the store request exceeds the capacity of the address space assigned to trace, in step 132 attention signal 115 is activated, indicating that the address space reserved in main store 110 to record trace data has been exhausted. If sufficient space exists in main store 110 , in step 134 trace array control logic 113 requests memory controller 100 to store the contents of trace array 112 to main store 110 , preempting if necessary any other storage requests memory controller 100 might issue from request queue 111 to storage bus 105 .
  • step 138 the contents of trace array 112 are stored to the main store 110 address identified by current trace address register 108 .
  • the address stored in current trace address register 108 is incremented by an amount equivalent to the amount of storage consumed by the store, and in step 142 signal capture is enabled. Thereupon, storage bus 105 returns to handling requests in queue 111 received from memory controller 100 on behalf of processor 101 and I/O 103 .
  • steps 120 , 122 , 124 , 126 , 128 and 132 function as described above with respect to FIG. 2, with some modification as described below.
  • captured signal values are delivered from trace array 112 to main store 110 whenever one or more trace records exist in trace array 112 and memory controller's storage request queue 111 is empty.
  • Storage request queue 111 queues requests it receives from either system bus 102 or I/O bus 104 that are destined for main store 110 .
  • trace array control logic 113 tracks those entries in trace array 112 which contain signal records which have not yet been stored to main store 110 .
  • trace array control logic 113 first determines whether or not sufficient address space remains in main store 110 to honor the request by comparing the size of its store request to the addresses found in current trace address register 108 and trace end address register 109 . If the store request exceeds the capacity of the address space assigned to trace, in step 132 attention signal 115 is activated, indicating that the address space reserved in main store 110 to record trace data has been exhausted.
  • step 166 if sufficient space exists in main store 110 , trace control logic 113 notifies the memory controller 100 logic in charge of controlling storage bus 105 that it has a trace record to store to main store 110 .
  • steps 168 and 170 if memory controller 100 determines that it has no other request ready to drive to storage bus 105 and the bus is available, memory controller 100 accepts the trace record request from trace array controller logic 113 and stores the record to main store 110 .
  • step 172 the address contained in current trace address register 108 is incremented by the size of the store and the address supplied to trace array 112 is advanced to point to the next entry to be stored to main store 110 , and steps 162 - 172 are repeated.
  • trace array control logic 113 continues to issue trace record requests to memory controller 100 as long as records exist in trace array 112 which have not yet been stored to main store 110 and the store request would not exceed the capacity of main store 110 address space assigned to trace.
  • Memory controller 100 continues to accept trace record requests as long as memory controller 100 has no other requests ready to drive to storage bus 105 .
  • a target system under test which stores trace signals to main store, the trace signals in main store thereafter being available for access and analysis by any mechanism which is capable of accessing main store, such as an I/O device, a target processor, or another processor.

Abstract

A memory controller used to manage the memory interface (main store interface) for processor and input and output (I/O) device access, includes a trace array used for accumulating trace data signals to be stored to main store, control logic used to determine when the array should be updated and when its contents should be stored to main store, an address register which provides the starting address of main store assigned to store trace data, an offset address register which identifies the current address to store trace data, and a space size register used to identify the amount of main store reserved to store trace data. In a first implementation, the contents of the trace array are moved to main store when the trace array becomes full. An alternative implementation provides additional control registers and logic which allow memory to be updated from the trace array when the memory interface is not busy.

Description

    BACKGROUND OF THE INVENTION
  • 1. Technical Field of the Invention [0001]
  • This invention pertains to capturing trace data. More particularly, it pertains to capturing trace data for storage in main store. [0002]
  • 2. Background Art [0003]
  • Processor architectures often provide mechanisms for capturing instruction streams to aid performance analysis. However, there is also a need to provide for capture of processor bus and I/O bus behavior which is useful for analyzing memory controller performance. Further, having detailed and accurate information about instruction frequency and sequences is important for developing designs having high performance. [0004]
  • On-chip entities known as trace arrays which are used to collect information useful for debug have finite depth and are often not deep enough to capture enough information to completely analyze a problem. A solution which has been used to address this problem provides off-chip signals (chip I/Os) to convey this same information to an external logic analyzer. This solution is costly since it reserves chip I/Os for problem debug which otherwise could be used to enhance performance or function. [0005]
  • U.S. Pat. No. 5,355,487 describes a software tracing system in which a trace buffer is configured as two buffers. This system requires the use of a trace hook and timer interrupts for controlling the interrupt mechanism. There is a need in the art for a method and system for tracing many facilities each hardware cycle and is, therefore, not constrained by a timer interrupt mechanism. [0006]
  • Other software tracing systems provide for storing memory references into a software trace buffer when code inserted into an instruction stream by a linker specifies that a storage reference should be stored to the trace buffer. Such systems require link code modification to insert trace buffer update instructions into the instruction stream, resulting in an undesirable change in the characteristics of the mechanism being tested. [0007]
  • It is an object of the invention to provide an improved trace system and method. [0008]
  • It is a further object of the invention to provide a trace system and method which provides for capture of processor bus and I/O bus behavior. [0009]
  • It is a further object of the invention enable development of computer designs having high performance. [0010]
  • It is a further object of the invention to provide offchip storage of trace data which does not reserve and consume chip I/Os for problem debug. [0011]
  • It is a further object of the invention to provide a trace mechanism which is capable of tracing many facilities each hardware cycle. [0012]
  • It is a further object of the invention to provide a target system under test which stores trace signals to main store, the trace signals in main store thereafter being available for access and analysis by any mechanism which is capable of accessing main store, such as an I/O device, a target processor, or another processor. [0013]
  • It is a further object of the invention to provide a hardware tracing system which does not require the insertion of software trace instructions into the instruction stream. [0014]
  • SUMMARY OF THE INVENTION
  • In accordance with the invention, a system and method is provided for capturing trace data in main store. Trace data signals are captured and driven to a trace array for storage. In accordance with a first embodiment, responsive to the trace array becoming full, further trace signal capture is disabled and the contents of the trace array are moved to main store. In accordance with a second embodiment, the contents of the trace array are moved to main store when a storage request queue is empty. [0015]
  • Other features and advantages of this invention will become apparent from the following detailed description of the presently preferred embodiment of the invention, taken in conjunction with the accompanying drawings.[0016]
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • FIG. 1 illustrates the system of the invention for collecting and storing trace data to main store. [0017]
  • FIG. 2 illustrates the method steps of a first preferred embodiment of the invention. [0018]
  • FIG. 3 illustrates the method steps of a second preferred embodiment of the invention.[0019]
  • BEST MODE FOR CARRYING OUT THE INVENTION
  • In accordance with the invention, a method and system is provided for capturing instruction sequence and instruction frequency data in a processor's main store—these are signals which are useful for hardware or software debug and performance monitoring. Additionally, it provides a method and system for capturing hardware debug information which otherwise exceeds the storage capability of a memory controller's trace array by storing this same information in main store. Which signals to record, when recording should begin, and which addresses in main store are used to store the signal values are selectable via program control. Once recording has completed, the signal values are accessed from main store by either the same processor, or a remote processor, via execution of a list of instructions which comprise a software program. Depending on its design, the software program provides an analysis which is useful for measuring performance or debugging hardware or software problems. [0020]
  • The system of the invention includes a memory controller used to manage the memory interface (main store interface) for processor and input and output (I/O) device access, a storage array used for accumulating trace data to be stored to main store, control logic used to determine when the array should be updated and when its contents should be stored to main store, an address register which provides the starting address of main store assigned to store trace data, an offset address register which identifies the current address to store trace data, and a space size register used to identify the amount of main store reserved to store trace data. Additionally, in accordance with a preferred embodiment of the invention, data capture is controlled by way of a sequence of instructions, i.e., a computer program. [0021]
  • Logic which selects the source of data to be traced, that is, internal memory controller behavior, processor bus behavior, or I/O bus behavior is controlled by registers that contain a value which identifies the source to be traced. The source selected to be traced is changed by modifying the value stored in these registers. The value of a register is modified by either a memory mapped I/O (MMIO) request received from a processor, or by a request received from an IEEE 1149.1-like scan interface. The ability to select when and what to trace by way of an MMIO request is very desirable since this provides the system of the invention with the ability to be controlled by way of a computer program. [0022]
  • A selected source is stored and accumulated in an on chip storage array, that is, a trace array of N words by M bits. Additional mechanisms and controls are provided to determine if data updates the array each machine cycle, or if the collection of data should occur only when a condition corresponding to criteria provided in a matching criteria control register is satisfied. The matching criteria control register is updated using the same technique used to update the registers which select trace source data. [0023]
  • While in storage array update mode, when control logic determines that data delivered to the array should be preserved, the array write address counter increments by one, providing the array with the next sequential address to store data. Data stored to the preceding address is preserved. The write address counter continues to increment as data store requests are received from control logic until all N storage locations in the storage array have been updated. [0024]
  • When the Nth location of the storage array has been updated with data, the array update control is disabled. The current offset address is compared to the addresses provided in the trace starting address register and space size register. This comparison is performed to determine if enough memory remains within a predefined space in main store to store the contents of the storage array. If not enough memory exists to store the contents of the storage array, an attention signal is activated requesting program intervention. If trace space in main store exists, subsequent requests received on buses selected as an input source to the array are stalled. Requests which would otherwise be driven on the memory interface are stalled, and the contents of the storage array is read from the array and stored to main store beginning at the offset address. Once the update of the storage array's contents to main store is complete, the offset register is incremented by an amount equivalent to the number of memory addresses consumed by the contents of the array. Once the contents of the array have been stored to main store and the offset address register has been updated, requests which have been stalled are allowed to continue. [0025]
  • Since stalling requests may affect the nature of what's being traced, an alternative implementation provides additional control registers and logic which allow memory to be updated from the storage array when the memory interface is not busy. The memory interface is busied with requests which store data from the storage array to main store until either all data captured in the storage array is stored to main store or until a memory request is received from either the processor or I/O bus. Control logic is provided to keep track of what portion of the storage array contains data to be stored to main store. If the memory interface is too busy to store the contents of the storage array and the array becomes full with captured data, either use of the memory interface by the processor or I/O is temporarily stalled to perform a partial or complete update of the storage array's contents to main store, or an attention signal is activated indicating no further trace information will be collected. The choice of what should occur when the storage array is full and the memory interface is in use is selectable via control registers. [0026]
  • Once data capture in main store is complete, preexisting mechanisms which read data from main store are used to access this data. Given these mechanisms, data collected in this manner is easily accessed and may be readily provided to software tools used for analyzing this data. [0027]
  • Referring to FIG. 1, requests are received by [0028] memory controller 100 from either processing unit 101 via system bus 102, or an I/O unit 103 via I/O bus 104. Depending on a request's type and address, a request may either be forwarded to main store 110 via storage bus 105, or may target a specific register 106-109 within memory controller 100. The availability of storage bus 105 to deliver requests to main store 110 and the latency of main store 110 data access requires memory controller 100 to queue requests from system bus 103 or I/O bus 104 in queue 111 until the time when needed resources become available.
  • Embedded within [0029] memory controller 100 is trace array 112 and its corresponding trace array control logic 113. Trace array 112 is a simple storage array N entries deep by M bits wide which is used as temporary storage for signal values which are to be stored to main store 110. Trace array control logic 113 includes several registers 106-109 used for controlling trace operations which are accessible via program control, i.e. register space read/write. Trace control register 107 is used to enable/disable the trace function, control when trace record requests are sent to memory controller 100, and identify those conditions that cause trace array entry creation. Trace select register 106 provides select signals to a multiplexer 114 having inputs including system bus 102, I/O bus 104, and memory controller signals 117 wired with all possible memory controller 100 signals of interest, i.e. useful for performance analysis, and software/hardware debug. Current trace address register 108 contains the address in main store 110 next to be updated with an entry from trace array 112. Trace end address register 109 contains the address of the last storage address assigned in main store 110 to store signal values.
  • In accordance with the method of a preferred embodiment of the invention, referring to FIG. 2 in connection with FIG. 1, in [0030] step 120 trace control registers 113 are initialized to enable signal capture. As requests received from either system bus 102 or I/O bus 103 are processed by memory controller 100, signals 114 selected by preprogrammed select register 106 are driven to trace array 112 to be stored. In steps 122 and 124, once signal capture for an addressed entry of trace array 112 is complete, trace array control logic 113 increments the store address it supplies to trace array 112 so that signal values previously captured in trace array 112 are preserved. The resulting incremented address becomes the next entry in trace array 112 used to capture signal values 114.
  • In [0031] steps 126 and 128, once all available entries within trace array 112 contain captured signal values, signal capture is disabled and, in step 130, trace array control logic 113 compares the size of trace array 112 and the address stored in current trace address register 108 to the address stored in trace end address register 109. If the store request exceeds the capacity of the address space assigned to trace, in step 132 attention signal 115 is activated, indicating that the address space reserved in main store 110 to record trace data has been exhausted. If sufficient space exists in main store 110, in step 134 trace array control logic 113 requests memory controller 100 to store the contents of trace array 112 to main store 110, preempting if necessary any other storage requests memory controller 100 might issue from request queue 111 to storage bus 105. Once it is determined in step 136 that storage bus 105 is available, in step 138 the contents of trace array 112 are stored to the main store 110 address identified by current trace address register 108. Once array 112 contents are stored to main store 110, in step 140, the address stored in current trace address register 108 is incremented by an amount equivalent to the amount of storage consumed by the store, and in step 142 signal capture is enabled. Thereupon, storage bus 105 returns to handling requests in queue 111 received from memory controller 100 on behalf of processor 101 and I/O 103.
  • In accordance with the method of a further preferred embodiment of the invention, referring to FIG. 3 in connection with FIG. 1, [0032] steps 120, 122, 124, 126, 128 and 132 function as described above with respect to FIG. 2, with some modification as described below. In accordance with this further embodiment, captured signal values are delivered from trace array 112 to main store 110 whenever one or more trace records exist in trace array 112 and memory controller's storage request queue 111 is empty. Storage request queue 111 queues requests it receives from either system bus 102 or I/O bus 104 that are destined for main store 110.
  • The method of this further preferred embodiment requires that trace [0033] array control logic 113 track those entries in trace array 112 which contain signal records which have not yet been stored to main store 110. In steps 162 and 164, when trace array 112 contains one or more signal records, trace array control logic 113 first determines whether or not sufficient address space remains in main store 110 to honor the request by comparing the size of its store request to the addresses found in current trace address register 108 and trace end address register 109. If the store request exceeds the capacity of the address space assigned to trace, in step 132 attention signal 115 is activated, indicating that the address space reserved in main store 110 to record trace data has been exhausted. In step 166, if sufficient space exists in main store 110, trace control logic 113 notifies the memory controller 100 logic in charge of controlling storage bus 105 that it has a trace record to store to main store 110. In steps 168 and 170, if memory controller 100 determines that it has no other request ready to drive to storage bus 105 and the bus is available, memory controller 100 accepts the trace record request from trace array controller logic 113 and stores the record to main store 110. In step 172 the address contained in current trace address register 108 is incremented by the size of the store and the address supplied to trace array 112 is advanced to point to the next entry to be stored to main store 110, and steps 162-172 are repeated. That is, trace array control logic 113 continues to issue trace record requests to memory controller 100 as long as records exist in trace array 112 which have not yet been stored to main store 110 and the store request would not exceed the capacity of main store 110 address space assigned to trace. Memory controller 100 continues to accept trace record requests as long as memory controller 100 has no other requests ready to drive to storage bus 105.
  • Advantages Over the Prior Art
  • It is an advantage of the invention that there is provided an improved trace system and method. [0034]
  • It is an advantage of the invention that there is provided a trace system and method which provides for capture of processor bus and I/O bus behavior. [0035]
  • It is an advantage of the invention that there is provided a system and method for enabling development of computer designs having high performance. [0036]
  • It is an advantage of the invention that there is provided off-chip storage of trace data which does not reserve and consume chip I/Os for problem debug. [0037]
  • It is a further advantage of the invention that there is provided a target system under test which stores trace signals to main store, the trace signals in main store thereafter being available for access and analysis by any mechanism which is capable of accessing main store, such as an I/O device, a target processor, or another processor. [0038]
  • Alternative Embodiments
  • It will be appreciated that, although specific embodiments of the invention have been described herein for purposes of illustration, various modifications may be made without departing from the spirit and scope of the invention. In particular, it is within the scope of the invention to provide a program storage or memory device such as a solid or fluid transmission medium, magnetic or optical wire, tape or disc, or the like, for storing signals readable by a machine for controlling the operation of a computer according to the method of the invention and/or to structure its components in accordance with the system of the invention. [0039]
  • Accordingly, the scope of protection of this invention is limited only by the following claims and their equivalents. [0040]

Claims (11)

We claim:
1. Method for capturing and storing trace data signals, comprising the steps of:
capturing and driving said trace data signals to a trace array for storage;
responsive to said trace array becoming full, disabling further signal capture and storing the contents of said trace array to main store.
2. Method for capturing and storing trace data signals, comprising the steps of:
capturing and driving said trace data signals to a trace array for storage at a first address location;
incrementing said first address to preserve said trace data signals and condition said trace array to receive subsequent trace data signals;
responsive to all available entries within said trace array containing captured trace data signal, disabling further signal capture and evaluating the space available in main store to receive trace data signals;
responsive to said main store not containing sufficient space allocated to trace data signals to receive the contents of said trace array, activating an attention signal indicating said main store trace storage is exhausted; otherwise, preempting any other storage requests and storing the contents of said trace array to said main store.
3. Method for capturing and storing trace data signals, comprising the steps of:
queuing in a storage request queue requests for storage of data signals in main store;
capturing and driving said trace data signals to a trace array for storage;
responsive to said trace array containing at least one trace data signal record and said storage request queue being empty, evaluating the space available in main store to receive trace data signals and, if space is available, storing the contents of said trace array to said main store; and
responsive to said trace array becoming full, disabling further capture of said trace data signals.
4. Method for capturing and storing trace data signals, comprising the steps of:
queuing in a storage request queue requests for storage of data signals in main store;
capturing and driving said trace data signals to a trace array for storage at a first address location;
incrementing said first address to preserve said trace data signals and condition said trace array to receive subsequent trace data signals;
responsive to said trace array containing at least one trace data signal record and said storage request queue being empty, evaluating the space available in main store to receive trace data signals and, if space is available, storing the contents of said trace array to said main store; otherwise, activating an attention signal; and
responsive to said trace array becoming full, disabling further capture of said trace data signals and activating said attention signal.
5. System for capturing and storing trace data signals, comprising:
a memory controller including a trace array control logic, a trace array and a request queue;
said request queue being operable for storing requests for storage of data to said main store;
said trace array being operable under control of said trace array control logic for storing trace data signals; and
said trace array being further operable responsive to said trace array becoming full for transferring the contents of said trace array to a main store.
6. System for capturing and storing trace data signals, comprising:
a memory controller;
a processing unit;
an input/output unit;
a main store;
said memory controller including a trace array control logic, a trace array and a request queue;
said request queue being operable for storing requests from said processing unit and said input/output unit for storage of data to said main store;
said trace array being operable under control of said trace array control logic for storing trace data signals selectively from said processing unit, said input/output unit or said memory controller; and
said trace array being further operable responsive to said trace array becoming full for transferring the contents of said trace array to said main store.
7. The system of claim 6, said trace array control logic comprising:
a select register;
a control register;
a current trace address register; and
a trace end address register;
said control register being operable for enabling and disabling a trace function, controlling when trace record requests are sent to said memory controller, and identifying conditions that cause trace array entry creation;
said select register being operable for multiplexing said trace signals to said trace array selectively from said processing unit, said input/output unit and said memory controller;
said current trace address register being operable for storing the location in main store next to be updated with an entry from said trace array;
said trace end address register being operable for storing the last storage address assigned in main store for storing trace signal values.
8. A program storage device readable by a machine, tangibly embodying a program of instructions executable by a machine to perform method steps for capturing and storing trace data signals, said method steps comprising:
capturing and driving said trace data signals to a trace array for storage;
responsive to said trace array becoming full, disabling further signal capture and storing the contents of said trace array to main store.
9. An article of manufacture comprising:
a computer useable medium having computer readable program code means embodied therein for capturing and storing trace data signals, the computer readable program means in said article of manufacture comprising:
computer readable program code means for causing a computer to effect capturing and driving said trace data signals to a trace array for storage;
computer readable program code means for causing a computer to effect responsive to said trace array becoming full, disabling further signal capture and storing the contents of said trace array to main store.
10. A program storage device readable by a machine, tangibly embodying a program of instructions executable by a machine to perform method steps for capturing and storing trace data signals, said method steps comprising:
queuing in a storage request queue requests for storage of data signals in main store;
capturing and driving said trace data signals to a trace array for storage;
responsive to said trace array containing at least one trace data signal record and said storage request queue being empty, evaluating the space available in main store to receive trace data signals and, if space is available, storing the contents of said trace array to said main store; and
responsive to said trace array becoming full, disabling further capture of said trace data signals.
11. An article of manufacture comprising:
a computer useable medium having computer readable program code means embodied therein for capturing and storing trace data signals, the computer readable program means in said article of manufacture comprising:
computer readable program code means for causing a computer to effect queuing in a storage request queue requests for storage of data signals in main store;
computer readable program code means for causing a computer to effect capturing and driving said trace data signals to a trace array for storage;
computer readable program code means for causing a computer to effect responsive to said trace array containing at least one trace data signal record and said storage request queue being empty, evaluating the space available in main store to receive trace data signals and, if space is available, storing the contents of said trace array to said main store; and
computer readable program code means for causing a computer to effect responsive to said trace array becoming full, disabling further capture of said trace data signals.
US09/206,326 1998-12-08 1998-12-08 System and method for collecting trace data in main storage Expired - Fee Related US6457144B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US09/206,326 US6457144B1 (en) 1998-12-08 1998-12-08 System and method for collecting trace data in main storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US09/206,326 US6457144B1 (en) 1998-12-08 1998-12-08 System and method for collecting trace data in main storage

Publications (2)

Publication Number Publication Date
US20020078264A1 true US20020078264A1 (en) 2002-06-20
US6457144B1 US6457144B1 (en) 2002-09-24

Family

ID=22765880

Family Applications (1)

Application Number Title Priority Date Filing Date
US09/206,326 Expired - Fee Related US6457144B1 (en) 1998-12-08 1998-12-08 System and method for collecting trace data in main storage

Country Status (1)

Country Link
US (1) US6457144B1 (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040267489A1 (en) * 2003-06-24 2004-12-30 Frederic Reblewski Data compaction and pin assignment
US20040264445A1 (en) * 2003-06-26 2004-12-30 International Business Machines Corporation External message passing method and apparatus
US20050034012A1 (en) * 2003-08-06 2005-02-10 International Business Machines Corp. Storage controller and method for recording diagnostic information
US20050120337A1 (en) * 2003-12-01 2005-06-02 Serrano Mauricio J. Memory trace buffer
US20060075390A1 (en) * 2004-09-16 2006-04-06 International Business Machines Corporation Method and system for tracing components of computer applications
GB2489838A (en) * 2011-08-25 2012-10-10 Ultrasoc Technologies Ltd Processor trace circuit, which shares a bus with the processor being monitored
US8826081B2 (en) 2011-08-25 2014-09-02 Ultrasoc Technologies, Ltd. Data processing apparatus and related methods of debugging processing circuitry
US20150121097A1 (en) * 2013-10-28 2015-04-30 International Business Machines Corporation Reduced-power trace array for a processor
CN106878971A (en) * 2015-12-14 2017-06-20 华为技术服务有限公司 Send the method and network element of call signaling
US10627444B1 (en) * 2017-11-08 2020-04-21 Xilinx, Inc. Modular and stackable integrated logic analyzer
US11188697B1 (en) 2021-01-05 2021-11-30 Xilinx, Inc. On-chip memory access pattern detection for power and resource reduction
EP4174659A1 (en) * 2021-10-29 2023-05-03 STMicroelectronics Application GmbH Systems and methods for preparing trace data

Families Citing this family (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6728906B1 (en) * 2000-08-24 2004-04-27 Triscend Corporation Trace buffer for a configurable system-on-chip
US7237090B1 (en) 2000-12-29 2007-06-26 Mips Technologies, Inc. Configurable out-of-order data transfer in a coprocessor interface
US7287147B1 (en) * 2000-12-29 2007-10-23 Mips Technologies, Inc. Configurable co-processor interface
US6760867B2 (en) * 2001-03-08 2004-07-06 International Business Machines Corporation Guaranteed method and apparatus for capture of debug data
US7178133B1 (en) 2001-04-30 2007-02-13 Mips Technologies, Inc. Trace control based on a characteristic of a processor's operating state
US7168066B1 (en) 2001-04-30 2007-01-23 Mips Technologies, Inc. Tracing out-of order load data
US7181728B1 (en) 2001-04-30 2007-02-20 Mips Technologies, Inc. User controlled trace records
US7134116B1 (en) 2001-04-30 2006-11-07 Mips Technologies, Inc. External trace synchronization via periodic sampling
US7124072B1 (en) 2001-04-30 2006-10-17 Mips Technologies, Inc. Program counter and data tracing from a multi-issue processor
US7185234B1 (en) * 2001-04-30 2007-02-27 Mips Technologies, Inc. Trace control from hardware and software
US7069544B1 (en) 2001-04-30 2006-06-27 Mips Technologies, Inc. Dynamic selection of a compression algorithm for trace data
US7065675B1 (en) 2001-05-08 2006-06-20 Mips Technologies, Inc. System and method for speeding up EJTAG block data transfers
US20030005423A1 (en) * 2001-06-28 2003-01-02 Dong-Yuan Chen Hardware assisted dynamic optimization of program execution
US7231551B1 (en) 2001-06-29 2007-06-12 Mips Technologies, Inc. Distributed tap controller
US7043668B1 (en) 2001-06-29 2006-05-09 Mips Technologies, Inc. Optimized external trace formats
GB2383437B (en) * 2001-12-20 2004-02-04 Sun Microsystems Inc System trace unit
US7162552B2 (en) * 2002-11-22 2007-01-09 Texas Instruments Incorporated Programmable extended compression mask for dynamic trace
JP2004199187A (en) * 2002-12-16 2004-07-15 Matsushita Electric Ind Co Ltd Cpu built-in lsi
US7159101B1 (en) 2003-05-28 2007-01-02 Mips Technologies, Inc. System and method to trace high performance multi-issue processors
US8099273B2 (en) * 2003-06-05 2012-01-17 Mentor Graphics Corporation Compression of emulation trace data
US20060048012A1 (en) * 2004-08-30 2006-03-02 International Business Machines Corporation Context sensitive debug streams with output throttling controls
TWI296731B (en) * 2004-12-24 2008-05-11 Au Optronics Corp A pixel structure, a liquid crystal panel, a method for improving color shift event of liquid crystal panel, and a method for fabricating a low color shift liquid crystal panel
GB2422081B (en) * 2005-01-05 2010-09-29 Ling Dynamic Systems Statistical streaming
US7437617B2 (en) * 2005-02-11 2008-10-14 International Business Machines Corporation Method, apparatus, and computer program product in a processor for concurrently sharing a memory controller among a tracing process and non-tracing processes using a programmable variable number of shared memory write buffers
US7418629B2 (en) * 2005-02-11 2008-08-26 International Business Machines Corporation Synchronizing triggering of multiple hardware trace facilities using an existing system bus
US7437618B2 (en) * 2005-02-11 2008-10-14 International Business Machines Corporation Method in a processor for dynamically during runtime allocating memory for in-memory hardware tracing
US20060184837A1 (en) * 2005-02-11 2006-08-17 International Business Machines Corporation Method, apparatus, and computer program product in a processor for balancing hardware trace collection among different hardware trace facilities
US7788543B2 (en) * 2006-03-22 2010-08-31 Cisco Technology, Inc. Methods and systems for generating and storing computer program execution trace data
US7493526B2 (en) * 2006-06-13 2009-02-17 International Business Machines Corporation System and method for supporting debugging of host channel adapters in a logical partitioning
US20080016408A1 (en) * 2006-07-14 2008-01-17 Abernathy Christopher M System and Method for Streaming High Frequency Trace Data Off-Chip
US7653848B2 (en) * 2006-07-14 2010-01-26 International Business Machines Corporation Selectively engaging optional data reduction mechanisms for capturing trace data
US11573883B1 (en) * 2018-12-13 2023-02-07 Cadence Design Systems, Inc. Systems and methods for enhanced compression of trace data in an emulation system

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4445192A (en) 1980-11-25 1984-04-24 Hewlett-Packard Company Logic state analyzer with time and event count measurement between states
US4574351A (en) 1983-03-03 1986-03-04 International Business Machines Corporation Apparatus for compressing and buffering data
US4937740A (en) * 1985-09-18 1990-06-26 Cadre Technologies, Inc. Real time software analyzing system for storing selective m-bit addresses based upon correspondingly generated n-bit tags
US4924466A (en) * 1988-06-30 1990-05-08 International Business Machines Corp. Direct hardware error identification method and apparatus for error recovery in pipelined processing areas of a computer system
US5274811A (en) * 1989-06-19 1993-12-28 Digital Equipment Corporation Method for quickly acquiring and using very long traces of mixed system and user memory references
JPH03217949A (en) 1990-01-23 1991-09-25 Hitachi Ltd Computer system
US5297277A (en) * 1990-08-31 1994-03-22 International Business Machines Corporation Apparatus for monitoring data transfers of an oemi channel interface
AU8966391A (en) 1990-12-24 1992-06-25 Ball Corporation System for analysis of embedded computer systems
JP2777496B2 (en) 1991-02-28 1998-07-16 インターナショナル・ビジネス・マシーンズ・コーポレイション Uses when profiling multi-processes in computer systems
DE4332993C1 (en) * 1993-09-28 1994-11-24 Siemens Ag Tracer system for fault analysis in running real-time systems
US5764885A (en) * 1994-12-19 1998-06-09 Digital Equipment Corporation Apparatus and method for tracing data flows in high-speed computer systems
US5642478A (en) * 1994-12-29 1997-06-24 International Business Machines Corporation Distributed trace data acquisition system
US5724505A (en) * 1996-05-15 1998-03-03 Lucent Technologies Inc. Apparatus and method for real-time program monitoring via a serial interface
US6018809A (en) * 1997-03-28 2000-01-25 Emc Corp Apparatus and method for capturing information off a plurality of bi-directional communication buses
US5978902A (en) * 1997-04-08 1999-11-02 Advanced Micro Devices, Inc. Debug interface including operating system access of a serial/parallel debug port
US6134676A (en) * 1998-04-30 2000-10-17 International Business Machines Corporation Programmable hardware event monitoring method

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040267489A1 (en) * 2003-06-24 2004-12-30 Frederic Reblewski Data compaction and pin assignment
US20040264445A1 (en) * 2003-06-26 2004-12-30 International Business Machines Corporation External message passing method and apparatus
US7836222B2 (en) * 2003-06-26 2010-11-16 International Business Machines Corporation System and method for tracking messages between a processing unit and an external device
US7346810B2 (en) * 2003-08-06 2008-03-18 International Business Machines Corporation Storage controller and method for recording diagnostic information
US20050034012A1 (en) * 2003-08-06 2005-02-10 International Business Machines Corp. Storage controller and method for recording diagnostic information
US20080091982A1 (en) * 2003-08-06 2008-04-17 Bartlett Eric J Storage Controller and a Method for Recording Diagnostic Information
US20080091897A1 (en) * 2003-08-06 2008-04-17 Bartlett Eric J Storage Controller and a Method for Recording Diagnostic Information
US7523356B2 (en) * 2003-08-06 2009-04-21 International Business Machines Corporation Storage controller and a system for recording diagnostic information
US7698604B2 (en) 2003-08-06 2010-04-13 International Business Machines Corporation Storage controller and a method for recording diagnostic information
US20050120337A1 (en) * 2003-12-01 2005-06-02 Serrano Mauricio J. Memory trace buffer
US8271469B2 (en) * 2004-09-16 2012-09-18 International Business Machines Corporation Method and system for a non-hierarchical trace system using a hierarchical control interface
US8078596B2 (en) * 2004-09-16 2011-12-13 International Business Machines Corporation Method and system for a non-hierarchical trace system using a hierarchical control interface
US20060075390A1 (en) * 2004-09-16 2006-04-06 International Business Machines Corporation Method and system for tracing components of computer applications
GB2489838A (en) * 2011-08-25 2012-10-10 Ultrasoc Technologies Ltd Processor trace circuit, which shares a bus with the processor being monitored
GB2489838B (en) * 2011-08-25 2013-02-27 Ultrasoc Technologies Ltd A data processing apparatus and related methods of debugging processing circuitry
US8826081B2 (en) 2011-08-25 2014-09-02 Ultrasoc Technologies, Ltd. Data processing apparatus and related methods of debugging processing circuitry
US20150121097A1 (en) * 2013-10-28 2015-04-30 International Business Machines Corporation Reduced-power trace array for a processor
US9588573B2 (en) * 2013-10-28 2017-03-07 Globalfoundries Inc. Reduced-power trace array for a processor
CN106878971A (en) * 2015-12-14 2017-06-20 华为技术服务有限公司 Send the method and network element of call signaling
US10627444B1 (en) * 2017-11-08 2020-04-21 Xilinx, Inc. Modular and stackable integrated logic analyzer
US11188697B1 (en) 2021-01-05 2021-11-30 Xilinx, Inc. On-chip memory access pattern detection for power and resource reduction
EP4174659A1 (en) * 2021-10-29 2023-05-03 STMicroelectronics Application GmbH Systems and methods for preparing trace data
US11914499B2 (en) 2021-10-29 2024-02-27 Stmicroelectronics Application Gmbh Systems and methods for preparing trace data

Also Published As

Publication number Publication date
US6457144B1 (en) 2002-09-24

Similar Documents

Publication Publication Date Title
US6457144B1 (en) System and method for collecting trace data in main storage
US5687368A (en) CPU-controlled garbage-collecting memory module
US7603589B2 (en) Method and system for debugging a software program
US8516163B2 (en) Hardware-based concurrent direct memory access (DMA) engines on serial rapid input/output SRIO interface
US5933847A (en) Selecting erase method based on type of power supply for flash EEPROM
US7143205B2 (en) DMA controller having a trace buffer
US7996642B1 (en) Digital locked loop on channel tagged memory requests for memory optimization
US5603063A (en) Disk drive command queuing method using two memory devices for storing two types of commands separately first before queuing commands in the second memory device
CN101218569B (en) Device and method for controlling DMA task
US6782454B1 (en) System and method for pre-fetching for pointer linked data structures
US7020808B2 (en) Event measuring apparatus and method, computer readable record medium in which an event measuring program is stored, and computer system
US6343351B1 (en) Method and system for the dynamic scheduling of requests to access a storage system
US20110072434A1 (en) System, method and computer program product for scheduling a processing entity task
JP3324572B2 (en) Information processing apparatus and recording medium recording program to be executed by computer
US10049035B1 (en) Stream memory management unit (SMMU)
US6378052B1 (en) Data processing system and method for efficiently servicing pending requests to access a storage system
US6442648B1 (en) Method of and system for the dynamic scheduling of requests to access a storage system
CN114610472B (en) Multi-process management method in heterogeneous computing and computing equipment
US6820091B2 (en) Dynamic buffer allocation
US6202134B1 (en) Paging processing system in virtual storage device and paging processing method thereof
JP3727982B2 (en) Flash ROM management method and apparatus
KR20060017816A (en) Method and device for transferring data between a main memory and a storage device
US7191319B1 (en) System and method for preloading cache memory in response to an occurrence of a context switch
JPH0997218A (en) Method and device for managing flash rom and computer control equipment
US6487632B1 (en) Emulation technique for variable-length disk system to access data in a fixed-length disk system

Legal Events

Date Code Title Description
AS Assignment

Owner name: INTERNATIONAL BUSINESS MACHINES CORPORATION, NEW Y

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:EBERHARD, RAYMOND J.;REEL/FRAME:009636/0262

Effective date: 19981120

REMI Maintenance fee reminder mailed
LAPS Lapse for failure to pay maintenance fees
STCH Information on status: patent discontinuation

Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362

FP Expired due to failure to pay maintenance fee

Effective date: 20060924