LIBPFM(3)

πŸ“¦ version 4.13.0+git106-g3e4031b, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– LIBPFM(3) πŸ’–

okay bestie, this is a page from the Linux Programmer's Manual, and it's all about libpfm_arm_ac72 β€” yes, that's the whole vibe, it's giving "one specific Arm core and its performance monitoring unit". sit with me, it's short and it's slay πŸŽ€


✨ NAME ✨

libpfm_arm_ac72 β€” support for Arm Cortex A72 PMU


🌸 SYNOPSIS 🌸

#include <perfmon/pfmlib.h>
PMU name: arm_ac72
PMU desc: ARM Cortex A72

πŸ¦‹ DESCRIPTION πŸ¦‹

So this library, right, it supports the ARM Cortex A72 core PMU. That's it, that's the whole thing, main character energy πŸ’…

This PMU supports 6 counters and privilege levels filtering β€” so you can pick and choose who you're measuring, which is honestly so iconic of it. And it can operate in both 32 and 64 bit modes. Versatile queen πŸ‘‘


πŸ’… MODIFIERS πŸ’…

Here are the modifiers supported on ARM Cortex A72. Read them, learn them, love them:

  • u β€” measure at the user level. This corresponds to PFM_PLM3. This is a boolean modifier. ✨
  • k β€” measure at the kernel level. This corresponds to PFM_PLM0. This is a boolean modifier. πŸ”₯
  • hv β€” measure at the hypervisor level. This corresponds to PFM_PLMH. This is a boolean modifier. 🧚
ngl the pattern here is chef's kiss: each modifier maps to exactly one PFM_PLM* value, and every single one of them is boolean. no surprises, no drama, just vibes 🌈

πŸ‘‘ AUTHORS πŸ‘‘

Stephane Eranian <eranian@gmail.com>


and that's the whole page fr fr 🫢 this one came from the LIBPFM(3) manual, dated September, 2024, and it lives in the Linux Programmer's Manual. bye bestie, go count some counters πŸ’–πŸŒΈπŸ¦‹