LIBPFM(3)
β¨ LIBPFM(3) β the snbep_unc_unc_pcu glow-up β¨
okay bestie, this is the libpfm page for libpfm_intel_snbep_unc_pcu β aka the Intel Sandy Bridge-EP Power Controller Unit (PCU) uncore PMU support. yes the name is a mouthful. no we're not renaming it. π
π NAME π
libpfm_intel_snbep_unc_pcu β support for Intel Sandy Bridge-EP Power Controller Unit (PCU) uncore PMU
π¦ SYNOPSIS π¦
#include <perfmon/pfmlib.h>
PMU name: snbep_unc_pcu
PMU desc: Intel Sandy Bridge-EP PCU uncore PMU
π DESCRIPTION π
So like, this library ships support for the Intel Sandy Bridge Power Controller Unit uncore PMU. iconic behavior tbh.
ngl there's a catch though: this PMU model only exists on Sandy Bridge model 45. and there's literally only one PCU PMU per processor socket. one. singular. main character energy, no understudies. π
πΈ MODIFIERS πΈ
The following modifiers are supported on Intel Sandy Bridge C-Box uncore PMU:
iβ Invert the meaning of the event. The counter will now count HA cycles in which the event is not occurring. This is a boolean modifier. not me flipping the whole vibe of your counter πeβ Enable edge detection, i.e., count only when there is a state transition from no occurrence of the event to at least one occurrence. This modifier must be combined with a threshold modifier (t) with a value greater or equal to one. This is a boolean modifier. fr fr, don't runesolo, it needs its buddy.tβ Set the threshold value. When set to a non-zero value, the counter counts the number of HA cycles in which the number of occurrences of the event is greater or equal to the threshold. This is an integer modifier with values in the range[0:15]. that's it, that's the whole range, bestie.ffβ Enable frequency band filtering. This modifier applies only to theUNC_P_FREQ_BANDx_CYCLESevents, wherexis[0-3]. The modifiers expects an integer in the range[0-255]. The value is interpreted as a frequency value to be multiplied by 100Mhz. Thus if the value is 32, then all cycles where the processor is running at 3.2GHz and more are counted. 3.2GHz and up?? highkey slay β‘
π Frequency band filtering π
There are 3 events which support frequency band filtering, namely, UNC_P_FREQ_BAND0_CYCLES, UNC_P_FREQ_BAND1_CYCLES, UNC_P_FREQ_BAND2_CYCLES, UNC_P_FREQ_BAND3_CYCLES. (yes bestie, "3 events" then four names. we don't make the rules, we just pass them along verbatim π)
The frequency filter (available via the ff modifier) is stored into a PMU shared register which hold all 4 possible frequency bands, one per event. However, the library generate the encoding for each event individually because it processes events one at a time. The caller or the underlying kernel interface may have to merge the band filter settings to program the filter register properly.
β οΈ heads up: that shared register means you (or the kernel interface underneath you) might have to do the merging yourself. the library is doing one event at a time and it's not gonna do that part for you. plan accordingly π«Ά
π AUTHORS π
Stephane Eranian <eranian@gmail.com>
and that's the whole page, periodt β¨ this was Linux Programmer's Manual, LIBPFM(3), dated August, 2012 β ty for coming to my ted talk, ily, go count some uncore events ππ¦π
π¦ 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