[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20241023175843.e1f92bb25e9f65a4e3ff2861@kernel.org>
Date: Wed, 23 Oct 2024 17:58:43 +0900
From: Masami Hiramatsu (Google) <mhiramat@...nel.org>
To: Will Deacon <will@...nel.org>
Cc: Alexei Starovoitov <alexei.starovoitov@...il.com>, Steven Rostedt
<rostedt@...dmis.org>, Florent Revest <revest@...omium.org>,
linux-trace-kernel@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
Martin KaFai Lau <martin.lau@...ux.dev>, bpf <bpf@...r.kernel.org>, Alexei
Starovoitov <ast@...nel.org>, Jiri Olsa <jolsa@...nel.org>, Alan Maguire
<alan.maguire@...cle.com>, Mark Rutland <mark.rutland@....com>,
linux-arch@...r.kernel.org, Heiko Carstens <hca@...ux.ibm.com>, Catalin
Marinas <catalin.marinas@....com>, Huacai Chen <chenhuacai@...nel.org>,
WANG Xuerui <kernel@...0n.name>, Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>, Albert Ou <aou@...s.berkeley.edu>,
Vasily Gorbik <gor@...ux.ibm.com>, Alexander Gordeev
<agordeev@...ux.ibm.com>, Christian Borntraeger
<borntraeger@...ux.ibm.com>, Sven Schnelle <svens@...ux.ibm.com>, Thomas
Gleixner <tglx@...utronix.de>, Ingo Molnar <mingo@...hat.com>, Borislav
Petkov <bp@...en8.de>, Dave Hansen <dave.hansen@...ux.intel.com>,
x86@...nel.org, "H. Peter Anvin" <hpa@...or.com>, Mathieu Desnoyers
<mathieu.desnoyers@...icios.com>
Subject: Re: [PATCH v17 02/16] function_graph: Replace fgraph_ret_regs with
ftrace_regs
On Mon, 21 Oct 2024 17:46:58 +0100
Will Deacon <will@...nel.org> wrote:
> On Wed, Oct 16, 2024 at 09:58:09AM +0900, Masami Hiramatsu (Google) wrote:
> > From: Masami Hiramatsu (Google) <mhiramat@...nel.org>
> >
> > Use ftrace_regs instead of fgraph_ret_regs for tracing return value
> > on function_graph tracer because of simplifying the callback interface.
> >
> > The CONFIG_HAVE_FUNCTION_GRAPH_RETVAL is also replaced by
> > CONFIG_HAVE_FUNCTION_GRAPH_FREGS.
> >
> > Signed-off-by: Masami Hiramatsu (Google) <mhiramat@...nel.org>
> > Acked-by: Heiko Carstens <hca@...ux.ibm.com>
> > Cc: Catalin Marinas <catalin.marinas@....com>
> > Cc: Will Deacon <will@...nel.org>
> > Cc: Steven Rostedt <rostedt@...dmis.org>
> > Cc: Mark Rutland <mark.rutland@....com>
> > Cc: Huacai Chen <chenhuacai@...nel.org>
> > Cc: WANG Xuerui <kernel@...0n.name>
> > Cc: Paul Walmsley <paul.walmsley@...ive.com>
> > Cc: Palmer Dabbelt <palmer@...belt.com>
> > Cc: Albert Ou <aou@...s.berkeley.edu>
> > Cc: Vasily Gorbik <gor@...ux.ibm.com>
> > Cc: Alexander Gordeev <agordeev@...ux.ibm.com>
> > Cc: Heiko Carstens <hca@...ux.ibm.com>
> > Cc: Christian Borntraeger <borntraeger@...ux.ibm.com>
> > Cc: Sven Schnelle <svens@...ux.ibm.com>
> > Cc: Thomas Gleixner <tglx@...utronix.de>
> > Cc: Ingo Molnar <mingo@...hat.com>
> > Cc: Borislav Petkov <bp@...en8.de>
> > Cc: Dave Hansen <dave.hansen@...ux.intel.com>
> > Cc: x86@...nel.org
> > Cc: "H. Peter Anvin" <hpa@...or.com>
> > Cc: Mathieu Desnoyers <mathieu.desnoyers@...icios.com>
> >
> > ---
> > Changes in v17:
> > - Fixes s390 return_to_handler according to Heiko's advice.
> > Changes in v16:
> > - According to the recent ftrace_regs.h change, override
> > ftrace_regs_get_frame_pointer() if needed.
> > - s390: keep stack_frame on stack, just replace fgraph_ret_regs
> > with ftrace_regs.
> > Changes in v8:
> > - Newly added.
> > ---
> > arch/arm64/Kconfig | 1 +
> > arch/arm64/include/asm/ftrace.h | 23 ++++++-----------------
> > arch/arm64/kernel/asm-offsets.c | 12 ------------
> > arch/arm64/kernel/entry-ftrace.S | 32 ++++++++++++++++++--------------
>
> For the arm64 parts:
>
> Acked-by: Will Deacon <will@...nel.org>
Thank you!
>
> Will
--
Masami Hiramatsu (Google) <mhiramat@...nel.org>
Powered by blists - more mailing lists