LIBPFM(3)

πŸ’– LIBPFM(3) β€” the Linux Programmer's Manual glow-up πŸ’–

okay bestie, so this is a page from the Linux Programmer's Manual, and it's all about libpfm_arm_ac57 β€” like, the whole manual is called LIBPFM(3) but this specific entry is the Arm Cortex A57 one. sit down, grab a boba, we're doing this πŸ§‹βœ¨


🌸 NAME 🌸

libpfm_arm_ac57 β€” support for Arm Cortex A57 PMU


✨ SYNOPSIS ✨

the vibe check, in code form:

#include <perfmon/pfmlib.h>

PMU name: arm_ac57
PMU desc: ARM Cortex A57

so you slap that #include in there, and the PMU goes by the name arm_ac57, described as ARM Cortex A57. iconic. no cap. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

this library supports the ARM Cortex A57 core PMU. that's the whole thing. she's here, she's supported, she's serving πŸ’…

the tea tho: this PMU has 6 counters and it does privilege levels filtering. and the way it can operate in both 32 and 64 bit modes? versatile queen πŸ‘‘


🌈 MODIFIERS 🌈

these are the little seasoning packets you can add to ARM Cortex A57. here's every single one, no gatekeeping:

  • u β€” measure at the user level. this corresponds to PFM_PLM3. it's a boolean modifier.
  • k β€” measure at the kernel level. this corresponds to PFM_PLM0. it's a boolean modifier.
  • hv β€” measure at the hypervisor level. this corresponds to PFM_PLMH. it's a boolean modifier.

three modifiers, three booleans, zero drama πŸ“


πŸ‘‘ AUTHORS πŸ‘‘

Stephane Eranian <eranian@gmail.com>


fr fr, this is LIBPFM(3) β€” from May, 2014 β€” so it's been out here thriving since way before you were even in the group chat. respect the elders, bestie πŸ«ΆπŸ’œ periodt.