LIBPFM(3)
π LIBPFM π
okay bestie, this is a page from the Linux Programmer's Manual, section 3 (that's the library-calls girlies, iykyk). it's all about libpfm_arm_ac15, which is the bit of libpfm that holds space for the Qualcomm Krait PMU. yes it's niche. yes it's iconic. let's get into it π
β¨ NAME β¨
libpfm_arm_ac15 β the support module for the Qualcomm Krait PMU. that's it, that's the whole job, and she does it flawlessly π
πΈ SYNOPSIS πΈ
so like, here's how you actually pull her into your code:
#include <perfmon/pfmlib.h>
and the deets you need to know about the PMU herself:
PMU name: qcom_krait
PMU desc: Qualcomm Krait
keep those strings exact, bestie, they're how the library finds her π«Ά
π¦ DESCRIPTION π¦
the library ships support for the Qualcomm Krait core PMU. that's the whole vibe. main character energy, no notes.
now the fun part: this PMU gives you 5 counters to play with, and she does privilege levels filtering too β so you get to decide whose activity you're watching. lowkey powerful. π₯
π MODIFIERS π
these are the little suffixes you can slap onto an event to shape how it measures. all three are boolean modifiers β meaning it's a yes/no situation, on or off, no in-between, periodt:
uβ measure at the user level. this maps toPFM_PLM3. boolean modifier, so it's just vibes: present or not β¨kβ measure at the kernel level. this maps toPFM_PLM0. also a boolean modifier πhvβ measure at the hypervisor level. this maps toPFM_PLMH. yep, boolean modifier too, she's consistent π§
π« AUTHORS π«
Stephane Eranian <eranian@gmail.com> β thank you for your service, king π«‘
and that's the whole page, bestie!! the Linux Programmer's Manual, dated January, 2014, page LIBPFM(3). go forth and profile something cute ππ
π¦ 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
- 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