STRUCT MON_EVT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 by evtid.
🚨 important bestie: this one is only valid if evtid is an MBM event. otherwise? don't even look at it. πŸ™ˆ
  • configurable β€” true if the event is configurable. that's the whole tea. ⭐
  • any_cpu β€” true if 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 if is_floating_point is true. so don't come for her if floats aren't on. 😭
  • enabled β€” true if 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 via resctrl_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