diff options
author | Konstantin Khlebnikov <khlebnikov@yandex-team.ru> | 2016-08-05 14:22:36 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-08-09 15:48:09 +0200 |
commit | cb3f3378cd09aa3fe975b4ad5ee0229dc76315bb (patch) | |
tree | c484ff0676fe81b0a85b2645bcfbe93cc716cf86 /tools/perf/builtin-stat.c | |
parent | perf probe: Adjust map->reloc offset when finding kernel symbol from map (diff) | |
download | linux-cb3f3378cd09aa3fe975b4ad5ee0229dc76315bb.tar.xz linux-cb3f3378cd09aa3fe975b4ad5ee0229dc76315bb.zip |
perf probe: Fix module name matching
If module is "module" then dso->short_name is "[module]". Substring
comparing is't enough: "raid10" matches to "[raid1]". This patch also
checks terminating zero in module name.
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Link: http://lkml.kernel.org/r/147039975648.715620.12985971832789032159.stgit@buzz
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-stat.c')
0 files changed, 0 insertions, 0 deletions