Skip to content

ftrace/recordmcount: Handle object files without section symbols

Naveen N. Rao linuxppc-dev lkml llvm 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 5 repliesIn review
  2. v12 patches 15 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ftrace: Drop duplicate mcount locationskernel/trace/ftrace.c+12 -10 replies
2/2ftrace: recordmcount: Handle sections with no non-weak symbolsMakefile arch/powerpc/Kconfig arch/powerpc/include/asm/ftrace.h +5 more+113 -205 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/2] ftrace/recordmcount: Handle object files without section symbols

This is v2 of the series posted at:
http://lkml.kernel.org/r/[email protected]

For v2, the first patch is slightly modified to skip the loop, rather than depending on addr == 0 to do so. The second patch is updated to make this behavior be opt-in by architectures so that they can validate the read mcount locations.

- Naveen

Naveen N. Rao (2):
ftrace: Drop duplicate mcount locations
ftrace: recordmcount: Handle sections with no non-weak symbols

 Makefile                           |  4 ++
 arch/powerpc/Kconfig               |  1 +
 arch/powerpc/include/asm/ftrace.h  |  8 +--
 arch/powerpc/kernel/trace/ftrace.c | 11 ++++
 kernel/trace/Kconfig               |  6 ++
 kernel/trace/ftrace.c              | 13 ++++-
 scripts/Makefile.build             |  3 +
 scripts/recordmcount.c             |  6 +-
 scripts/recordmcount.h             | 94 ++++++++++++++++++++++++++----
 9 files changed, 125 insertions(+), 21 deletions(-)

base-commit: 83d8a0d166119de813cad27ae7d61f54f9aea707

Signature · 1 line
2.35.1