Home
last modified time | relevance | path

Searched hist:"782 f46cbce5328da9380f166bd31cd17a04a7b10" (Results 1 – 1 of 1) sorted by relevance

/linux/arch/powerpc/
H A DKconfigdiff 782f46cbce5328da9380f166bd31cd17a04a7b10 Wed Oct 30 08:08:43 CET 2024 Naveen N Rao <naveen@kernel.org> powerpc/ftrace: Add a postlink script to validate function tracer

Function tracer on powerpc can only work with vmlinux having a .text
size of up to ~64MB due to powerpc branch instruction having a limited
relative branch range of 32MB. Today, this is only detected on kernel
boot when ftrace is init'ed. Add a post-link script to check the size of
.text so that we can detect this at build time, and break the build if
necessary.

We add a dependency on !COMPILE_TEST for CONFIG_HAVE_FUNCTION_TRACER so
that allyesconfig and other test builds can continue to work without
enabling ftrace.

Signed-off-by: Naveen N Rao <naveen@kernel.org>
Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://patch.msgid.link/20241030070850.1361304-11-hbathini@linux.ibm.com