LIBPFM(3)
β¨ NAME β¨
libpfm_intel_x86_arch β the girl who shows up for Intel X86 architectural PMU π
πΈ SYNOPSIS πΈ
#include <perfmon/pfmlib.h>
PMU name: ix86arch
PMU desc: Intel X86 architectural PMU
π¦ DESCRIPTION π¦
Okay so bestie, listen π β this library supports any processor that implements the Intel architectural PMU. That's the whole vibe.
It's a minimal PMU: a variable number of counters, but a predefined set of events. No surprises, no drama. And it's literally implemented in all recent processors starting with Intel Core Duo/Core Solo, so it's been around, it's not new here π
Here's the main character moment though: it acts as a default PMU support in case the library gets run on a very recent processor for which the specific support has not yet been implemented. Like, the understudy who's always ready. Understood the assignment fr fr π«Ά
π MODIFIERS π
The following modifiers are supported on Intel architectural PMU:
uβ measure at user level, which includes privilege levels 1, 2, 3. This corresponds toPFM_PLM3. It's a boolean modifier π«kβ measure at kernel level, which includes privilege level 0. This corresponds toPFM_PLM0. Also a boolean modifier π«iβ invert the meaning of the event. The counter will now count cycles in which the event is not occurring. Boolean modifier, yes ma'am.eβ enable edge detection, i.e., count only when there is a state transition. Boolean modifier π¦cβ set the counter mask value. The mask acts as a threshold. The counter will count the number of cycles in which the number of occurrences of the event is greater or equal to the threshold. This one is an integer modifier with values in the range[0:255]π’tβ measure on both threads at the same time, assuming hyper-threading is enabled. Heads up bestie: this modifier requires at least version 3 of the architectural PMU. Boolean modifier.
π AUTHORS π
Stephane Eranian <eranian@gmail.com>
September, 2009 β that's the date on this one, from the Linux Programmer's Manual, and it lives as LIBPFM(3) in the manual lineup. slay, go read it, ily πβ¨πΈ
π¦ where this page comes from
- arch rolling: libpfm 4.14.1-1 Β· MIT
- centos-stream 10: libpfm-devel 4.14.1-1.el10 Β· MIT
- centos-stream 9: libpfm-devel 4.14.1-1.el9 Β· MIT
- centos-stream 9: libpfm-devel 4.14.1-1.el9 Β· MIT
- debian bookworm: libpfm4-dev 4.13.0-1 Β· MIT
- debian trixie: libpfm4-dev 4.13.0+git99-gc5587f9-1 Β· MIT
- fedora 43: libpfm-devel 4.13.0-16.fc43 Β· MIT
- fedora 43: libpfm-devel 4.13.0-16.fc43 Β· MIT
- fedora 43: libpfm-devel 4.13.0-20.fc43
- fedora 43: libpfm-devel 4.13.0-20.fc43
- fedora 43: libpfm-devel 4.14.1-2.fc43 Β· MIT
- fedora 43: libpfm-devel 4.14.1-2.fc43 Β· MIT
- fedora 44: libpfm-devel 4.13.0-19.fc44 Β· MIT
- fedora 44: libpfm-devel 4.13.0-19.fc44 Β· MIT
- fedora 44: libpfm-devel 4.13.0-20.fc44
- fedora 44: libpfm-devel 4.13.0-20.fc44
- fedora 44: libpfm-devel 4.14.1-2.fc44 Β· MIT
- fedora 44: libpfm-devel 4.14.1-2.fc44 Β· MIT
- nixos 26.05: papi 7.2.0
- nixpkgs unstable: libpfm 4.14.1
- nixpkgs unstable: papi 7.2.0
- opensuse-leap 16.0: libpfm-devel 4.13.0-160000.3.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