mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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>
This commit is contained in:
parent
3bc0bb36fa
commit
9ea37e24d4
1 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ class BlkgIterator:
|
||||||
name = BlkgIterator.blkcg_name(blkcg)
|
name = BlkgIterator.blkcg_name(blkcg)
|
||||||
path = parent_path + '/' + name if parent_path else name
|
path = parent_path + '/' + name if parent_path else name
|
||||||
blkg = drgn.Object(prog, 'struct blkcg_gq',
|
blkg = drgn.Object(prog, 'struct blkcg_gq',
|
||||||
address=radix_tree_lookup(blkcg.blkg_tree, q_id))
|
address=radix_tree_lookup(blkcg.blkg_tree.address_of_(), q_id))
|
||||||
if not blkg.address_:
|
if not blkg.address_:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -228,7 +228,7 @@ q_id = None
|
||||||
root_iocg = None
|
root_iocg = None
|
||||||
ioc = None
|
ioc = None
|
||||||
|
|
||||||
for i, ptr in radix_tree_for_each(blkcg_root.blkg_tree):
|
for i, ptr in radix_tree_for_each(blkcg_root.blkg_tree.address_of_()):
|
||||||
blkg = drgn.Object(prog, 'struct blkcg_gq', address=ptr)
|
blkg = drgn.Object(prog, 'struct blkcg_gq', address=ptr)
|
||||||
try:
|
try:
|
||||||
if devname == blkg.q.kobj.parent.name.string_().decode('utf-8'):
|
if devname == blkg.q.kobj.parent.name.string_().decode('utf-8'):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue