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 toPFM_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 toPFM_PLM0. Also a boolean modifier πhβ Measure while executing in host mode (that's when you're using virtualization). This corresponds toPFM_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,eandcchange 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 β¨π
π¦ where this page comes from
- arch rolling: libpfm 4.14.1-1 Β· MIT
- centos-stream 10: libpfm-devel 4.14.1-1.el10 Β· MIT
- centos-stream 9: libpfm-devel 4.14.1-1.el9 Β· MIT
- centos-stream 9: libpfm-devel 4.14.1-1.el9 Β· MIT
- fedora 43: libpfm-devel 4.14.1-2.fc43 Β· MIT
- fedora 43: libpfm-devel 4.14.1-2.fc43 Β· MIT
- fedora 44: libpfm-devel 4.14.1-2.fc44 Β· MIT
- fedora 44: libpfm-devel 4.14.1-2.fc44 Β· MIT
- nixpkgs unstable: libpfm 4.14.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms