Parsing the perf_event perf.data file format

The perf tool stores sampled data in the perf.data format. This can be used by perf report and possibly other tools for analysis.

The perf.data file format is complex. I have been working on updating the tools/perf/Documentation/perf.data-file-format.txt found in the Linux kernel tree which seems to be the most up-to-date source of the file layout.

I have also been working on a PAPI tool that can generate the same format.

Additionally I have some tools that can dump the format.

I also wrote the perf_data_fuzzer which fuzzes the format looking for security bugs (which it has found).

These various tools can be found in the perf event tests -- https://github.com/deater/perf_event_tests repository on github.
Back to main perf_event page