History

iocost: Fix iocost_monitor.py due to helper type mismatch

iocost_monitor.py broke with recent versions of drgn due to helper being stricter about types. Fix it so that it uses the correct type.

Tejun Heo committed 6 years ago

Commit 9ea37e21 parent 3bc0bb31 file · +2 −2Browse files

Unified · Split

tools/cgroup/iocost_monitor.py+2−2
@@ -72,7 +72,7 @@ class BlkgIterator: · 71 unmodified lines
7272 name = BlkgIterator.blkcg_name(blkcg)
7373 path = parent_path + '/' + name if parent_path else name
7474 blkg = drgn.Object(prog, 'struct blkcg_gq',
75− address=radix_tree_lookup(blkcg.blkg_tree, q_id))
75+ address=radix_tree_lookup(blkcg.blkg_tree.address_of_(), q_id))
7676 if not blkg.address_:
7777 return
7878
@@ -228,7 +228,7 @@ q_id = None · 149 unmodified lines
228228 root_iocg = None
229229 ioc = None
230230
231−for i, ptr in radix_tree_for_each(blkcg_root.blkg_tree):
231+for i, ptr in radix_tree_for_each(blkcg_root.blkg_tree.address_of_()):
232232 blkg = drgn.Object(prog, 'struct blkcg_gq', address=ptr)
233233 try:
234234 if devname == blkg.q.kobj.parent.name.string_().decode('utf-8'):

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