Skip to content

Commit

Permalink
Merge pull request iovisor#584 from ygrek/master
Browse files Browse the repository at this point in the history
tools: fix getting {ext4,btrfs}_file_operations address (ref iovisor#583)
  • Loading branch information
brendangregg committed Jun 27, 2016
2 parents 5c998ac + a5e2ce5 commit 3af580e
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 3af580e

Please sign in to comment.