]> git.baikalelectronics.ru Git - kernel.git/commit
perf symbols: Check symbol_conf.allow_aliases for kallsyms loading too
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 1 Sep 2016 13:56:06 +0000 (10:56 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 1 Sep 2016 15:42:24 +0000 (12:42 -0300)
commit0e26665dea6cf35ebbd12cdcdfdb233401410d2c
treeaa65af3562fd45cf7f42ef4d4faab7759409ff3f
parent18e06da768d9bf6b3f42f08bb3b9359f3df1dfe8
perf symbols: Check symbol_conf.allow_aliases for kallsyms loading too

We can allow aliases to be kept, but we were checking this just when
loading vmlinux files, be consistent, do it for any symbol table loading
code that calls symbol__fixup_duplicate() by making this function check
.allow_aliases instead.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Fixes: d3ca4bb9e4d3 ("perf symbols: Allow symbol alias when loading map for symbol name")
Link: http://lkml.kernel.org/n/tip-z0avp0s6cfjckc4xj3pdfjdz@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/symbol-elf.c
tools/perf/util/symbol.c