Afaik, the current supported counters by the plugin-perf are ones supported by most CPUs. They are somehow hardcoded in the code.
For some use cases it's helpful to get specific CPUs counters (not supported by all CPUs).
Using libpfm to make the translation between event-name and the underlying perf_event counters code is probably the good way to retrieve these specific counters.
Afaik, the current supported counters by the
plugin-perfare ones supported by most CPUs. They are somehow hardcoded in the code.For some use cases it's helpful to get specific CPUs counters (not supported by all CPUs).
Using libpfm to make the translation between event-name and the underlying perf_event counters code is probably the good way to retrieve these specific counters.