- Add PerfEvent class to handle creating ring buffers and handle the resources associated with the perf_event. This API can be used by the IntelPT collection code and by the future work in this series of diffs related to enabling TSC to timestamp conversion.
- Refactor IntelPT collection code to use this new API
- Add TSC to timestamp conversion logic with unittest
Depends on https://reviews.llvm.org/D121711
Second of the series of smaller diffs that split https://reviews.llvm.org/D120595 up
this shouldn't be there.
I'm even more amazed by the fact that
are there in the first place. Maybe the intel guy who did this first added them