diff options
author | Stefano Sanfilippo <ssanfilippo@chromium.org> | 2016-10-13 03:59:39 -0700 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-10-24 11:07:39 -0300 |
commit | eac05af2bf33aa9474482f1f19555adfd2cdf69d (patch) | |
tree | 3fedff670be6b35dd6cd4aef0b97e7598e645b54 /tools/perf/util/jitdump.c | |
parent | 7354ec7a86c0cc03bebb7f86af8f20a88b27c262 (diff) | |
download | linux-eac05af2bf33aa9474482f1f19555adfd2cdf69d.tar.gz linux-eac05af2bf33aa9474482f1f19555adfd2cdf69d.tar.bz2 linux-eac05af2bf33aa9474482f1f19555adfd2cdf69d.zip |
perf jit: Do not assume pgoff is zero
When calculating .eh_frame_hdr base and LUT offsets do not always assume
that pgoff is zero.
The assumption is false for DSOs built from the jitdump by perf inject,
because the ELF header did not exist in memory at sampling time.
Signed-off-by: Stefano Sanfilippo <ssanfilippo@chromium.org>
Signed-off-by: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Stephane Eranian <eranian@google.com>
Cc: Anton Blanchard <anton@ozlabs.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1476356383-30100-6-git-send-email-eranian@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/jitdump.c')
0 files changed, 0 insertions, 0 deletions