From 189f87f13d6112e1475a1c367a4e2f481a316c50 Mon Sep 17 00:00:00 2001 From: ygrek Date: Mon, 27 Jun 2016 11:07:47 -0700 Subject: [PATCH] ext4slower: fix getting kallsyms address $ grep ext4_file_operations /proc/kallsyms ffffffffc0331340 r ext4_file_operations [ext4] --- tools/ext4slower.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/ext4slower.py b/tools/ext4slower.py index b0b72a5..848efbc 100755 --- a/tools/ext4slower.py +++ b/tools/ext4slower.py @@ -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 -- 2.7.4