Re: [PATCH 3/3] powerpc64/ftrace: workaround clang recording GEP in __patchable_function_entries
From: Hari Bathini <hbathini@linux.ibm.com>
Date: 2025-12-08 16:09:15
Also in:
linuxppc-dev, llvm
From: Hari Bathini <hbathini@linux.ibm.com>
Date: 2025-12-08 16:09:15
Also in:
linuxppc-dev, llvm
On 24/11/25 11:25 am, Naveen N Rao wrote:
On Sun, Nov 09, 2025 at 02:34:05AM +0530, Hari Bathini wrote:quoted
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 ftraceAny 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