LIBPFM(3)
π LIBPFM(3) β the Linux Programmer's Manual, but make it cute β¨
okay bestie, gather round, because we're about to talk about libpfm_arm_ac53 and honestly? it's giving "tiny library, big responsibilities". this is the page for support for the ARM Cortex A53 PMU π
πΈ NAME πΈ
libpfm_arm_ac53 β support for ARM Cortex A53 PMU
no cap, that's the whole name. short, sweet, iconic π
β¨ SYNOPSIS β¨
first things first, you gotta pull in the header like so:
#include <perfmon/pfmlib.h>
and then the two little identity cards for this PMU:
- PMU name:
arm_ac53 - PMU desc:
ARM Cortex A53
that's it. that's the whole vibe check. π¦
π« DESCRIPTION π«
so, the library supports the ARM Cortex A53 core PMU. that's the main character energy right there π
now the deets, and I need you to actually remember these:
- this PMU supports 6 counters β six! count them. on your fingers. six ποΈπ€
- it also does privilege levels filtering, which is exactly what it sounds like and yes it matters
- and it can operate in both 32 and 64 bit modes, so it's flexible like that. versatile. adaptable. a queen π
π MODIFIERS π
these are the little suffixes you can sprinkle on your events. the following modifiers are supported on ARM Cortex A53:
uβ Measure at the user level. This corresponds toPFM_PLM3. This is a boolean modifier. β¨kβ Measure at the kernel level. This corresponds toPFM_PLM0. This is a boolean modifier. πhvβ Measure at the hypervisor level. This corresponds toPFM_PLMH. This is a boolean modifier. π§
heads up bestie: all three of these are boolean modifiers, meaning they're on-or-off, no in-between, no "a little bit of kernel", we don't do that here π
π AUTHORS π
- Stephane Eranian
<eranian@gmail.com>
big thank you to the author, genuinely, we stan π«Ά
and that's the whole page, bestie!! π this was the Linux Programmer's Manual, dated May, 2014, and the page is LIBPFM(3) β go forth and measure those counters responsibly β¨πΈπ
π¦ where this page comes from
- debian bookworm: libpfm4-dev 4.13.0-1 Β· MIT
- debian trixie: libpfm4-dev 4.13.0+git99-gc5587f9-1 Β· MIT
- nixos 26.05: libpfm 4.13.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