ENUM METRIC_EVENT_GROUPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum metric_event_groups(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ β€” this one's a little baby page about enum metric_event_groups, which is literally just a vibes-check for how events inside a pmu_metric should be grouped. that's it. that's the whole lore. πŸŽ€


✨ NAME ✨

enum metric_event_groups β€” how events within a pmu_metric should be grouped. no cap, that's the entire job description 🫢


🌸 SYNOPSIS 🌸

enum metric_event_groups {
    MetricGroupEvents ,
    MetricNoGroupEvents ,
    MetricNoGroupEventsNmi ,
    MetricNoGroupEventsSmt ,
    MetricNoGroupEventsThresholdAndNmi

};

look at her. five little constants, all lined up, all iconic πŸ‘‘


πŸ’– Constants πŸ’–

  • MetricGroupEvents β€” the default one, bestie ✨ group events within the metric. that's the standard behavior, the main character energy, the one everybody gets unless you say otherwise.
  • MetricNoGroupEvents β€” do not group events for the metric. that's it, that's the whole instruction πŸ™ˆ
  • MetricNoGroupEventsNmi β€” don't group events for the metric if the NMI watchdog is enabled. like, conditional queen πŸ’… the grouping stays off only when that watchdog is up.
  • MetricNoGroupEventsSmt β€” don't group events for the metric if SMT is enabled. same deal, different condition ⭐
  • MetricNoGroupEventsThresholdAndNmi β€” don't group events for the metric thresholds and if the NMI watchdog is enabled. yes, both things: the metric thresholds and the NMI watchdog being enabled πŸ”₯
ngl these are all just "group" vs "don't group" with progressively more conditions attached, so don't overthink it 🧚

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./tools/perf/pmu-events/pmu-events.h β€” go read the actual source, iykyk πŸ‘‘

and that's the page, bestie!! 🫢 this lil gem lives over in ./tools/perf/pmu-events and the docs are stamped October 2026 β€” slay, see you in the source tree πŸ’œπŸŽ€πŸŒˆ

πŸ“¦ where this page comes from