]> asedeno.scripts.mit.edu Git - linux.git/commit
timer: Move trace point to get proper index
authorAnna-Maria Gleixner <anna-maria@linutronix.de>
Thu, 21 Mar 2019 12:09:19 +0000 (13:09 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 24 Mar 2019 19:29:32 +0000 (20:29 +0100)
commitdc1e7dc5ac6254ba0502323381a7ec847e408f1d
tree6b775233eac55849eba1d9815bc35a7a4003c8ff
parentd6b87eaf10bd061914f6d277d7428b3285d8850e
timer: Move trace point to get proper index

When placing the timer_start trace point before the timer wheel bucket
index is calculated, the index information in the trace point is useless.

It is not possible to simply move the debug_activate() call after the index
calculation, because debug_object_activate() needs to be called before
touching the object.

Therefore split debug_activate() and move the trace point into
enqueue_timer() after the new index has been calculated. The
debug_object_activate() call remains at the original place.

Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: fweisbec@gmail.com
Cc: peterz@infradead.org
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: https://lkml.kernel.org/r/20190321120921.16463-3-anna-maria@linutronix.de
kernel/time/timer.c