libpfm_intel_spr
support for Intel SapphireRapid core PMU
- Provided by: libpfm4-dev (Version: 4.13.0+git32-g0d4ed0e-1ubuntu0.1)
- Source: libpfm4
- Report a bug
support for Intel SapphireRapid core PMU
#include <perfmon/pfmlib.h> PMU name: spr PMU desc: Intel SapphireRapid
The library supports the Intel SapphireRapid core PMU. It should be noted that this PMU model only covers each core's PMU and not the socket level PMU.
On SapphireRapid, the number of generic counters depends on the Hyperthreading (HT) mode.
The pfm_get_pmu_info() function returns the maximum number of generic counters in num_cntrs.
The following modifiers are supported on Intel SapphireRapid processors:
Intel SapphireRapid supports two encodings for offcore_response events. In the library, these are called OFFCORE_RESPONSE_0 and OFFCORE_RESPONSE_1.
Those events need special treatment in the performance monitoring infrastructure because each event uses an extra register to store some settings. Thus, in case multiple offcore_response events are monitored simultaneously, the operating system needs to manage the sharing of that extra register.
The offcore_response events are exposed as a normal events by the library. The extra settings are exposed as regular umasks. The library takes care of encoding the events according to the underlying kernel interface.
On Intel SapphireRapid unlike older processors, the event is treated as a regular event with a flat set of umasks to choose from. It is not possible to combine the various requests, supplier, snoop bits anymore. Therefore the library offers the list of validated combinations as per Intel's official event list.
Stephane Eranian <eranian@gmail.com>