APPARATUS AND METHOD FOR COLLECTING TRACE DATA

    公开(公告)号:WO2022029418A1

    公开(公告)日:2022-02-10

    申请号:PCT/GB2021/051999

    申请日:2021-08-02

    Applicant: ARM LIMITED

    Abstract: A data processing apparatus and a method for processing data are disclosed. The data processing apparatus comprises: processing circuitry to process instructions; and trace circuitry comprising: a trace buffer; write pointer storage to store a write pointer to indicate a current location in the trace buffer; and a call depth counter to indicate a number of events, wherein the trace circuitry is configured to generate trace data indicative of processing activities of the processing circuitry, and in response to a first event to: modify the call depth counter in a first direction, store first trace data indicative of the first event in the trace buffer at the current location, and modify the write pointer to point to a next location in the trace buffer; in response to a second event, when the call depth counter is not equal to a threshold call depth, to: modify the call depth counter in a second direction and modify the write pointer to point to a previous location in the trace buffer; and in response to the second event, when the call depth counter is equal to the threshold call depth, to store second trace data indicative of the second event in the trace buffer at the current location.

    A TRACE HANDLER MODULE SYSTEM AND A METHOD USING SAID SYSTEM

    公开(公告)号:WO2021122066A1

    公开(公告)日:2021-06-24

    申请号:PCT/EP2020/084687

    申请日:2020-12-04

    Applicant: COMMSOLID GMBH

    Inventor: JAKSCHIK, Daniel

    Abstract: The invention discloses a trace handler module system and a method for generating a trace data stream out of trace messages using a minimum set of processor instructions by using said trace handler module system. The object of the present invention to provide an apparatus and a method that are able to handle trace messages that are extracted out of the firmware flow of the processor consuming minimal controller bandwidth and without introducing runtime variations will be solved by a trace handler module system which is configured to take over a trace message representing an internal state of a firmware running on a processor of a SoC via a chip-internal bus system, wherein the trace message is carried by a bus data signal which is exchanged between a bus master and a bus slave over the chip-internal bus system and a bus address-signal is used to encode additional trace meta data of the trace message, wherein the trace handler module system comprises the bus slave configured to convert specific bus protocol data to strobe-based protocol data, an input logic configured to add timestamps, to do filtering and channel allocation of the converted data from the bus slave, a first-in-first-out (FIFO) shift register configured to decouple a bus transfer speed from a trace data stream speed and to output a FIFO data format, and an output logic configured to convert the FIFO data format to a trace data stream format representing the trace message to reconstruct a system behavior issued by the processor.

Patent Agency Ranking