]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hrtimer: Fix trace oddity
authorThomas Gleixner <tglx@linutronix.de>
Mon, 19 Jan 2026 10:38:34 +0000 (11:38 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 22 Jan 2026 10:11:20 +0000 (11:11 +0100)
commit5d6446f409da00e5a389125ddb5ce09f5bc404c9
tree9ba450139048a4ff5232b54b934d8b64ff9f2e3e
parent21c0e92d0681fbd10ac024311bd09bca439e0bb1
hrtimer: Fix trace oddity

It turns out that __run_hrtimer() will trace like:

          <idle>-0     [032] d.h2. 20705.474563: hrtimer_cancel:       hrtimer=0xff2db8f77f8226e8
          <idle>-0     [032] d.h1. 20705.474563: hrtimer_expire_entry: hrtimer=0xff2db8f77f8226e8 now=20699452001850 function=tick_nohz_handler/0x0

Which is a bit nonsensical, the timer doesn't get canceled on
expiration. The cause is the use of the incorrect debug helper.

Fixes: c6a2a1770245 ("hrtimer: Add tracepoint for hrtimers")
Reported-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260121143208.219595606@infradead.org
kernel/time/hrtimer.c