CSAL
CSAL copied to clipboard
Tool for visualizing the traced debug data from the ETB.
Can you recommend a tool for visualizing the traced debug data from the ETB?
If you mean turn trace data into a trace of instructions, then right now, your best options might be:
- use the ETM packet decoder from https://github.com/Linaro/OpenCSD and build something around it to retrieve the instructions from the ELF files (which is what Linux
perf
does when it's got buffers full of ETM) - import the trace into a debugger like ArmDS - CSAL has some example code for generating a trace snapshot in DS format, basically a directory with trace buffer contents and some .INI files describing it - see
cs_util_create_snapshot.c
It depends what you're after. ETM is very complex to decode, but ITM (Cortex-M instrumentation trace) is much simpler.