-
Notifications
You must be signed in to change notification settings - Fork 567
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
i#5505 kernel trace: Add drpt2trace to decode PT traces #5515
Conversation
Add Intel/libipt as a submodule in third_party. Issue #5505
Update CMakeLists.txt to support build libipt Update core/CMakeList.txt to fix the issue that drdecode will build as an shared libary. Issue #5505
drptpostprocessor is a command-line tool for decoding a PT trace, and converting it into an instruction-only memtrace composed of 'memref_t's. This is the first version. It can decode PT trace and count the number of instructions in the whole trace. Issue #5505
Add a simple test for drptpostprocessor. The simple trace data is recorded by perf. Issue #5505
Normally you would get the tests green before requesting a review so the code isn't changing during review. |
add to allowlist |
fix clang-format check fail on drptpostprocessor.c Issue #5505
To my point, a new commit came in while I was looking at the diff...please re-request review when ready. |
fix clang-format check fail on drptpostprocessor.c Issue #5505
Sorry for that. I will re-request review when the clang-format cl is pass. |
I would suggest installing clang-format locally in your dev env. |
remove long links Issue #5505
I installed it. But I think I met an issue about clang-format. The issue is I add links in comment and wrap them with "clang-format off" and "clang format on". The clang-format check still failed. Do you know how to fix it? /* Why we need to handle pending perf events?*/
/* clang-format off */
/* https://github.com/intel/libipt/blob/c848a85c3104e2f5780741f85de5c9e65476ece2/doc/man/pt_insn_next.3.md?plain=1#L207-L234 */
/* clang-format on */ |
adding parameters lets the tool set the image and its offset and extent.
Update:
Issue: 5505 |
Adds a PT raw traces decoding library and a command-line tool for testing it:
Issue: #5505