LIBPFM(3)

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

okay bestie, so this is a page from section 3 of the Linux Programmer's Manual, and it's literally all about libpfm_intel_coreduo β€” the glow-up that lets libpfm talk to your Intel Core Duo/Solo era chips. it's giving ✨niche but iconic✨. let's get into it 🫢


✨ NAME ✨

libpfm_intel_coreduo β€” support for Intel Core Duo/Solo processors


🌸 SYNOPSIS 🌸

#include <perfmon/pfmlib.h>
PMU name: coreduo
PMU desc: Intel Core Duo

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, this library has your back for all Intel Yonah-based processors β€” think Intel Core Duo and Intel Core Solo. that's the whole vibe. Yonah girlies, this one's for you πŸ’…


πŸŽ€ MODIFIERS πŸŽ€

here's the tea on the modifiers you can use on Intel Core Duo processors, no cap:

  • u β€” measure at user level, which includes privilege levels 1, 2, 3. this maps to PFM_PLM3. it's a boolean modifier ✨
  • k β€” measure at kernel level, which includes privilege level 0. this maps to PFM_PLM0. also a boolean modifier πŸ’œ
  • i β€” invert the meaning of the event. so the counter will now count cycles in which the event is not occurring. yep, another boolean modifier πŸ™ˆ
  • e β€” enable edge detection, i.e. count only when there's a state transition. boolean modifier, bestie ⭐
  • 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's an integer modifier with values in the range [0:255] πŸ”₯

🌈 ENVIRONMENT VARIABLES 🌈

you can force activation of the Intel Core Duo support using the LIBPFM_FORCE_PMU variable. the PMU name, coreduo, must be passed. no additional options are supported β€” that's it, that's the whole menu πŸ“


πŸ‘‘ AUTHORS πŸ‘‘

Stephane Eranian <eranian@gmail.com>


and that's the whole page, bestie πŸ’– this little gem is from September, 2009, and it lives in section 3 of the Linux Programmer's Manual under the name LIBPFM. periodt. πŸ’…βœ¨