scripts/gdb: fix lx-timerlist for struct timequeue_head change
commit 511885d706
("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 <liupeng17@lenovo.com>
Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Kieran Bingham <kbingham@kernel.org>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
ef55ef3e64
commit
747cd84f67
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user