ext4slower: fix getting kallsyms address
authorygrek <ygrek@autistici.org>
Mon, 27 Jun 2016 18:07:47 +0000 (11:07 -0700)
committerygrek <ygrek@autistici.org>
Mon, 27 Jun 2016 18:07:47 +0000 (11:07 -0700)
$ grep ext4_file_operations /proc/kallsyms
ffffffffc0331340 r ext4_file_operations [ext4]

tools/ext4slower.py

index b0b72a5..848efbc 100755 (executable)
@@ -245,6 +245,7 @@ with open(kallsyms) as syms:
     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