STRUCT XE_PMU(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct xe_pmu(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual entry for struct xe_pmu β€” yes it's giving kernel-internals-core but honestly? kinda iconic. πŸŽ€


✨ NAME ✨

struct xe_pmu β€” the PMU-related data, per Xe device. that's it, that's the vibe. πŸ¦‹


✨ SYNOPSIS ✨

struct xe_pmu {
    struct pmu base;
    bool registered;
    const char *name;
    u64 supported_events;
 };

lowkey just four members bestie. four. and yet she's carrying the whole perf story for this device. no cap. πŸ’…


✨ Members ✨

  • base β€” the PMU base. like, the actual struct pmu she's built on top of. foundational queen behavior. πŸ‘‘
  • registered β€” a bool that says whether the PMU is registered and not currently in the unregistering process. so true = she's live and slaying; false = either not there yet or lowkey on her way out. 🫢
  • name β€” the name as registered with perf core. this is the name perf core knows her by, fr fr. πŸ’–
  • supported_events β€” a bitmap of supported events, indexed by event id. like a little checklist of what she can do, and the event id is literally the index. iykyk. 🎯

✨ Description ✨

she stores per-device PMU info that includes event/perf attributes and sampling counters across all GTs for this device. all of them. every single GT. she's the main character holding that data together. 🌈


✨ SEE ALSO ✨

  • Kernel file ./drivers/gpu/drm/xe/xe_pmu_types.h β€” go read it, bestie, it's literally right there. πŸ’œ

ngl this one's a short read but that's a slay in itself. go forth and perf responsibly. 🧚

and that's the whole page!! 🌸 brought to you by ./drivers/gpu/drm/xe, dated October 2026, and yeah β€” struct xe_pmu(9) stays iconic forever. periodt. πŸ’€βœ¨

πŸ“¦ where this page comes from