STRUCT XE_PMU(9)
π 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 actualstruct pmushe's built on top of. foundational queen behavior. πregisteredβ aboolthat says whether the PMU is registered and not currently in the unregistering process. sotrue= 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms