LIBPFM(3)

πŸ’– LIBPFM_AMD64_FAM16H πŸ’–

okay bestie, so this is a page from the Linux Programmer's Manual, section 3 β€” yes, LIBPFM(3), that's the one. sit down, grab a strawberry πŸ“, and let me tell you about AMD64 Family 16h processors.


✨ NAME ✨

libpfm_amd64_fam16h β€” support for AMD64 Family 16h processors πŸ¦‹


🌸 SYNOPSIS 🌸

#include <perfmon/pfmlib.h>

PMU name: amd64_fam16h

PMU desc: AMD64 Fam16h Zen

like. the vibes are immaculate. πŸ’…


πŸ‘‘ DESCRIPTION πŸ‘‘

The library supports AMD Family 16h processors core PMU in both 32 and 64-bit modes. no cap, both modes, it's giving versatility. πŸ”₯


πŸŽ€ MODIFIERS πŸŽ€

The following modifiers are supported on AMD64 Family 16h core PMU β€” every single one, i'm not gatekeeping:

  • u β€” measure at user level, which includes privilege levels 1, 2, 3. this corresponds to PFM_PLM3. it's a boolean modifier, periodt.
  • k β€” measure at kernel level, which includes privilege level 0. this corresponds to PFM_PLM0. also a boolean modifier. πŸ’œ
  • h β€” measure while executing in host mode (when you're doing the virtualization thing). this corresponds to PFM_PLMH. this modifier is available starting with Fam10h. boolean modifier, iykyk.
  • g β€” measure while executing in guest mode (again, the virtualization situation). this one is also available starting with Fam10h. boolean modifier bestie. ✨
  • i β€” invert the meaning of the event. the counter will now count cycles in which the event is not occurring. this is a boolean modifier.
  • e β€” enable edge detection, i.e., count only when there is a state transition. this is a boolean modifier. not me counting only the transitions πŸ™ˆ
  • 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 is an integer modifier with values in the range [0:255]. 🧚

🌈 AUTHORS 🌈

Stephane Eranian <eranian@gmail.com> πŸ‘‘


okay that's the whole page bestie, every modifier accounted for, nothing skipped, we ate and left no crumbs πŸ’…βœ¨

sign-off time: this was the July, 2017 edition of the LIBPFM(3) page β€” that's the source, the version and the date all in one cute little bow πŸŽ€πŸ«Ά mwah, bye!! πŸ’–

πŸ“¦ where this page comes from