Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scripts/gdb: timerlist: Adapt to move of tk_core

tk_core is a macro today which cannot be resolved by gdb.

Use the correct symbol expression to reference tk_core.

Fixes: 22c62b9a84b8 ("timekeeping: Introduce auxiliary timekeepers")
Signed-off-by: Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260311-hrtimer-cleanups-v1-1-095357392669@linutronix.de

authored by

Thomas Weißschuh (Schneider Electric) and committed by
Thomas Gleixner
5aa93838 1e4a70e0

+1 -1
+1 -1
scripts/gdb/linux/timerlist.py
··· 20 20 We can't read the hardware timer itself to add any nanoseconds 21 21 that need to be added since we last stored the time in the 22 22 timekeeper. But this is probably good enough for debug purposes.""" 23 - tk_core = gdb.parse_and_eval("&tk_core") 23 + tk_core = gdb.parse_and_eval("&timekeeper_data[TIMEKEEPER_CORE]") 24 24 25 25 return tk_core['timekeeper']['tkr_mono']['base'] 26 26