Re: [PATCH v12 bpf-next 02/12] fprobe: Add ftrace based probe APIs

From
Steven Rostedt <rostedt@goodmis.org>
Date
2023-06-08 22:51:52
Also in
bpf, lkml
Reply to
Masami Hiramatsu, 2022-03-15
On Tue, 15 Mar 2022 23:00:38 +0900
Masami Hiramatsu [off-list ref] wrote:
quoted hunk ↗ jump to hunk
+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
Thread (16 messages) 16 messages, 3 authors, last reply 2023-06-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help