trace_hrtimer_expire_exit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… trace_hrtimer_expire_exit πŸ’…

okay bestie, welcome to the Kernel API Manual β€” yes that's the manual name, we're fancy now ✨ this little page is all about trace_hrtimer_expire_exit(9) and honestly? she's a supporting character who makes the whole plot work. let's get into it πŸŽ€


🌸 NAME 🌸

trace_hrtimer_expire_exit β€” the function that gets called, like, immediately after the hrtimer callback returns. no waiting, no "give me a sec", literally the instant it comes back πŸ’…


✨ SYNOPSIS ✨

void trace_hrtimer_expire_exit (struct hrtimer *hrtimer );

that's it. that's the whole signature. she's a void, she takes one pointer, she minds her business 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • hrtimer β€” a pointer to struct hrtimer. just the pointer, that's all she needs, don't overthink it πŸ’–

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the tea β˜• β€” this function is the exit half of a little duo. when you use it in combination with the hrtimer_expire_entry tracepoint, you can figure out the runtime of the callback function. entry goes in, exit comes out, and you do the math in between. it's giving stopwatch energy ⏱️✨

no cap, that's the whole flex. entry point + exit point = you know how long the callback was cooking πŸ”₯


🌈 SEE ALSO 🌈

living in the kernel file ./include/trace/events/timer.h, and surrounded by her whole friend group πŸ‘‘:

(yes, trace_hrtimer_expire_exit(9) is in her own SEE ALSO list. self-love, we respect it πŸ’€πŸ’–)


and that's the page!! shoutout to ./include/trace/events for housing all this, dated October 2026, filed under trace_hrtimer_expire_exit(9) β€” mwah, iconic, periodt πŸ§šπŸ’œ

πŸ“¦ where this page comes from