[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1390576218-1463-1-git-send-email-adrian.hunter@intel.com>
Date: Fri, 24 Jan 2014 17:10:10 +0200
From: Adrian Hunter <adrian.hunter@...el.com>
To: Arnaldo Carvalho de Melo <acme@...stprotocols.net>
Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Ingo Molnar <mingo@...hat.com>, linux-kernel@...r.kernel.org,
David Ahern <dsahern@...il.com>,
Frederic Weisbecker <fweisbec@...il.com>,
Jiri Olsa <jolsa@...hat.com>, Mike Galbraith <efault@....de>,
Namhyung Kim <namhyung@...il.com>,
Paul Mackerras <paulus@...ba.org>,
Stephane Eranian <eranian@...gle.com>
Subject: [PATCH 0/8] perf tools: kaslr fixes
Hi
Here are some patches that improve perf tools
handling of relocation.
This has become an issue as mentioned in this
thread:
http://marc.info/?l=linux-kernel&m=139030004314756
It looks like the changes I made to vmlinux and
module mapping to allow object code to be read
broke the symbol annotation for relocated kernels.
The first patch fixes that.
There were some other issues though:
- ref_reloc_sym was not always set up
- mustn't use kcore if the kernel has moved
- kallsyms is not unique for a given
buildid
These things need more testing but I thought it was
worth getting comments now.
Adrian Hunter (8):
perf tools: Fix symbol annotation for relocated kernel
perf tools: Add kallsyms__get_function_start()
perf tools: Add machine__get_kallsyms_filename()
perf tools: Set up ref_reloc_sym in machine__create_kernel_maps()
perf report: Get ref_reloc_sym from kernel map
perf tools: Prevent the use of kcore if the kernel has moved
perf tools: test does not need to set up ref_reloc_sym
perf tools: Adjust kallsyms for relocated kernel
tools/perf/builtin-record.c | 10 ++----
tools/perf/tests/vmlinux-kallsyms.c | 10 ------
tools/perf/util/event.c | 36 ++++++++++----------
tools/perf/util/event.h | 6 ++--
tools/perf/util/machine.c | 40 ++++++++++++++++++-----
tools/perf/util/map.c | 5 +--
tools/perf/util/map.h | 1 +
tools/perf/util/symbol-elf.c | 2 ++
tools/perf/util/symbol.c | 65 +++++++++++++++++++++++++++++++++----
9 files changed, 120 insertions(+), 55 deletions(-)
Regards
Adrian
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists