Tracking handler module system and method of using the same
By using the trace handler module system in the on-chip system, trace message processing of the internal state of the processor solves the problem of consuming a large amount of controller bandwidth and runtime changes, and achieves stable and efficient trace data generation.
Patent Information
- Application Number
- CN202080083126.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-12-16
- Filing Date
- 2020-12-04
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-12-04
AI Technical Summary
In on-chip systems, the processing of trace messages by processor firmware consumes a large amount of controller bandwidth and introduces runtime changes, and debugging conditions are easily affected by intermediate readouts, resulting in complex system interactions.
Adopt a trace handler module system to take over the internal state of the processor through the chip's internal bus system, use bus address signals to encode trace metadata, and add timestamps and filtering through input logic, FIFO shift registers to decouple data flow, and output logic conversion For the trace data flow format, trace data generation is implemented with a minimal processor instruction set.
It implements tracking message processing that consumes minimal controller bandwidth, avoids runtime changes, ensures the stability and interpretability of system behavior, and reduces tracking overhead.
Smart Images

Figure CN114830103B_ABST
Abstract
Description
[0001] The present invention relates to a trace handler module system and a method for generating a trace data stream from trace messages using a minimal processor instruction set by using the trace handler module system.
[0002] System on Chip (SoC) integrates system components on a single chip die; system components can be power management, analog interfaces, digital interfaces, and one or more processors. Processor firmware interacts highly with interfaces and external components.
[0003] Chip internal components are usually linked via a standardized bus system, namely Advanced High-Performance Bus (AHB) or Wishbone. There are various standards and implementations. All of them have a common minimum set of signals. The names of the signals may vary from standard to standard, but the functions are similar.
[0004] CLK' clock line, driven by the clock source,
[0005] 'ADDR' address, BUSAWID bit (i.e. 32) vector, driven by bus master and consumed by bus slave,
[0006] 'WRITE' Read-write, selects between read or write transfers, driven by the bus master and consumed by the bus slave,
[0007] 'TRANS' transmit, used to signal the start of a new bus operation, driven by the bus master and consumed by the bus slave,
[0008] 'WDATA' Data to be written, BUSDWID bit (i.e. 32) vector, driven by bus master, consumed by bus slave,
[0009] 'RDATA' Read data, BUSDWID bit (i.e. 32) vector, driven by bus slaves and consumed by bus masters,
[0010] 'READY' Ready, used to signal the end of a bus operation, driven by a bus slave and consumed by a bus master.
[0011] Figure 1 A single read transfer is depicted. The bus master applies ADDR, WRITE, TRANS and waits for READY to go high. The read data RDATA is then valid.
[0012] Figure 2 A single write transfer is depicted. The bus master applies ADDR, WRITE, TRANS, WDATA and waits for READY to go high.
[0013] The exact signal timing varies from standard to standard. In addition to the signals listed, the following important common facts exist:
[0014] - A transfer always includes an address and is either a read or write operation.
[0015] - A read operation transfers data from a slave device to a master device.
[0016] - Write operations transfer data from the master device to the slave device.
[0017] - A transfer has a defined start, initiated by the bus master.
[0018] - The transfer has a defined end, defined / delayed by the bus slave.
[0019] - The Most Significant Bit (MSB) of the ADDR signal is used to select between slave devices.
[0020] - The Least Significant Bit (LSB) of the ADDR signal is used within the slave devices as per their need.
[0021] Some bus protocols also support transfer sizes other than the data width (BUSDWID). The minimum transfer granularity required by the present invention is BUSDWID.
[0022] The chip internal bus infrastructure has the following participants:
[0023] A "master" module, which can initiate bus transfers,
[0024] A "slave" module that responds to bus transfers.
[0025] The master module may be, for example, a microcontroller or a direct memory access (DMA) module.
[0026] A slave module can be a memory, which is a complete matrix of words that can be read and / or written, or a register file, which is a single vector or multiple vectors of flip-flops that can be read and / or written. These flip-flops control or observe hardware signals. These flip-flops can be bus-accessible at one or more addresses. There are also other slave modules, namely FLASH controllers, etc.
[0027] Almost every chip-internal microcontroller of a System-on-Chip (SoC) has a bus master interface that initiates read and write transfers that conform to the bus protocol. The firmware only reads and writes addresses.
[0028] A typical processor instruction set requires two processor instructions to perform a read transfer:
[0029] 1. Load the address constant into processor register A.
[0030] 2. Load from the address in processor register A and store the read value into processor register B.
[0031] A write transfer requires three processor instructions:
[0032] 1. Load the address constant into processor register A.
[0033] 2. Load the data constant into processor register B.
[0034] 3. Store the contents of processor register B at the address of processor register A.
[0035] In summary, bus transfers always consume a lot of instructions and depending on the processor architecture consume even more clock cycles. Multiple transfers always require an update instruction of address register A before the next load or store instruction. In some cases, even more. There are various ways to mitigate these problems: bus burst transfers, processor pipelining, etc.
[0036] In a burst mode transfer, a device repeatedly transfers data without completing all the steps required to transfer each piece of data in a separate transaction. The usual reason for having burst mode capability or using burst mode is to increase data throughput.
[0037] Processor pipelining attempts to keep each part of the processor busy with certain instructions by dividing incoming instructions into a series of sequential steps executed by different processor units, where different parts of the instructions are processed in parallel. It allows faster CPU throughput than would otherwise be possible at a given clock rate, but may increase latency due to the additional overhead of the pipelining process itself.
[0038] The main problem is that firmware running on a processor may contain bugs that are difficult to analyze because they require deep knowledge of the firmware state. Any processor stop and intermediate readout affects the processor behavior and the resulting system interaction. In the worst case scenario, debug conditions disappear due to intermediate readouts. In contrast, tracing dumps the internal state unconditionally. System behavior can be reconstructed based on the trace data. A trace message is a data structure with diagnostic information and a static or dynamic length. A trace message includes trace data and metadata and can be viewed as an internal firmware state variable value that represents the internal state of the firmware running on the processor of the system-on-chip. Each trace message has a well-defined data format and is available between each program execution step. Often, during the software development process, such as during the development of firmware running on a processor of an SoC, it may be better to decide to dump the internal state of the processor at a specific location in the firmware. But any output format with timestamps, trace types, etc. and trace filtering, such as trace type, trace level, channel, etc. consumes controller bandwidth and introduces runtime variations.
[0039] Therefore, the object of the present invention is to provide an apparatus and method capable of processing trace messages extracted from a processor's firmware stream, consuming minimal controller bandwidth and introducing no runtime changes. At the same time, in order to trace a system-on-chip processor, the trace messages should have a timestamp that allows correlation with internal timing and type to distinguish the messages and their interpretation.
[0040] The object of the present invention will be solved by a trace handler module system, which is configured to take over trace messages representing the internal state of firmware running on a processor of an on-chip system via a chip internal bus system, wherein the trace messages are carried by bus data signals exchanged between a bus master and a bus slave through the chip internal bus system, and the bus address signal ADDR is used to encode additional trace metadata of the trace messages, wherein the trace handler module system includes: a bus slave, configured to convert specific bus protocol data into strobe-based protocol data; input logic, configured to add timestamps to filter and channel allocate converted data from the bus slave; a first-in-first-out (FIFO) shift register, configured to decouple the bus transfer speed from the trace data stream speed and output the FIFO data format; and output logic, configured to convert the FIFO data format into a trace data stream format representing trace messages used to reconstruct system behavior issued by the processor.
[0041] The trace handler module system offloads formatting and filtering from the processor. In particular filtering implies runtime changes (to trace or to skip). The processor trace overhead is minimal and unconditional. The system behavior depends neither on the trace messages, especially the trace data, nor on the trace filters.
[0042] The bus slave converts the specific bus protocol to a simple strobe-based protocol. The specific bus address space is determined by design-time constants. The bus slave never inserts wait cycles (READY is always high).
[0043] It is preferred that in the design of the trace handler module system, the function , the function returns the number of bits required to encode n different values, the following symbols are defined: BUSAWID, defines the chip internal bus address width, BUSDWID, defines the chip internal bus data width, LEVELWID, defines the level width of the trace level of the trace message, TYPEWID, defines the type width of the trace message type identifier, and CHANWID, defines the channel width of the trace channel, the trace channel is used as a transport protocol layer entity to separate different trace messages during transmission between bus masters and bus slaves. b(n) is the rounded up log2 operation of n.
[0044] The above mentioned symbols BUSAWID, bus address width; BUSDWID, bus data width; LEVELWID, level width, which is optional and can be 0; TYPEWID, type width, which is optional and can be 0; and CHANWID, channel width, define design-time constants which affect implementation details and therefore should be chosen beforehand.
[0045] In a variant of the trace handler module system of the present invention, the trace handler module system uses different slices of the bus ADDR signal to extract the trace metadata of the trace message for generating the trace data stream. The LSB of the bus ADDR signal is interpreted by the bus slave device. The trace handler module system uses them to extract the trace metadata.
[0046] In other variations of the trace handler module system of the present invention, one slice of the bus ADDR signal defines a data marker (IS_DATA) that specifies the trace message payload byte. Another slice of the bus ADDR signal defines an end marker (IS_END) that specifies a closed channel. Another slice of the bus ADDR signal defines a trace level (LEVEL) that specifies the class relevance of the trace message. Another slice of the bus ADDR signal defines a trace type (TYPE) that specifies a trace message type identifier. And one slice of the bus ADDR signal defines a trace channel (CHAN) that specifies a trace channel number.
[0047] Figure 3 Table 1 in describes the slices to be extracted from the bus ADDR signal.
[0048] In another variant of the trace handler module system of the present invention, the input logic is fed by a time base delivering header timestamps, which are captured and forwarded to the FIFO shift register. The input logic is responsible for timestamping, filtering and channel allocation. For timestamps, the time base delivers header timestamps, which are captured and forwarded to the FIFO. The trace header contains meta information of a trace message - timestamp and trace type. The trace timestamp is the timestamp of the event that triggered the trace message.
[0049] Filtering can be done in different ways, which are completely orthogonal to each other.
[0050] Therefore, in a variant of the trace handler module system of the present invention, the input logic filters the trace messages according to the trace level, and depending on the configured minimum trace level, specific messages are discarded or forwarded to the FIFO shift register. Each trace message has a trace level, which is fixed and defined at design time. The trace level classifies the trace messages into categories of relevance, i.e., information (INFO), warning (WARN), error (ERROR). Depending on the minimum trace level configured at runtime, specific messages are discarded or forwarded.
[0051] And in another variation of the trace handler module system of the present invention, the input logic filters the trace messages according to the trace message type identifier, and depending on the configured trace message type identifier, the specific message is discarded or forwarded to the FIFO shift register. Each trace message has a trace type defined at design time. The trace type identifies the trace message and its content. Depending on the runtime configured trace type filtered by the trace handler module system, the specific message is discarded or forwarded.
[0052] And in another further variation of the trace handler module system of the present invention, the input logic filters the trace messages based on other trace metadata extracted from the bus ADDR signal. Other trace metadata can be encoded using the same method of TYPE and LEVEL. Processing more or less of this data and including it in the filter condition depends on the implementation.
[0053] In a variant of the trace processing program module system of the present invention, the trace processing program module system includes a trace channel state machine, which processes a defined number of trace channels, and the number of trace channels is determined by (2 CHANWID -1) predefined. The trace handler module is able to handle a defined number of trace channels (2 CHANWID -1). Each channel has its own state. A trace channel is a transport protocol layer entity to separate different trace messages during the transmission process.
[0054] In another variation of the trace handler module system of the present invention, the trace handler module system includes a counter configured to count the number of lost trace messages each time the FIFO shift register is full or exceeds the number of trace channels. The number of lost messages may also be counted. The counter increments each time the FIFO is full or exceeds the number of channels. This quantifies the ratio of trace load to available trace bandwidth. Trace filtering reduces trace load. Trace loss analysis and trace filtering may be used to strip trace data to an appropriate level.
[0055] In another variant of the trace handler module system of the present invention, the trace handler module system includes a counter configured to count the total trace load by counting all incoming payload bytes. This quantifies the absolute trace load. Depends on the counter evaluation of a specific time span or total. This helps to improve the trace message definition and its timing. In another variant of the trace handler module system of the present invention, the trace handler module system supports multi-threading, any number of interrupt contexts and / or interleaved trace streams. The trace channel method is combined with channel opening and closing operations to implement multi-threading and any number of interrupt contexts. If all channels are allocated, the data is safely discarded without interfering with other channels. Channel opening and closing operations are atomic. There are no side effects to any interrupts or context switches before or after. Selecting the appropriate number of channels depends on the implementation.
[0056] The object of the present invention will also be solved by a method for generating a trace data stream from trace messages using a trace handler module system using a minimal processor instruction set, wherein the method comprises the following steps:
[0057] - the channel is opened by reading any address of the trace handler module system, and the return value is the channel base address A used for all subsequent actions,
[0058] - Set the TYPE bit in address A to the trace message type according to the slice type of the bus ADDR signal exchanged via the chip's internal bus system,
[0059] - Set the LEVEL bit in address A to the trace message level according to the slice LEVEL of the bus ADDR signal,
[0060] - If slicing IS_DATA of the bus ADDR signal is performed, the IS_DATA bit in address A is set to 1 to interpret all successively written words as trace message payload,
[0061] - write the trace message data to address A,
[0062] - Set IS_END in address A to 1 to prepare for channel closing,
[0063] - Close the channel by writing something to address A.
[0064] The firmware must follow a strict order of trace data generation. The entire process relies on the correct processing of address A. The method of the present invention unloads the firmware and takes over timestamping, filtering and output formatting with a minimal processor instruction set. It is obvious that each opened channel must be closed. The closing channel operation explicitly ignores any written data. The final additional write operation can be ignored. The entire sequence has no conditions and thus has a constant execution time. The method step "write trace message data to address A" can be repeated at any time. All other method steps are not allowed to be repeated.
[0065] In a variant of the method of the invention, other trace metadata besides TYPE and LEVEL are written to address A. This can be used to introduce additional types of trace metadata for trace filtering and / or transmission.
[0066] In another variant of the method of the invention, if all channels are allocated, an empty channel is returned at address A, which is ignored. This ensures that all trace data is skipped without any interference in an overload scenario.
[0067] Therefore, in another further variant of the method according to the invention, the method is executed unconditionally and in a constant execution time.
[0068] The present invention will be explained in more detail using exemplary embodiments.
[0069] The accompanying drawings show
[0070] Figure 1 : Bus read transfer;
[0071] Figure 2 : Bus write transfer;
[0072] Figure 3 : Conversion from chip internal bus to tracking according to the present invention;
[0073] Figure 4 : Interpretation of the ADDR signal by the bus slave device;
[0074] Figure 5 : The tracking processing program module system of the present invention;
[0075] Figure 6 : A trace firmware protocol for trace messages exchanged between a bus master and a bus slave according to the method of the present invention;
[0076] Figure 7 : Tracking channel state machine.
[0077] Figure 3 The conversion from the chip internal bus 2 to the trace data stream 5 is shown. The trace handler module system 4 offloads formatting and filtering from the processor. In particular, filtering means runtime changes (trace or skip). The trace overhead is minimal and unconditional. The system behavior depends neither on the trace data nor on the trace filter settings. The trace handler module system 4 of the present invention will be used in Figure 5 Described in more detail in .
[0078] Figure 4The interpretation of the bus ADDR signal by the bus slave of the trace handler module system is shown. The bus ADDR signal is divided into different slices, which are defined at the time of design of the system of the present invention. The width of the slice 'BYTESEL' is b(BUSDWID / 8-1), for example, bits 1:0. These bits are intended to be ignored because not all processors support non-word access. The width of the slice 'SKIP' is b(BUSDWID / 8-1), for example, bits 3:2. This slice marks the number of data bytes to be skipped. For BUSDWID = 32, if SKIP = 0, 4 bytes [31:0] are sent and 0 bytes are skipped; if SKIP = 1, 3 bytes [23:0] are sent and 1 byte is skipped; if SKIP = 2, 2 bytes [15:0] are sent and 2 bytes are skipped; if SKIP = 4, 1 byte [7:0] is sent and 2 bytes are skipped. The SKIP attribute enables the processing of payloads other than BUSDWID. The payload source can be located in the processor memory with any alignment. The SKIP attribute can also be used to dump the bytes before and after word-aligned data. The width of the slice "IS_DATA" is 0 or 1, for example, bit 4. If the written data is processed as a trace payload, this slice is a data marker. This bit is optional and is only required if there are other filtering in addition to the filtering after TYPE or LEVEL. The width of the slice "IS_END" is 1, for example, bit 5. IS_END is an end marker, which is used to close the channel and the written data is ignored. The slice "LEVEL" has a width of LEVELWID, for example, 8:6, which is defined at the design time of the trace handler module system and then fixed. The trace level classifies the trace messages into relevant categories, namely, INFO, WARN, ERROR. The width of the slice "TYPE" is TYPEWID, for example, 14:9, which is defined at the design time of the trace handler module system. The trace type identifies the trace message and its content. The width of the slice "CHAN" is CHANWID, for example 20:15, which is defined when the trace handler module system is designed. A trace channel is a transport protocol layer entity to separate different trace messages during transmission.
[0079] The above mentioned symbols BUSAWID, bus address width, i.e. 32 bits; BUSDWID, bus data width, i.e. 32 bits; LEVELWID, level width, i.e. 3 bits, which is optional and can be 0; TYPEWID, type width, i.e. 6 bits, which is optional and can be 0; and CHANWID, channel width, i.e. 6 bits define design-time constants which affect implementation details and therefore should be selected before.
[0080] Figure 5 The trace handler module system 4 of the present invention is shown, including a bus slave device 3, an input logic 6, a FIFO shift register 7 and an output logic 8. The bus slave device 3 converts a specific bus protocol into a simple strobe-based protocol. The specific bus address space depends on design-time constants. The bus slave device 3 never inserts a wait cycle (READY is always high). The input logic 6 is responsible for timestamping, filtering and channel allocation. For timestamping, the time base 9 delivers a header timestamp, which is captured and forwarded to the FIFO 7. Filtering can be done in different ways, which are completely orthogonal to each other. One option is that the input logic 6 filters the trace messages according to the trace level, and depending on the minimum trace level configured at runtime, specific messages are discarded or forwarded to the FIFO shift register 7. Another option is that the input logic 7 filters the trace messages according to the trace message type identifier, and depending on the trace message type identifier filter configuration configured at runtime, specific messages are discarded or forwarded to the FIFO shift register 7. And last but not least, the input logic 7 can filter the trace messages based on other trace metadata extracted from the bus ADDR signal. FIFO 7 decouples the bus transfer speed from the trace data stream speed. Each entry consists of trace level, trace type, trace channel, data word, timestamp, and skip information. The output logic converts the FIFO data format to the trace stream format.
[0081] The trace handler is capable of handling a defined number of trace channels (2 CHANWID -1). Each channel has its own status, such as Figure 7 , which shows the tracking channel state machine. By default, the channel is in Idle. The lowest numbered channel that is different from the previous channel is allocated on a bus read and thus moves to the Assigned state. Filtering is done here. The first write with the IS_DATA marker moves the state machine to Active. In any case, a write with the IS_END marker closes the channel and transitions to Idle again. In case no filtering rules are matched during Allocation or Activity, the state machine moves to Empty. In this state, incoming data is not forwarded to FIFO 7. If an incoming write cannot be stored in FIFO 7 because FIFO 7 is full, the data is lost and the state machine transitions to Empty. If all channels are allocated, an empty channel is returned on a read. Empty channels (i.e. 2 CHANWID -1) is a predefined channel number, whose data is always ignored.
[0082] Figure 6 Table 2 in shows the strict order that the firmware must follow when generating trace data using the trace handler module system 1. The entire process relies on the correct processing of address A, which complies with Figure 4Table 1 in this flow. This flow offloads the firmware and takes over timestamping, filtering, and output formatting with a minimal processor instruction set. It is obvious that every channel that is opened must be closed. If all channels are allocated, an empty channel is returned on read. The entire sequence has no conditionals and thus has constant execution time. The close channel operation explicitly ignores any written data. The firmware operation is faster if the send payload operation can be issued in a standard loop. The final additional write operation is negligible.
[0083] In another embodiment, design time constants are chosen and the implementation is changed depending on the use case. In addition to this, other trace metadata can be encoded using the method of TYPE and LEVEL. They are encoded in the bus address bits and forwarded to FIFO 7. Filtering them is optional.
[0084] In another embodiment, other data may be included for filtering, as has been depicted by using other tracking metadata besides TYPE and LEVEL. Processing more or less of this data and including it in the filtering criteria depends on the implementation.
[0085] It is also possible to count the total trace payload by counting all incoming payload bytes. This counter ignores filter criteria.
[0086] Additionally, the number of lost messages can be counted. This counter is incremented each time FIFO 7 is full or the number of channels is exceeded.
[0087] The apparatus and method of the present invention can be used to release all architectures of microcontrollers, whether embedded or system-on-chip.
[0088] Reference numerals list
[0089] 1 Bus Master
[0090] 2 Bus system
[0091] 3 Bus slaves
[0092] 4 Tracing Handler Module System
[0093] 5. Tracking Data Flow
[0094] 6 Input Logic
[0095] 7 First-In-First-Out (FIFO) Shift Register
[0096] 8 Output Logic
[0097] 9 Time base
[0098] 10 Filter Settings
Claims
1. A trace handler module system configured to take over trace messages representing the internal state of firmware running on a processor of a system on chip via a chip internal bus system, wherein: The trace message is carried by a bus data signal exchanged between a bus master and a bus slave through a chip internal bus system, and a bus address signal ADDR is used to encode additional trace metadata of the trace message, wherein the trace processing program module system includes: the bus slave, configured to convert bus protocol data into strobe-based protocol data; input logic, configured to add a timestamp to filter and channel allocate the converted data from the bus slave; a FIFO shift register, configured to decouple the bus transfer speed from the trace data stream speed and output a FIFO data format; and an output logic, configured to convert the FIFO data format into a trace data stream format representing the trace message to reconstruct the system behavior issued by the processor; The trace processing program module system uses different slices of the bus ADDR signal to extract the trace metadata of the trace message.
2. The tracking processing program module system according to claim 1, wherein: One slice of the bus ADDR signal defines a data marker IS_DATA, which specifies the trace message payload byte.
3. The tracking processing program module system according to claim 1, wherein: One slice of the bus ADDR signal defines an end marker IS_END, which specifies the closing of a channel.
4. The tracking processing program module system according to claim 1, wherein: One slice of the bus ADDR signal defines a trace level LEVEL, which specifies the class relevance of the trace message.
5. The tracking processing program module system according to claim 1, wherein: One slice of the bus ADDR signal defines a trace type TYPE, which specifies the trace message type identifier.
6. The tracking processing program module system according to claim 1, wherein: One slice of the bus ADDR signal defines a trace channel CHAN, which specifies a trace channel number.
7. The tracking processing program module system according to claim 1, wherein: The input logic is fed by the time base of the delivery header timestamp which is captured and forwarded to the FIFO shift register.
8. The tracking processing program module system according to claim 4, wherein: The input logic filters the trace messages according to the trace level, and depending on a runtime configured minimum trace level, the trace messages are either discarded or forwarded to the FIFO shift register.
9. The tracking processing program module system according to claim 5, wherein: The input logic filters the trace messages according to the trace message type identifier, and depending on the trace message type identifier configured at runtime, the trace messages are either discarded or forwarded to the FIFO shift register.
10. A trace processing program module system according to any one of the preceding claims, wherein: The input logic filters the trace messages based on other trace metadata extracted from the bus ADDR signal.
11. The tracking processing program module system according to claim 1, wherein: The trace handler module system includes a trace channel state machine that processes a defined number of trace channels, where the number of trace channels is determined by (2 CHANWID -1) pre-defined, where CHANWID defines the channel width of the tracking channel.
12. The tracking processing program module system according to claim 1, wherein: The trace handler module system includes a counter configured to count a number of lost trace messages whenever the FIFO shift register is full or exceeds a number of trace channels.
13. The tracking processing program module system according to claim 1, wherein: The trace handler module system includes a counter configured to count a total trace payload by counting all incoming payload bytes.
14. A method for generating a trace data stream from trace messages using a minimal processor instruction set by using a trace handler module system according to any one of claims 1 to 13, wherein: The method comprises the following steps: - Open the channel by reading any address of the trace handler module system, and the return value is the channel base address A used for all subsequent actions, - According to the slice type of the bus ADDR signal exchanged via the chip internal bus system, the TYPE bit in address A is set to the trace message type, - According to the slice LEVEL of the bus ADDR signal, the LEVEL bit in address A is set to the trace message level, - if slicing IS_DATA of the bus ADDR signal is performed, the IS_DATA bit in address A is set to 1 for all successively written words to be interpreted as trace message payload, - write the tracking message data to address A, - Set IS_END in address A to 1 to prepare for channel closing, - Close the channel by writing something to address A.
15. The method according to claim 14, wherein: Other tracking metadata besides TYPE and LEVEL are written to address A.
16. The method according to claim 14, wherein: If all channels are allocated, an empty channel is returned at address A, which is ignored.
17. The method according to claim 14, wherein: The method is executed unconditionally and with a constant execution time.
