The patch titled Subject: scripts/gdb: fix lx-timerlist for struct timequeue_head change has been added to the -mm mm-nonmm-unstable branch. Its filename is scripts-gdb-fix-lx-timerlist-for-struct-timequeue_head-change.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/scripts-gdb-fix-lx-timerlist-for-struct-timequeue_head-change.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Peng Liu <liupeng17@xxxxxxxxxx> Subject: scripts/gdb: fix lx-timerlist for struct timequeue_head change Date: Tue, 21 Mar 2023 14:18:43 +0800 commit 511885d7061e ("lib/timerqueue: Rely on rbtree semantics for next timer") changed struct timerqueue_head, and so print_active_timers() should be changed accordingly with its way to interpret the structure. Link: https://lkml.kernel.org/r/Message-ID: Signed-off-by: Peng Liu <liupeng17@xxxxxxxxxx> Reviewed-by: Jan Kiszka <jan.kiszka@xxxxxxxxxxx> Cc: Kieran Bingham <kbingham@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- scripts/gdb/linux/timerlist.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/scripts/gdb/linux/timerlist.py~scripts-gdb-fix-lx-timerlist-for-struct-timequeue_head-change +++ a/scripts/gdb/linux/timerlist.py @@ -43,8 +43,7 @@ def print_timer(rb_node, idx): def print_active_timers(base): - curr = base['active']['next']['node'] - curr = curr.address.cast(rbtree.rb_node_type.get_type().pointer()) + curr = base['active']['rb_root']['rb_leftmost'] idx = 0 while curr: yield print_timer(curr, idx) _ Patches currently in -mm which might be from liupeng17@xxxxxxxxxx are scripts-gdb-fix-lx-timerlist-for-struct-timequeue_head-change.patch scripts-gdb-fix-lx-timerlist-for-python3.patch scripts-gdb-fix-lx-timerlist-for-hrtimer_max_clock_bases-printing.patch