trace_signal_deliver(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

trace_signal_deliver β€” the hook that gets called when a signal is delivered ✨

okay so this is trace_signal_deliver(9) from the Kernel API Manual, and we’re gonna get you comfy with it, bestie 🫢


🌸 SYNOPSIS 🌸

here’s the function signature, no cap:

void trace_signal_deliver (int sig , struct kernel_siginfo *info ,
       struct k_sigaction *ka );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • sig β€” the signal number, literally the signal’s little ID πŸŽ€
  • info β€” a pointer to struct siginfo πŸ‘€
  • ka β€” a pointer to struct k_sigaction πŸ’…

πŸ’… DESCRIPTION πŸ’…

so here’s the tea: a sig signal is delivered to the current process with the info siginfo, and it’s gonna be handled by ka. and ka->sa.sa_handler can be SIG_IGN or SIG_DFL β€” iconic, but important 😌

now for the lore: some signals reported by the signal_generate tracepoint can be lost, ignored, or modified (by a debugger) before they ever hit this tracepoint 😭. so this tracepoint can show you which signals are actually delivered, but matching generated signals and delivered signals may not be correct β€” fr fr, don’t treat that match-up as gospel πŸ’€


πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./include/trace/events/signal.h β€” go peek, bestie πŸ“–
  • trace_signal_generate(9) β€” the related tracepoint vibe check πŸ‘‘

okay bye bestie β€” source/version is ./include/trace/events, date is October 2026, and this whole page is literally trace_signal_deliver(9) πŸ«ΆπŸ’…

πŸ“¦ where this page comes from