]> Git Repo - J-linux.git/commitdiff
scripts/gdb: fix lx-timerlist for struct timequeue_head change
authorPeng Liu <[email protected]>
Tue, 21 Mar 2023 06:18:43 +0000 (14:18 +0800)
committerAndrew Morton <[email protected]>
Tue, 18 Apr 2023 23:39:31 +0000 (16:39 -0700)
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/TYCP286MB21463BD277330B26DDC18903C6819@TYCP286MB2146.JPNP286.PROD.OUTLOOK.COM
Signed-off-by: Peng Liu <[email protected]>
Reviewed-by: Jan Kiszka <[email protected]>
Cc: Kieran Bingham <[email protected]>
Cc: Florian Fainelli <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
scripts/gdb/linux/timerlist.py

index 071d0dd5a634977a74b792f313e9c93bdca8f28b..44e39dc3eb643fd80d381e0995a4bbe83be6d065 100644 (file)
@@ -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)
This page took 0.063721 seconds and 4 git commands to generate.