From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D07851953A; Thu, 8 Jun 2023 22:51:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98BA2C433D2; Thu, 8 Jun 2023 22:51:45 +0000 (UTC) Date: Thu, 8 Jun 2023 18:51:42 -0400 From: Steven Rostedt To: Masami Hiramatsu Cc: Jiri Olsa , Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann , Andrii Nakryiko , netdev@vger.kernel.org, bpf@vger.kernel.org, lkml , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , "Naveen N . Rao" , Anil S Keshavamurthy , "David S . Miller" Subject: Re: [PATCH v12 bpf-next 02/12] fprobe: Add ftrace based probe APIs Message-ID: <20230608185142.7372e7b6@gandalf.local.home> In-Reply-To: <164735283857.1084943.1154436951479395551.stgit@devnote2> References: <164735281449.1084943.12438881786173547153.stgit@devnote2> <164735283857.1084943.1154436951479395551.stgit@devnote2> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 15 Mar 2022 23:00:38 +0900 Masami Hiramatsu wrote: > +static void fprobe_init(struct fprobe *fp) > +{ > + fp->nmissed = 0; > + fp->ops.func = fprobe_handler; > + fp->ops.flags |= FTRACE_OPS_FL_SAVE_REGS; > +} > + Masami, I thought one of the advantages of fprobes over kprobes was that it did not need to use SAVE_REGS, as that causes more overhead than SAVE_ARGS? If fprobes uses save regs, what is the advantage of it over kprobes? -- Steve