On Mon, Nov 11, 2024 at 12:50:09AM +0900, Masami Hiramatsu (Google) wrote: > From: Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx> > > Add ftrace_fill_perf_regs() which should be compatible with the > perf_fetch_caller_regs(). In other words, the pt_regs returned from the > ftrace_fill_perf_regs() must satisfy 'user_mode(regs) == false' and can be > used for stack tracing. > > Signed-off-by: Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx> > Acked-by: Will Deacon <will@xxxxxxxxxx> > --- > arch/arm64/include/asm/ftrace.h | 7 +++++++ > arch/powerpc/include/asm/ftrace.h | 7 +++++++ > arch/s390/include/asm/ftrace.h | 6 ++++++ Acked-by: Heiko Carstens <hca@xxxxxxxxxxxxx> # s390