LIBPFM(3)
π LIBPFM(3) π
okay so bestie, this is a page from the Linux Programmer's Manual β yes that one β and today's main character is libpfm_amd64_fam19h_zen4. she's giving "support for AMD64 Family 19h processors" and honestly? iconic. no cap. π
β¨ NAME β¨
libpfm_amd64_fam19h_zen4 β support for AMD64 Family 19h processors π¦
πΈ SYNOPSIS πΈ
#include <perfmon/pfmlib.h>
PMU name: amd64_fam19h_zen4
PMU desc: AMD64 Fam19h Zen4
π DESCRIPTION π
so like, the library supports the AMD Family 19h processors Zen4 core PMU, and she does it in both 32 and 64-bit modes. versatile queen behavior fr fr π
π₯ MODIFIERS π₯
here's the modifiers supported on the AMD64 Family 19h Zen4 core PMU, bestie β read them, love them, memorize them π«Ά
uβ measure at user level, which includes privilege levels 1, 2, 3. this corresponds toPFM_PLM3. it's a boolean modifier. β¨kβ measure at kernel level, which includes privilege level 0. this corresponds toPFM_PLM0. it's a boolean modifier. πhβ measure while executing in host mode (aka when you're using virtualization). this corresponds toPFM_PLMH. this modifier is available starting with Fam10h. it's a boolean modifier. π§gβ measure while executing in guest mode (aka when you're using virtualization). this modifier is available starting with Fam10h. it's a boolean modifier. πiβ invert the meaning of the event. the counter will now count cycles in which the event is not occurring. it's a boolean modifier. πeβ enable edge detection, i.e., count only when there is a state transition. it's a 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. it's an integer modifier with values in the range[0:255]. π
π AUTHORS π
Stephane Eranian π
that's the whole vibe bestie β written up back in December, 2022, for LIBPFM(3). go forth and count some cycles, periodt πΈπ
π¦ 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
- debian bookworm: libpfm4-dev 4.13.0-1 Β· MIT
- debian trixie: libpfm4-dev 4.13.0+git99-gc5587f9-1 Β· MIT
- fedora 43: libpfm-devel 4.13.0-16.fc43 Β· MIT
- fedora 43: libpfm-devel 4.13.0-16.fc43 Β· MIT
- fedora 43: libpfm-devel 4.13.0-20.fc43
- fedora 43: libpfm-devel 4.13.0-20.fc43
- 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.13.0-19.fc44 Β· MIT
- fedora 44: libpfm-devel 4.13.0-19.fc44 Β· MIT
- fedora 44: libpfm-devel 4.13.0-20.fc44
- fedora 44: libpfm-devel 4.13.0-20.fc44
- fedora 44: libpfm-devel 4.14.1-2.fc44 Β· MIT
- fedora 44: libpfm-devel 4.14.1-2.fc44 Β· MIT
- nixos 26.05: papi 7.2.0
- nixpkgs unstable: libpfm 4.14.1
- nixpkgs unstable: papi 7.2.0
- opensuse-leap 16.0: libpfm-devel 4.13.0-160000.3.1 Β· MIT
- ubuntu noble: libpfm4-dev 4.13.0+git32-g0d4ed0e-1 Β· MIT
- ubuntu noble: libpfm4-dev 4.13.0+git32-g0d4ed0e-1ubuntu0.1 Β· MIT
- ubuntu questing: libpfm4-dev 4.13.0+git99-gc5587f9-1
- ubuntu resolute: libpfm4-dev 4.13.0+git106-g3e4031b-1 Β· MIT
- ubuntu resolute: libpfm4-dev 4.13.0+git106-g3e4031b-1ubuntu0.1 Β· MIT
- ubuntu stonking: libpfm4-dev 4.13.0+git106-g3e4031b-1ubuntu1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms