LIBPFM(3)
πΈ LIBPFM(3) β the Linux Programmer's Manual, but make it cute πΈ
okay bestie, buckle up, because we're diving into libpfm_arm_neoverse_n2 π this is the page for the ARM Neoverse N2 core PMU support, living inside the big LIBPFM(3) manual family. yes the title says LIBPFM(3) up top, but the actual star of this page is the N2. iykyk π
β¨ NAME β¨
libpfm_arm_neoverse_n2 β support for ARM Neoverse N2 core PMU π¦
like, that's literally it. that's the whole vibe. it's the support layer, no cap π
β¨ SYNOPSIS β¨
#include <perfmon/pfmlib.h>
and also, the deets you actually need:
PMU name: arm_n2
PMU desc: ARM Neoverse N2
so when you're out here calling PMU names, you say arm_n2 and it knows exactly who you mean π
β¨ DESCRIPTION β¨
The library supports the ARM Neoverse N2 core PMU. periodt. π«Ά
This PMU is lowkey stacked β it supports 6 counters and it does privilege levels filtering, which is the fancy way of saying you get to pick who you're measuring (we'll get to that in a sec, keep reading bestie π).
It can also operate in both 32 and 64 bit modes, so whichever one your setup is giving, it's got you. versatile icon behavior fr fr β
β¨ MODIFIERS β¨
okay so here are the modifiers supported on ARM Neoverse N2 β these are the little letters you tack onto your event to say where the measuring happens π
uβ Measure at the user level. This corresponds toPFM_PLM3. This is a boolean modifier. so like, on/off, present or not, no numbers, just vibes πkβ Measure at the kernel level. This corresponds toPFM_PLM0. This is a boolean modifier. also just a yes/no situation, so don't come at it with a value, bestie πhvβ Measure at the hypervisor level. This corresponds toPFM_PLMH. This is a boolean modifier. yes,hv, two letters, and yes it's still boolean. icon behavior β¨
ngl, the pattern here is: each modifier is boolean. you either include it or you don't. there's no "a little bit of kernel" mode. that's just not a thing. π
β¨ AUTHORS β¨
Stephane Eranian <eranian@gmail.com> π
and that's the whole page, bestie!! πΈ go forth and measure your Neoverse N2 with main character energy, you absolute legend ππ
this cutie was brought to you by the Linux Programmer's Manual, LIBPFM(3), dated August, 2021 π mwah, slay, bye π¦β¨
π¦ 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 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