Commit 747cd84f authored by Peng Liu's avatar Peng Liu Committed by Andrew Morton

scripts/gdb: fix lx-timerlist for struct timequeue_head change

commit 511885d7 ("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.COMSigned-off-by: default avatarPeng Liu <liupeng17@lenovo.com>
Reviewed-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
Cc: Kieran Bingham <kbingham@kernel.org>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent ef55ef3e
...@@ -43,8 +43,7 @@ def print_timer(rb_node, idx): ...@@ -43,8 +43,7 @@ def print_timer(rb_node, idx):
def print_active_timers(base): def print_active_timers(base):
curr = base['active']['next']['node'] curr = base['active']['rb_root']['rb_leftmost']
curr = curr.address.cast(rbtree.rb_node_type.get_type().pointer())
idx = 0 idx = 0
while curr: while curr:
yield print_timer(curr, idx) yield print_timer(curr, idx)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment