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

libipt

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

8 releases

0.2.1-beta.1 Nov 25, 2024
0.2.0 Nov 22, 2024
0.1.4 Feb 16, 2020
0.1.1 Jan 31, 2020

#211 in Parser implementations

Download history 12/week @ 2024-09-23 2/week @ 2024-10-14 894/week @ 2024-11-11 1221/week @ 2024-11-18 1620/week @ 2024-11-25 1010/week @ 2024-12-02 1154/week @ 2024-12-09 1542/week @ 2024-12-16

5,417 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
~86K SLoC