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
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| Makefile | ||
| check-fpatchable-function-entry.sh | ||
| checkpatch.sh | ||
| ftrace-gen-ool-stubs.sh | ||
| ftrace_check.sh | ||
| gcc-check-mprofile-kernel.sh | ||
| head_check.sh | ||
| relocs_check.sh | ||
| unrel_branch_check.sh | ||