scx_bpf_events(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… scx_bpf_events(9) β€” the Kernel API Manual glow-up ✨

okay so bestie, this is the scx_bpf_events page from the Kernel API Manual, section 9, and it is literally about reading event counters. no cap, it's giving kernel-core main character energy πŸ‘‘


🌸 NAME 🌸

scx_bpf_events β€” read the event counters of the calling scheduler 🫢

✨ SYNOPSIS ✨

__bpf_kfunc void scx_bpf_events (struct scx_event_stats *events , size_t events__sz , const struct bpf_prog_aux *aux );

πŸŽ€ ARGUMENTS πŸŽ€

  • events β€” the output buffer, coming straight from a BPF program πŸ’–
  • events__sz β€” the length of events; bestie, it must end in '__sz' for the verifier, that's the vibe check πŸ”₯
  • aux β€” the implicit BPF argument used to access bpf_prog_aux, hidden from BPF progs πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

So this reads the event counters of the scheduler associated with the calling program. That's the whole slay πŸ’…. And if no scheduler can be resolved? events is zeroed, periodt.

🌈 SEE ALSO 🌈

Kernel file ./kernel/sched/ext/ext.c β€” and the whole friend group is here, in order, no gatekeeping:


mwah πŸ’‹ this lil rewrite came from source/version ./kernel/sched/ext, dated October 2026, and it's still scx_bpf_events(9) at heart. bye bestie πŸŽ€βœ¨

πŸ“¦ where this page comes from