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
4343
4444
4545 def print_active_timers(base):
46− curr = base['active']['next']['node']
47− curr = curr.address.cast(rbtree.rb_node_type.get_type().pointer())
46+ curr = base['active']['rb_root']['rb_leftmost']
4847 idx = 0
4948 while curr:
5049 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