projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef55ef3
)
scripts/gdb: fix lx-timerlist for struct timequeue_head change
author
Peng Liu
<liupeng17@lenovo.com>
Tue, 21 Mar 2023 06:18:43 +0000
(14:18 +0800)
committer
Andrew Morton
<akpm@linux-foundation.org>
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 <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>
scripts/gdb/linux/timerlist.py
patch
|
blob
|
history
diff --git
a/scripts/gdb/linux/timerlist.py
b/scripts/gdb/linux/timerlist.py
index 071d0dd5a634977a74b792f313e9c93bdca8f28b..44e39dc3eb643fd80d381e0995a4bbe83be6d065 100644
(file)
--- a/
scripts/gdb/linux/timerlist.py
+++ b/
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)