Re: [PATCH v5 28/34] fprobe: Rewrite fprobe on function-graph tracer

2023-12-19 Thread Google
On Tue, 19 Dec 2023 15:39:03 +0100 Jiri Olsa wrote: > On Mon, Dec 18, 2023 at 10:17:10PM +0900, Masami Hiramatsu (Google) wrote: > > SNIP > > > -static void fprobe_exit_handler(struct rethook_node *rh, void *data, > > - unsigned long ret_ip, struct pt_regs *regs) > >

Re: [PATCH v5 28/34] fprobe: Rewrite fprobe on function-graph tracer

2023-12-19 Thread Jiri Olsa
On Mon, Dec 18, 2023 at 10:17:10PM +0900, Masami Hiramatsu (Google) wrote: SNIP > -static void fprobe_exit_handler(struct rethook_node *rh, void *data, > - unsigned long ret_ip, struct pt_regs *regs) > +static int fprobe_entry(unsigned long func, unsigned long ret_ip,

[PATCH v5 28/34] fprobe: Rewrite fprobe on function-graph tracer

2023-12-18 Thread Masami Hiramatsu (Google)
From: Masami Hiramatsu (Google) Rewrite fprobe implementation on function-graph tracer. Major API changes are: - 'nr_maxactive' field is deprecated. - This depends on CONFIG_DYNAMIC_FTRACE_WITH_ARGS or !CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS, and CONFIG_HAVE_FUNCTION_GRAPH_FREGS. So