]> git.baikalelectronics.ru Git - kernel.git/commit
perf symbols: Support to read compressed module from build-id cache
authorNamhyung Kim <namhyung@kernel.org>
Thu, 29 Jan 2015 08:06:42 +0000 (17:06 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 29 Jan 2015 19:56:54 +0000 (16:56 -0300)
commit4b05d27513fd1169b6609dbe3602351afc89497a
treeefa0b06cbd345d8bff4d0272e6e6ae7b4030ce6d
parenta164581e79f913ce92a2ee05a4628503e985affe
perf symbols: Support to read compressed module from build-id cache

The commit c8b35031f79b ("perf symbols: Preparation for compressed
kernel module support") added support for compressed kernel modules but
it only supports system path DSOs.  When a dso is read from build-id
cache, its filename doesn't end with ".gz" but has build-id.  In this
case, we should fallback to the original dso->name.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1422518843-25818-2-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/symbol-elf.c