LIBPFM(3)

🌸 NAME 🌸

okay so bestie, welcome to the LIBPFM(3) page from the Linux Programmer's Manual πŸ’–. This one is all about libpfm_intel_spr_unc_cha β€” support for the Intel IcelakeX Server CHA uncore PMU. yes, that is the whole name, and no we are not abbreviating it, periodt. πŸ’…


✨ SYNOPSIS ✨

here's the incantation, copy it exactly:

#include <perfmon/pfmlib.h>

PMU name: spr_unc_cha[0-59]
PMU desc: Intel SapphireRapids CHA uncore PMU

πŸ¦‹ DESCRIPTION πŸ¦‹

The library is out here supporting the Intel SapphireRapids CHA (coherency and home agent) uncore PMU. One CHA-box PMU per physical core β€” that's the setup. So there are up forty identical CHA PMU instances numbered from 0 up to possibly 59. On dual-socket systems, that number refers to the CHA PMUs on the socket where the program runs. 🫢

Each CHA PMU implements 4 generic counters. lowkey iconic. ✨


πŸ’… MODIFIERS πŸ’…

These are the modifiers supported on the Intel SapphireRapids CHA uncore PMU:

  • e β€” turns on edge detection, meaning count only when there's a state transition from no occurrence of the event to at least one occurrence. You must pair this with a threshold modifier (t) whose value is greater or equal to one. It's a boolean modifier. πŸ¦‹
  • t β€” sets the threshold value. If it's non-zero, the counter counts the number of CHA clockticks where the number of occurrences of the event is greater or equal to the threshold. It's an integer modifier, values in the range [0:255]. ✨
  • i β€” flips the threshold (t) test from strictly greater than to less or equal to. It's a boolean modifier. πŸ’…

πŸ‘‘ AUTHORS πŸ‘‘

Stephane Eranian <eranian@gmail.com> β€” the mastermind, the icon, the blueprint. bow down. πŸ‘‘


catch u later, bestie β€” this was the January, 2024 edition of LIBPFM(3), part of the Linux Programmer's Manual. mwah πŸ’‹