[Lldb-commits] [PATCH] D87589: [intel-pt] Add the instruction decoding functionality
walter erquinigo via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sun Sep 13 12:48:26 PDT 2020
wallace created this revision.
wallace added a reviewer: clayborg.
Herald added subscribers: lldb-commits, dang, aaron.ballman, mgorny.
Herald added a reviewer: JDevlieghere.
Herald added a project: LLDB.
wallace requested review of this revision.
Depends on D86670 <https://reviews.llvm.org/D86670>.
This adds the necessary logic that uses libipt (https://github.com/intel/libipt) to decode Intel PT traces.
The basic usage is as follows:
$ trace load /path/to/trace/settings/file.json
$ trace dump -i [-t TID]
$ pid: '2', tid: '22'
If no TID is specified, the currently selected thread ID of the current target is used.
Corresponding tests were added.
Note that this diff is just printing the instructions without any additional information, unlike the "disassemble" command. This will be done in a future diff.
Also, in a future diff I'll be analyzing each instruction and reconstructing the stack traces.
rG LLVM Github Monorepo
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 32643 bytes
Desc: not available
More information about the lldb-commits