LIBPFM(3)
π LIBPFM(3) β bestie edition π
okay so this is a page from the Linux Programmer's Manual, and it's all about libpfm_amd64_fam17h β the libpfm support for AMD64 Family 17h processors. yes we're doing performance monitoring today, stay with me, it's gonna be cute π
β¨ NAME β¨
libpfm_amd64_fam17h β support for AMD64 Family 17h processors π
πΈ SYNOPSIS πΈ
like, this is the vibe you include:
#include <perfmon/pfmlib.h>
and here's the β¨identityβ¨ of the thing we're talking about:
- PMU name:
amd64_fam17h(deprecated),amd_fam17h_zen1 - PMU desc: AMD64 Fam17h Zen1
π¦ DESCRIPTION π¦
so the library supports the AMD Family 17h processors Zen1 core PMU, and it does it in both 32 and 64-bit modes. iconic, flexible, we love that for us. π«Ά
now the tea β: the amd64_fam17h PMU model name has been deprecated in favor of amd_fam17h_zen1. the old name is still hanging around for backward compatibility reasons (grandfathered in, respect), but bestieβ¦ it should not be used anymore. periodt. π
π MODIFIERS π
these are the modifiers supported on the AMD64 Family 17h Zen1 core PMU β think of them as the little accessories you can clip onto your event π:
uβ measure at user level, which includes privilege levels 1, 2, 3. this corresponds toPFM_PLM3. this is a boolean modifier. βkβ measure at kernel level, which includes privilege level 0. this corresponds toPFM_PLM0. this is a boolean modifier. βhβ measure while executing in host mode (when using virtualization). this corresponds toPFM_PLMH. this modifier is available starting with Fam10h. this is a boolean modifier. π₯οΈgβ measure while executing in guest mode (when using virtualization). this modifier is available starting with Fam10h. this is a boolean modifier. π§iβ invert the meaning of the event. the counter will now count cycles in which the event is not occurring. this is a boolean modifier. πeβ enable edge detection, i.e., count only when there is a state transition. this is 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. this is an integer modifier with values in the range[0:255]. π’
π AUTHORS π
- Stephane Eranian
<eranian@gmail.com>β the icon, the moment, the main character π
and that's the whole page bestie!! this one shipped as part of the Linux Programmer's Manual, page LIBPFM(3), dated July, 2017. go forth and profile responsibly, ily, mwah πβ¨π
π¦ 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 jammy: libpfm4-dev 4.11.1+git32-gd0b85fb-1 Β· BSD-like
- ubuntu jammy: libpfm4-dev 4.11.1+git32-gd0b85fb-1ubuntu0.1 Β· BSD-like
- 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