STRUCT MON_EVT(9)
π struct mon_evt(9) β the Kernel API Manual, bestie edition β¨
okay so you're reading struct mon_evt(9) from the Kernel API Manual and honestly? it's giving β¨main character energyβ¨ for resctrl monitor events. it's literally just a struct that holds the properties of a monitor event β no cap, that's the whole vibe. every field is a lil fact about one event and we're gonna go through all of them, one by one, because we don't skip. periodt. π
πΈ SYNOPSIS πΈ
struct mon_evt {
enum resctrl_event_id evtid;
enum resctrl_res_level rid;
char *name;
u32 evt_cfg;
bool configurable;
bool any_cpu;
bool is_floating_point;
unsigned int binary_bits;
bool enabled;
void *arch_priv;
};
like, look at her. ten fields, zero notes. π«Ά
π¦ Members π¦
evtidβ the event id. that's it, that's the field. it's the id of the event. πridβ the resource id for this event. yep, resource id, for this event specifically. πnameβ the name of the event. iconic, self-explanatory, we love a field that knows itself. β¨evt_cfgβ the event configuration value that represents the memory transactions (e.g.READS_TO_LOCAL_MEM,READS_TO_REMOTE_MEM) being tracked byevtid.
π¨ important bestie: this one is only valid if evtid is an MBM event. otherwise? don't even look at it. π
configurableβtrueif the event is configurable. that's the whole tea. βany_cpuβtrueif the event can be read from any CPU. any. CPU. slay. π₯is_floating_pointβ event values are displayed in floating point format. yes queen, decimals. πbinary_bitsβ number of fixed-point binary bits from architecture.
π¨ another caveat: only valid ifis_floating_pointistrue. so don't come for her if floats aren't on. π
enabledβtrueif the event is enabled. short, sweet, to the point. πarch_privβ architecture private data for this event. the arch_priv is provided by the architecture viaresctrl_enable_mon_event. literally the arch handing over its lil secrets. π€
π SEE ALSO π
so many friends, so little time β go say hi to:
- Kernel file
./fs/resctrl/internal.h cpumask_any_housekeeping(9)struct mon_data(9)struct rmid_read(9)enum rdtgrp_mode(9)struct mongroup(9)struct rdtgroup(9)struct rftype(9)struct mbm_state(9)
ngl, that's the whole page. every field accounted for, nothing skipped, we ate and left no crumbs. πβ¨
πΈ okay bestie, that's a wrap! this lil page lives in ./fs/resctrl, dated October 2026, and it's literally titled struct mon_evt(9) β now go read the manpage, ily, bye! ππ
π¦ 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