LIBPFM(3)

πŸ’– LIBPFM(3) πŸ’– β€” straight out of the Linux Programmer's Manual, section 3

okay bestie, sit down, hydrate, because we're talking about a very specific little corner of perfmon and honestly? it's iconic.


✨ NAME ✨

libpfm_intel_gnr_unc_imc β€” the support in libpfm for the Intel GraniteRapids Server Integrated Memory Controller (IMC) uncore PMU. yes that's a mouthful. yes it slays anyway. πŸ’…


🌸 SYNOPSIS 🌸

#include <perfmon/pfmlib.h>
  • PMU name: gnr_unc_imc[0-11]
  • PMU desc: Intel GraniteRapids Server IMC uncore PMU

like, there are twelve of them, 0 through 11, and they're all just vibing there waiting for you. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so the library supports the Intel GraniteRapids Server Integrated Memory Controller (IMC) uncore PMU. that's the whole thing. it's giving "short and confident." ✨


πŸŽ€ MODIFIERS πŸŽ€

these are the modifiers supported on the Intel GraniteRapids server IMC uncore PMU, and ngl you're gonna want to know them:

  • e β€” turns on edge detection, meaning you only count when there's a state transition from no occurrence of the event to at least one occurrence. cute, right? BUT: this modifier must be combined with a threshold modifier (t) that has a value greater than or equal to one. it's a boolean modifier, so no numbers, just vibes. πŸ”₯
  • t β€” sets the threshold value. when you set it to something non-zero, the counter counts the number of IMC cycles in which 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]. πŸ“ and oh β€” sneaking in right behind it is i: Invert the threshold (t) test, flipping it from strictly greater than to less or equal to. that one's a boolean modifier too. the way this one was just tucked into the t paragraph?? not me side-eyeing the formatting 😭 but it's real and it matters, so keep it in your notes. πŸ“

πŸ‘‘ AUTHORS πŸ‘‘

Stephane Eranian <eranian@gmail.com> β€” king behavior, honestly. πŸ’œ


k that's the whole page, bestie. it's from February, 2025, it's LIBPFM(3), and you now know more about GraniteRapids IMC uncore than like 90% of the group chat. go forth and perf. 🌈⭐