LIBPFM(3)

πŸ’– LIBPFM πŸ’–

okay bestie, so this is a page out of the Linux Programmer's Manual β€” third section, the library girlies β€” and it's all about one specific little PMU. grab a strawberry πŸ“ and let's go.


✨ NAME ✨

libpfm_intel_snbep_unc_r2pcie β€” the support squad for the Intel Sandy Bridge-EP R2 PCIe uncore PMU. that's it, that's the whole vibe. πŸ’…


✨ SYNOPSIS ✨

#include <perfmon/pfmlib.h>

PMU name: snbep_unc_r2pcie PMU desc: Intel Sandy Bridge-EP R2 PCIe uncore PMU

like, that's the name you'll be typing, no cap. πŸ“›


🌸 DESCRIPTION 🌸

so the library supports the Intel Sandy Bridge R2 PCIe uncore PMU. πŸ¦‹

and here's the tea you cannot skip: this PMU model only exists on Sandy Bridge model 45. that's it. model 45 or nothing. if you're on anything else, she's not there, don't go looking 😭

also? there is only one R2PCIe PMU per processor socket. one. singular. a whole socket and she's the only one. main character energy tbh πŸ‘‘


✨ MODIFIERS ✨

these are the modifiers supported on the Intel Sandy Bridge R2PCIe uncore PMU. they're little suffixes you tack onto events and honestly they ate:

  • i β€” inverts the meaning of the event. the counter will now count R2 PCIe cycles in which the event is not occurring. yes, we're counting the absence. iconic. this is a boolean modifier ✨
  • e β€” enables edge detection, i.e. count only when there's a state transition from no occurrence of the event to at least one occurrence. ⚑ careful though bestie: this modifier must be combined with a threshold modifier (t) with a value greater or equal to one. no t, no e, that's the rule. this is a boolean modifier.
  • t β€” sets the threshold value. when set to a non-zero value, the counter counts the number of R2PCIe cycles in which the number of occurrences of the event is greater or equal to the threshold. this is an integer modifier with values in the range [0:15]. so like, fifteen max, she's got range but it's a bounded range πŸŽ€

πŸ’œ AUTHORS πŸ’œ

Stephane Eranian <eranian@gmail.com> β€” thank you for your service, king 🫢


and that's the whole page, bestie!! slay 🌈

this was LIBPFM(3) from the Linux Programmer's Manual, dated August, 2012. go forth and count some uncore events, ily πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from