linux/arch/powerpc/tools
Hari Bathini 875612a774 powerpc64/ftrace: fix OOL stub count with clang
The total number of out-of-line (OOL) stubs required for function
tracing is determined using the following command:

    $(OBJDUMP) -r -j __patchable_function_entries vmlinux.o

While this works correctly with GNU objdump, llvm-objdump does not
list the expected relocation records for this section. Fix this by
using the -d option and counting R_PPC64_ADDR64 relocation entries.
This works as desired with both objdump and llvm-objdump.

Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260127084926.34497-3-hbathini@linux.ibm.com
2026-03-07 16:02:25 +05:30
..
.gitignore powerpc64/ftrace: Move ftrace sequence out of line 2024-10-31 11:00:54 +11:00
Makefile powerpc64/ftrace: Support .text larger than 32MB with out-of-line stubs 2024-10-31 11:00:55 +11:00
check-fpatchable-function-entry.sh powerpc64: make clang cross-build friendly 2026-03-07 16:02:25 +05:30
checkpatch.sh powerpc/tools: Remove 90 line limit in checkpatch script 2020-09-08 22:57:11 +10:00
ftrace-gen-ool-stubs.sh powerpc64/ftrace: fix OOL stub count with clang 2026-03-07 16:02:25 +05:30
ftrace_check.sh powerpc/ftrace: Add a postlink script to validate function tracer 2024-10-31 11:00:54 +11:00
gcc-check-mprofile-kernel.sh powerpc/tools: drop `-o pipefail` in gcc check scripts 2025-12-22 17:56:34 +05:30
head_check.sh arch:powerpc:tools This file was missing shebang line, so added it 2025-11-11 14:36:24 +05:30
relocs_check.sh powerpc: Move script to check relocations at compile time in scripts/ 2023-04-19 07:46:31 -07:00
unrel_branch_check.sh powerpc: unrel_branch_check.sh: enable the use of llvm-objdump v9, 10 or 11 2020-09-02 11:00:22 +10:00