Skip to content

powerpc64/ftrace: fixes clang build issues

Hari Bathini linux-trace-kernel linuxppc-dev llvm 2 versions – Applied

Status from this message: Applied to powerpc/fixes.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesApplied
  2. v13 patches 5 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3powerpc64: make clang cross-build friendlyarch/powerpc/Kconfig arch/powerpc/tools/check-fpatchable-function-entry.sh+2 -20 replies
2/3powerpc64/ftrace: fix OOL stub count with clangarch/powerpc/tools/ftrace-gen-ool-stubs.sh+2 -20 replies
3/3powerpc64/ftrace: workaround clang recording GEP in __patchable_function_entriesarch/powerpc/kernel/trace/ftrace.c+22 -40 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchVenkat Rao Bagalkote
SeriesT-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] powerpc64/ftrace: fixes clang build issues

Support for -fpatchable-function-entry on ppc64le was added in Clang with [1]. Faced a couple of issues while building the linux kernel with Clang though. Patches 1 & 2 address those issues. The last patch provides workaround to ensure, an open issue [2] in Clang with -fpatchable-function-entry support, does not impact the linux ftrace subsystem.

[1] https://github.com/llvm/llvm-project/pull/151569
[2] https://github.com/llvm/llvm-project/issues/163706

Hari Bathini (3):
powerpc64: make clang cross-build friendly powerpc64/ftrace: fix OOL stub count with clang powerpc64/ftrace: workaround clang recording GEP in
__patchable_function_entries

 arch/powerpc/Kconfig                          |  4 +--
 arch/powerpc/kernel/trace/ftrace.c            | 26 ++++++++++++++++---
 ....sh => check-fpatchable-function-entry.sh} |  0
 arch/powerpc/tools/ftrace-gen-ool-stubs.sh    |  4 +--
 4 files changed, 26 insertions(+), 8 deletions(-)
 rename arch/powerpc/tools/{gcc-check-fpatchable-function-entry.sh => check-fpatchable-function-entry.sh} (100%)
Signature · 1 line
2.52.0