]> git.baikalelectronics.ru Git - kernel.git/commit
perf callchain: Cache eh/debug frame offset for dwarf unwind
authorNamhyung Kim <namhyung@kernel.org>
Thu, 29 Jan 2015 08:07:21 +0000 (17:07 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 29 Jan 2015 19:20:42 +0000 (16:20 -0300)
commit30bb86a94dc20f8ed9eee29dc030fda20599763c
tree183674eba3f82637bc6270ac15960cf6e31fa9c2
parent65de6a9fae55df764715ae7fc4454340496f7a4d
perf callchain: Cache eh/debug frame offset for dwarf unwind

When libunwind tries to resolve callchains it needs to know the offset
of .eh_frame_hdr or .debug_frame to access the dso.

Since it will always return the same result for a given DSO, just cache
the result as an optimization.

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-41-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/dso.h
tools/perf/util/unwind-libunwind.c