]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
perf symbols: Keep DSO->symtab_type after decompress
authorNamhyung Kim <namhyung@kernel.org>
Thu, 8 Jun 2017 07:31:08 +0000 (16:31 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 8 Jun 2017 18:39:26 +0000 (15:39 -0300)
commitc25ec42f846f702f8f532fbc890171e3a1f6ec85
treeaa5ee22b3fc0ca2ea79a793cbe5409abf16ef7d0
parent94df1040b1e6aacd8dec0ba3c61d7e77cd695f26
perf symbols: Keep DSO->symtab_type after decompress

The symsrc__init() overwrites dso->symtab_type as symsrc->type in
dso__load_sym().  But for compressed kernel modules in the build-id
cache, it should have original symtab type to be decompressed as needed.

This fixes perf annotate to show disassembly of the function properly.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Wang Nan <wangnan0@huawei.com>
Cc: kernel-team@lge.com
Link: http://lkml.kernel.org/r/20170608073109.30699-9-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/symbol-elf.c