QEMU uftrace plugin #2025
p-b-o
started this conversation in
Show and tell
Replies: 4 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. |
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. |
0 replies
|
As a complement to this, and to ease navigating huge traces, I implemented a web viewer for it. |
0 replies
|
Fantastic! I've played with it and really enjoyed it. Thanks for sharing the amazing work!! |
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
All reactions