LIBPFM(3)

πŸ’– LIBPFM(3) β€” the libpfm girlies' manual page πŸ’–

okay so bestie, welcome to the libpfm glow-up era ✨ this is section 3 of the Linux Programmer's Manual, and we're about to get so cozy with it.


🌸 NAME 🌸

libpfm_amd64_fam1ah_zen6 β€” support for AMD64 Family 1Ah processors

like, that's the whole vibe. it's the libpfm module that holds it down for AMD64 Family 1Ah. periodt. πŸ‘‘


✨ SYNOPSIS ✨

#include <perfmon/pfmlib.h>
  • PMU name: amd64_fam1ah_zen6
  • PMU desc: AMD64 Fam1Ah Zen6

that include line? literally the key to the whole kingdom, don't lose it πŸ—οΈ


πŸ’… DESCRIPTION πŸ’…

The library supports AMD Family 1Ah processors Zen6 core PMU in both 32 and 64-bit modes. yes bestie, both β€” 32-bit and 64-bit, she's flexible, she contains multitudes πŸ¦‹ no cap.


πŸŽ€ MODIFIERS πŸŽ€

okay so these are the modifiers supported on the AMD64 Family 1Ah Zen6 core PMU. they're the little seasoning you sprinkle on an event to change what it does. put some respect on their names:

  • u β€” Measure at user level, which includes privilege levels 1, 2, 3. This corresponds to PFM_PLM3. It's a boolean modifier β€” so it's just vibes, on or off βœ…
  • k β€” Measure at kernel level, which includes privilege level 0. This corresponds to PFM_PLM0. Also a boolean modifier πŸ‘‘
  • h β€” Measure while executing in host mode (that's when you're using virtualization). This corresponds to PFM_PLMH. Heads up: this modifier is available starting with Fam10h πŸ”₯ boolean modifier energy.
  • g β€” Measure while executing in guest mode (again, that's the virtualization life). This modifier is available starting with Fam10h 🌈 boolean modifier, obviously.
  • i β€” Invert the meaning of the event. The counter will now count cycles in which the event is not occurring. like, the event but make it the opposite πŸ’€ boolean modifier.
  • e β€” Enable edge detection, i.e., count only when there is a state transition. dramatic! only the moments matter, not the sustained vibe β€” main character energy fr fr. boolean modifier.
  • c β€” Set the counter mask value. The mask acts as a threshold: the counter will count the number of cycles in which the number of occurrences of the event is greater or equal to the threshold. πŸ“ˆ this one is an integer modifier with values in the range [0:255] β€” so like, pick a number, bestie. number goes in, threshold goes on.
no cap: i, e and c change what actually gets counted, so know what you're doing before you send it 🫢

🌟 AUTHORS 🌟

  • Swarup Sahoo
  • Nitika Achra

absolute icons, we stan πŸ™Œ


that's the whole page, bestie β€” you ate that read πŸ’… this one's from the Linux Programmer's Manual, section 3, dated May, 2026, running under the LIBPFM banner, and honestly? iconic πŸŽ€ bye love u, go count some events βœ¨πŸ’–