Skip to content

Commit

Permalink
tools: fix getting {ext4,btrfs}_file_operations address (ref iovisor#583
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ygrek committed Jun 27, 2016
1 parent 5c998ac commit a5e2ce5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/btrfsdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
for line in syms:
a = line.rstrip().split()
(addr, name) = (a[0], a[2])
name = name.split("\t")[0]
if name == "btrfs_file_operations":
ops = "0x" + addr
break
Expand Down
1 change: 1 addition & 0 deletions tools/btrfsslower.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@
for line in syms:
a = line.rstrip().split()
(addr, name) = (a[0], a[2])
name = name.split("\t")[0]
if name == "btrfs_file_operations":
ops = "0x" + addr
break
Expand Down
1 change: 1 addition & 0 deletions tools/ext4dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
ops = ''
for line in syms:
(addr, size, name) = line.rstrip().split(" ", 2)
name = name.split("\t")[0]
if name == "ext4_file_operations":
ops = "0x" + addr
break
Expand Down

0 comments on commit a5e2ce5

Please sign in to comment.