for_each_kernel_tracepoint(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… for_each_kernel_tracepoint(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” this one's a lil function that literally walks every single tracepoint in the kernel πŸ¦‹ no cap. It's giving backstage-pass energy: you get to peek at all of them, one at a time πŸ‘‘


🌸 NAME 🌸

for_each_kernel_tracepoint β€” iteration on all kernel tracepoints πŸ’« (yes, all of them, the whole squad)


✨ SYNOPSIS ✨

void for_each_kernel_tracepoint (void (*fct)(struct tracepoint *tp, void
*priv) , void *priv );

like literally that's the whole signature, she's compact and iconic πŸŽ€


🫢 ARGUMENTS 🫢

  • fct β€” callback πŸ’– this is the lil function that gets called for each tracepoint, you bring the vibes, it brings the struct tracepoint *tp and your priv along for the ride
  • priv β€” private data 🧚 your own personal stash of stuff that gets handed straight through to the callback, no questions asked

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./kernel/tracepoint.c β€” that's where the magic lives, go read it iykyk πŸ“–

the whole tracepoint friend group honestly πŸ’œ they all hang out together


ngl bestie, this whole page is short and sweet β€” but every single one of those SEE ALSO entries is a real page, so go slay the cross-references too 🌈

mwah πŸ’‹ this one came straight out of the ./kernel source, dated October 2026, and it's still signed for_each_kernel_tracepoint(9) at the bottom β€” periodt, that's the whole footer, go off πŸ‘‘

πŸ“¦ where this page comes from