[PATCH 3/3] powerpc64/ftrace: workaround clang recording GEP in __patchable_function_entries
Naveen N Rao
naveen at kernel.org
Mon Nov 24 16:55:32 AEDT 2025
On Sun, Nov 09, 2025 at 02:34:05AM +0530, Hari Bathini wrote:
> Support for -fpatchable-function-entry on ppc64le was added in Clang
> with [1]. However, when no prefix NOPs are specified - as is the case
> with CONFIG_PPC_FTRACE_OUT_OF_LINE - the first NOP is emitted at LEP,
> but Clang records the Global Entry Point (GEP) unlike GCC which does
> record the Local Entry Point (LEP). Issue [2] has been raised to align
> Clang's behavior with GCC. As a temporary workaround to ensure ftrace
Any reason to put in a "temporary" workaround rather than waiting for
this to be fixed?
- Naveen
More information about the Linuxppc-dev
mailing list