I was intended to add -fpatchable-function-entry based new ftrace implementation in parallel with old -pg based one, which is enabled by supported gcc version at build time, since +. the fix for -fpatchable-function-entry is not merge into upstream; +. the -fpatchable-function-entry does not support static function tracing which is rarely used today, which is only implemented in the old -pg based implementation; Move FTRACE_SYSCALLS into syscall.c, so both new and old implementation can easily be switched freely. When everything is all right, old one can be easily removed, and that is patch 1/2/3 intended for > On Mar 26, 2021, at 3:38 AM, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote: > > On Sat, 13 Mar 2021 14:41:45 +0800 > Huang Pei <huangpei@xxxxxxxxxxx> wrote: > > Why? > > -- Steve > >> Signed-off-by: Huang Pei <huangpei@xxxxxxxxxxx> >> --- >> arch/mips/kernel/Makefile | 1 - >> arch/mips/kernel/ftrace.c | 33 --------------------------------- >> arch/mips/kernel/syscall.c | 32 ++++++++++++++++++++++++++++++++ >> 3 files changed, 32 insertions(+), 34 deletions(-)