LIBPFM(3)

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

okay bestie, so this is a page from the Linux Programmer's Manual β€” it's LIBPFM(3), and we're about to get so acquainted 🫢


✨ NAME ✨

libpfm_arm_ac15 β€” the whole entire vibe here is support for Arm Cortex A15 PMU πŸ’…


🌸 SYNOPSIS 🌸

like, just pull it in, bestie:

#include <perfmon/pfmlib.h>

and then the deets:

PMU name: arm_ac15
PMU desc: ARM Cortex A15
πŸŽ€ copy those two lines exactly, okay? arm_ac15 is the name the library answers to, no nicknames.

πŸ¦‹ DESCRIPTION πŸ¦‹

So the library supports the ARM Cortex A15 core PMU. That's it, that's the assignment, and it ate πŸ’…

This PMU supports 6 counters and privilege levels filtering. Six! Counters! Filtering! We love a modest but capable queen πŸ‘‘


πŸŽ€ MODIFIERS πŸŽ€

These are the modifiers supported on ARM Cortex A15, and they're all boolean, meaning it's a yes/no situation, no in-between, periodt:

  • 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. Also a boolean modifier. ✨
  • hv β€” measure at the hypervisor level. This corresponds to PFM_PLMH. Yep, boolean modifier too. πŸ’œ
πŸ™ˆ not me reminding you again: all three are boolean modifiers, so don't go trying to feed them values like it's a number situation. It is not.

πŸ‘‘ AUTHORS πŸ‘‘

  • Stephane Eranian <eranian@gmail.com>

and that's the whole page, bestie, you understood it perfectly, I'm obsessed πŸ˜­πŸ’– this was LIBPFM(3), from the Linux Programmer's Manual, and it was dated August, 2012 β€” yeah I know, ancient, but iconic behaviour never expires ⭐ slay, go forth and profile responsibly 🧚