collect_registered_events(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, welcome to collect_registered_events(9) from the Kernel API Manual πŸ’–. The whole gig is literally in the name: call the existing callback function for the event. That's the main character energy right there. No cap. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the signature, exactly as it appears, because we do not play games with code fr fr:

int collect_registered_events (struct tep_event *event , struct
       tep_record *record , int cpu , void *context );

πŸŽ€ ARGUMENTS πŸŽ€

the manpage is so real for this one: every single argument is listed as -- undescribed -- 😭. That's what it says, bestie, so here's the lineup:

  • event β€” -- undescribed --
  • record β€” -- undescribed --
  • cpu β€” -- undescribed --
  • context β€” -- undescribed --

🌸 DESCRIPTION 🌸

so here's the tea: if an event has a registered callback function, call it. Otherwise, ignore the event. Like, literally ignore it β€” not every event is invited to the callback party πŸ™ˆ.

Returns 0 if the event was collected, and 1 if the tool should stop collecting trace. That return value is giving "keep going or wrap it up" energy, iykyk πŸ‘‘.


πŸ’œ SEE ALSO πŸ’œ

go peek at these besties too:


cute little sign-off: this page comes from source/version ./tools/verification/rv/src, dated October 2026, and it's collect_registered_events(9) saying bye bestie πŸ«ΆπŸ’…βœ¨

πŸ“¦ where this page comes from