CSAL icon indicating copy to clipboard operation
CSAL copied to clipboard

Tool for visualizing the traced debug data from the ETB.

Open HokageM opened this issue 11 months ago • 1 comments

Can you recommend a tool for visualizing the traced debug data from the ETB?

HokageM avatar Mar 14 '24 10:03 HokageM

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.

algrant-arm avatar Mar 20 '24 12:03 algrant-arm