Skip to content

perf tools: kaslr fixes

Adrian Hunter lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 16 repliesIn review
  2. v18 patches 1 replySuperseded

Changes in v2 from the cover letter

Fix some typos in commit messages
perf tools: Set up ref_reloc_sym in machine__create_kernel_maps()
Fix "/proc/kallsyms" -> filename
Use an array of symbol names
perf buildid-cache: Check relocation when checking for existing kcore
New patch

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9perf tools: Fix symbol annotation for relocated kerneltools/perf/util/map.c tools/perf/util/map.h tools/perf/util/symbol-elf.c+6 -29 replies
2/9perf tools: Add kallsyms__get_function_start()tools/perf/util/event.c tools/perf/util/event.h+18 -30 replies
3/9perf tools: Add machine__get_kallsyms_filename()tools/perf/util/machine.c+11 -80 replies
4/9perf tools: Set up ref_reloc_sym in machine__create_kernel_maps()tools/perf/util/machine.c tools/perf/util/machine.h+25 -00 replies
5/9perf record: Get ref_reloc_sym from kernel maptools/perf/builtin-record.c tools/perf/util/event.c tools/perf/util/event.h+9 -300 replies
6/9perf tools: Prevent the use of kcore if the kernel has movedtools/perf/util/symbol.c+21 -40 replies
7/9perf tools: Test does not need to set up ref_reloc_symtools/perf/tests/vmlinux-kallsyms.c+0 -100 replies
8/9perf tools: Adjust kallsyms for relocated kerneltools/perf/util/symbol.c+38 -23 replies
9/9perf buildid-cache: Check relocation when checking for existing kcoretools/perf/builtin-buildid-cache.c+29 -44 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH V2 0/9] 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

Changes in V2:
Fix some typos in commit messages
perf tools: Set up ref_reloc_sym in machine__create_kernel_maps()
Fix "/proc/kallsyms" -> filename
Use an array of symbol names
perf buildid-cache: Check relocation when checking for existing kcore
New patch

Adrian Hunter (9):
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 record: 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
perf buildid-cache: Check relocation when checking for existing kcore

 tools/perf/builtin-buildid-cache.c  | 33 ++++++++++++++++---
 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           | 42 +++++++++++++++++++-----
 tools/perf/util/machine.h           |  2 ++
 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 +++++++++++++++++++++++++++++++++----
 11 files changed, 153 insertions(+), 59 deletions(-)

Regards
Adrian