This repository holds the source code for the perf-event2 and
perf-event-open-sys2 crates, which provide access to performance monitoring
hardware and software on linux.
This repository is a fork of Jim Blandy's perf-event crate that has been
updated to include several new features:
- The bindings have been updated to Linux 6.0
perf-event2supports many more event typesperf-event2supports reading and parsing profiling samples emitted by the kernel.
For more details see the readmes within the respective crate directories:
On systems other than Linux the perf-event2 crate will not compile but you
can use the data types exposed by the perf-event-open-sys2 crate. This can
useful for code that needs to parse perf-related data produced on Linux or
Android systems. The syscall and ioctl functions will not be available.
- The original
perf-eventcrate is still usable depending on your use case. - If you want to parse data emitted by
perforperf_event_opensee theperf-event-datacrate.