Re: [PATCH] powerpc/ftrace: Ignore weak functions

2022-11-30 Thread Michael Ellerman
On Tue, 9 Aug 2022 16:24:25 +0530, Naveen N. Rao wrote: > Extend commit b39181f7c6907d ("ftrace: Add FTRACE_MCOUNT_MAX_OFFSET to > avoid adding weak function") to ppc32 and ppc64 -mprofile-kernel by > defining FTRACE_MCOUNT_MAX_OFFSET. > > For ppc64 -mprofile-kernel ABI, we can have two instructio

Re: [PATCH] powerpc/ftrace: Ignore weak functions

2022-08-16 Thread Steven Rostedt
On Tue, 9 Aug 2022 16:24:25 +0530 "Naveen N. Rao" wrote: > Extend commit b39181f7c6907d ("ftrace: Add FTRACE_MCOUNT_MAX_OFFSET to > avoid adding weak function") to ppc32 and ppc64 -mprofile-kernel by > defining FTRACE_MCOUNT_MAX_OFFSET. > > For ppc64 -mprofile-kernel ABI, we can have two instru

[PATCH] powerpc/ftrace: Ignore weak functions

2022-08-09 Thread Naveen N. Rao
Extend commit b39181f7c6907d ("ftrace: Add FTRACE_MCOUNT_MAX_OFFSET to avoid adding weak function") to ppc32 and ppc64 -mprofile-kernel by defining FTRACE_MCOUNT_MAX_OFFSET. For ppc64 -mprofile-kernel ABI, we can have two instructions at function entry for TOC setup followed by 'mflr r0' and 'bl _