Is it possible to use libpfm4 to map known perf PMU-based events (e.g.,
perf::BRANCHES or perf::INSTRUCTIONS) into raw PMU codes?
In my x86 application, I want to list the available PMU events to the user,
and accept any supported one and then program "raw" via writes to the MSRs.
This works fine for the x86 PMU events listed by libpfm (e.g.,
ix86arch::UNHALTED_CORE_CYCLES and skl::WHATEVER), but for perf events, the
codes returned are only appropriate for use with the perf_event_open API,
as I understand it.
I want the raw codes - is it possible?
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel