PERF_COUNT_SW_DUMMY is introduced in Linux 3.12.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for fixing this!
@wallace perhaps in a followup diff we can add support for these older versions of Linux by just using an arbitrary PERF_COUNT_SW config to get access to the metadata page that contains the TSC conversion parameters? AFAIK the IntelPT code is the only code that uses this logic, so this doesn't really matter since kernel support for IntelPT was added in version 4.2, but if people want to use this logic in another context then this small change of supporting older kernel versions could be nice!