libpfm4 contains information about hundreds of events for dozens of architectures. With this, a user interested in the count of retired instructions on, for example, A64Fx can now use the name "INST_RETIRED".
There are some beauty issues we have to discuss here:
libpfms event name format is hierarchical: pmu::event:[sub event]. in --list-events I currently just flatten this hierarchy:
Also libpfm has detailed descriptionts for events. Including them in --list-events is probably too noisy, so may by introduce something like --list-event-details?
Lastly, libpfm also contains the the pre-defined perf events that we have hard-coded into lo2s, like cache-missescpu-clock etc. Throwing our hard-coded values away is probably not an option on grounds of backwards compatibility, so maybe filter them from libpfm?
libpfm4 contains information about hundreds of events for dozens of architectures. With this, a user interested in the count of retired instructions on, for example, A64Fx can now use the name "INST_RETIRED".
There are some beauty issues we have to discuss here:
libpfms event name format is hierarchical:
pmu::event:[sub event]
. in--list-events
I currently just flatten this hierarchy:but maybe we want
or even
Also libpfm has detailed descriptionts for events. Including them in
--list-events
is probably too noisy, so may by introduce something like--list-event-details
?Lastly, libpfm also contains the the pre-defined perf events that we have hard-coded into lo2s, like
cache-misses
cpu-clock
etc. Throwing our hard-coded values away is probably not an option on grounds of backwards compatibility, so maybe filter them from libpfm?