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.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -43,8 +43,7 @@ def print_timer(rb_node, idx): · 42 unmodified lines | ||
| 43 | 43 | |
| 44 | 44 | |
| 45 | 45 | 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'] | |
| 48 | 47 | idx = 0 |
| 49 | 48 | while curr: |
| 50 | 49 | yield print_timer(curr, idx) |