STRUCT PMT_EVENT(9)
π¦ struct pmt_event(9) π¦
okay so real talk, this is a page from the Kernel API Manual and it's all about struct pmt_event β literally just a telemetry event, bestie. that's the whole vibe. it's a lil struct that tells you about a telemetry event, and honestly? iconic of it. π
β¨ SYNOPSIS β¨
here's the whole thing, no cap, character for character:
struct pmt_event {
enum resctrl_event_id id;
unsigned int idx;
unsigned int bin_bits;
};
that's it. that's the struct. three members, zero drama. π
πΈ Members πΈ
okay so let's meet the cast, one member at a time, because each one is kind of a main character in their own way:
idβ the resctrl event id. this is the "which event even is this" field, iykyk. πidxβ the counter index within each per-RMID block of counters. yes, per-RMID, say it with me. it's the little position marker inside each block. πbin_bitsβ here's the tea: this one is zero for integer valued events, and otherwise it's the number of bits in the fraction part of the fixed-point representation. so like, zero = plain integer vibes, nonzero = fixed-point fraction bits. math slay. π’β¨
fr fr, don't mix those up βbin_bitsbeing0is a special case meaning "integer valued event", not just "no bits, lol". π«Ά
π SEE ALSO π
- Kernel file
./arch/x86/kernel/cpu/resctrl/intel_aet.c struct event_group(9)
go read those next, bestie, they're right there in the source tree. π
and that's the whole page!! no notes, she ate. π
β cute lil sign-off: this one lives under ./arch/x86/kernel/cpu/resctrl and the date on the tin is October 2026 β so yeah, mark your calendar, 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