Skip to content

Commit 9ea37e2

Browse files
committed
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. Signed-off-by: Tejun Heo <tj@kernel.org> Suggested-by: Omar Sandoval <osandov@fb.com>
1 parent 3bc0bb3 commit 9ea37e2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tools/cgroup/iocost_monitor.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def walk(self, blkcg, q_id, parent_path):
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 @@ def table_row_str(self, path):
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'):

0 commit comments

Comments
 (0)