Skip to content

Commit 2eea1b1

Browse files
t-8chgregkh
authored andcommitted
scripts/gdb: timerlist: Adapt to move of tk_core
[ Upstream commit 5aa9383 ] tk_core is a macro today which cannot be resolved by gdb. Use the correct symbol expression to reference tk_core. Fixes: 22c62b9 ("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 Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 1d567c4 commit 2eea1b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/gdb/linux/timerlist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def ktime_get():
2020
We can't read the hardware timer itself to add any nanoseconds
2121
that need to be added since we last stored the time in the
2222
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]")
2424

2525
return tk_core['timekeeper']['tkr_mono']['base']
2626

0 commit comments

Comments
 (0)