Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tool for visualizing the traced debug data from the ETB. #20

Open
HokageM opened this issue Mar 14, 2024 · 1 comment
Open

Tool for visualizing the traced debug data from the ETB. #20

HokageM opened this issue Mar 14, 2024 · 1 comment

Comments

@HokageM
Copy link

HokageM commented Mar 14, 2024

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

@algrant-arm
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants