Example implementation
Example implementation consists of:
Practical implementation hints
The example only shows how to handle bare metal tracing, and first of all, it does not show what to do with the traced data. For practical implementation, you would likely need to implement some mechanism on how to get buffer off the chip and use the following hints:
-
Use a mechanism to detect how many entries were already written in the current buffer.
-
Use two (or more) buffers; change them when they are full/almost full. This should lower the number of missed traced services during the trace buffer processing
-
Process the inactive buffer — either stop the trace before or process the currently unused buffer in case of multi-buffer approach