QEMU uftrace plugin #2025
pbo-linaro
started this conversation in
Show and tell
Replies: 2 comments 4 replies
-
Awesome! Thanks for your contribution! I'd be happy to review your PR. Please let me know if you have something to improve. |
Beta Was this translation helpful? Give feedback.
4 replies
-
Amazing! Thanks very much for your work! I'm not familiar with qemu plugin but I will try to use it when I have some time. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I wanted to share that QEMU now has a uftrace plugin (see source here).
It tracks current function via frame pointer analysis and supports x64 and aarch64 architectures.
The plugin generates a binary trace compatible with uftrace (similar to uftrace record), and allows to trace execution, in both user and system modes. System mode execution is particularly useful, as you can see visually what's executed in your firmwares, bootloader, and kernel, all at once.
One thing I would like to add is a link to executed source code, embedded in perfetto trace. Depending on the quality of the result, I'll send a pull request to uftrace to add this to dump command.
As an example, this is a trace of stat and open syscalls from kernel perspective:
Many thanks to uftrace developers and @namhyung for making this freely available.
I can't imagine all the bugs I would have need to fix before being able to display anything out of this.
Regards,
Pierrick
Beta Was this translation helpful? Give feedback.
All reactions