Skip to content

perf_event: fix getting symbol error if kernel is relocatable

Xiao Guangrong lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86: record relocation offsetarch/x86/boot/compressed/head_32.S arch/x86/boot/compressed/head_64.S arch/x86/include/asm/bootparam.h +3 more+13 -15 replies
2/3perf_event: support getting relocation offsetarch/x86/kernel/cpu/perf_event.c include/linux/perf_event.h kernel/perf_event.c+28 -20 replies
3/3perf tools: adjust symbol addresstools/perf/builtin-record.c tools/perf/util/session.c tools/perf/util/symbol.c +1 more+24 -06 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] perf_event: fix getting symbol error if kernel is relocatable

Hi,

If the kernel is relocatable, perf tools can't get symbol name correctly, See: http://lkml.org/lkml/2009/12/20/218

The purpose of this patchset is to fix this bug, and it base on my previously patchset: http://lkml.org/lkml/2009/12/29/4
since it used 'inject' event

 arch/x86/boot/compressed/head_32.S |    2 ++
 arch/x86/boot/compressed/head_64.S |    3 +++
 arch/x86/include/asm/bootparam.h   |    3 ++-
 arch/x86/kernel/asm-offsets_32.c   |    1 +
 arch/x86/kernel/asm-offsets_64.c   |    1 +
 arch/x86/kernel/cpu/perf_event.c   |   10 ++++++++++
 include/linux/perf_event.h         |    1 +
 kernel/perf_event.c                |   23 +++++++++++++++++++++--
 tools/perf/builtin-record.c        |    3 +++
 tools/perf/util/session.c          |    6 ++++++
 tools/perf/util/symbol.c           |   13 +++++++++++++
 tools/perf/util/symbol.h           |    3 ++-
 12 files changed, 65 insertions(+), 4 deletions(-)