tracepoint_probe_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tracepoint_probe_register πŸ’…

okay bestie, welcome to the Kernel API Manual β€” yes, that's the manual name, we're in the kernel section, section 9, and this is THE page for tracepoint_probe_register. buckle up πŸŽ€


✨ NAME ✨

tracepoint_probe_register β€” Connect a probe to a tracepoint 🫢

like, literally hooking your little probe handler onto a tracepoint. match made in heaven, no cap.


🌸 SYNOPSIS 🌸

int tracepoint_probe_register (struct tracepoint *tp , void *probe ,
void *data );

look at her go 😭 iconic signature fr fr.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • tp β€” tracepoint. the main character of this whole situation πŸ‘‘
  • probe β€” probe handler. this is the function doing the actual work πŸ’ͺ
  • data β€” tracepoint data. the little sidekick that gets passed along πŸ“

πŸ’– DESCRIPTION πŸ’–

Returns 0 if ok, error value on error. that's it, that's the vibe ✨


⭐ NOTE ⭐

⚠️ okay listen up, this part is important, do NOT skip it:

if tp is within a module, the caller is responsible for unregistering the probe before the module is gone. yes, you, bestie β€” it's on you πŸ™ˆ

This can be performed either with a tracepoint module going notifier, or from within module exit functions. pick your fighter πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

the whole friend group honestly πŸŒˆπŸ’œ


✨ and that's the page, bestie ✨ this little icon comes from ./kernel, dated October 2026, and it's brought to you by the kernel API manual gang β€” go forth and register those probes responsibly πŸ§šβ€β™€οΈπŸ’…πŸŽ€

πŸ“¦ where this page comes from