#intel #decoder #decoding #processor #trace #reference #pt

libipt

The Intel Processor Trace (Intel PT) Decoder Library is Intel's reference implementation for decoding Intel PT

7 releases

new 0.2.0 Nov 22, 2024
0.2.0-rc.1 Nov 21, 2024
0.1.4 Feb 16, 2020
0.1.1 Jan 31, 2020

#268 in Parser implementations

Download history 10/week @ 2024-09-20 2/week @ 2024-09-27 2/week @ 2024-10-11 554/week @ 2024-11-08 1130/week @ 2024-11-15

1,687 downloads per month
Used in 2 crates

MIT license

180KB
4K SLoC

Libipt

The Intel Processor Trace (Intel PT) Decoder Library is Intel's reference implementation for decoding Intel PT. It can be used as a standalone library or it can be partially or fully integrated into your tool.

This Repository contains high level rust bindings for the complete functionality provided by the original libipt library.

Huge thanks to the rust discord community for being awesome and helping me out with some stuffs :D.

State

Testing

All of the functionality is implemented and should be working but the test coverage is not complete. If there is interest in this library i might add some more testing. Contributions are also appreciated.

Documentation

I did my best to provide useful documentation for most of the library. If you see any missing or weird documentation feel free to open an issue or pull request.

docs.rs is sadly unable to build the project because of a header file which needs to be copied out of the build dir. Ill need to get the sorted out somehow.

Unit Tests

  • block: ✔️
  • config: ✔️
  • event: ✔️
  • image: ✔️
  • insn: ✔️
  • packet: ✔️
  • asid: ✔️️
  • encoder: ✔️
  • query: ✔️
  • version: ✔️

Integration Tests

  • Encoding: ❌
  • Block Decoding: ❌
  • Insn Decoding: ❌
  • Packet Decoding: ❌
  • Query Decoding: ❌

Dependencies

~1.2–4MB
~84K SLoC