History

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

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.

Peng Liu committed 3 years ago

Commit 747cd841 parent ef55ef31 file · +1 −2Browse files

Unified · Split

scripts/gdb/linux/timerlist.py+1−2
@@ -43,8 +43,7 @@ def print_timer(rb_node, idx): · 42 unmodified lines
43 43
44 44
45def print_active_timers(base):45def print_active_timers(base):
46 curr = base['active']['next']['node']46 curr = base['active']['rb_root']['rb_leftmost']
47 curr = curr.address.cast(rbtree.rb_node_type.get_type().pointer())
48 idx = 047 idx = 0
49 while curr:48 while curr:
50 yield print_timer(curr, idx)49 yield print_timer(curr, idx)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t