[PATCH 3/3] powerpc64/ftrace: workaround clang recording GEP in __patchable_function_entries
Hari Bathini
hbathini at linux.ibm.com
Tue Dec 9 03:08:46 AEDT 2025
On 24/11/25 11:25 am, Naveen N Rao wrote:
> 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?
Pushing for this temporary workaround as the fix ETA for clang is not
available at the moment and the temporary workaround is likely
harmless even on a clang version with the fix included..
- Hari
More information about the Linuxppc-dev
mailing list