summaryrefslogtreecommitdiff
path: root/include/linux/fprobe.h
diff options
context:
space:
mode:
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>2023-02-01 18:56:38 +0300
committerSteven Rostedt (Google) <rostedt@goodmis.org>2023-03-29 01:52:22 +0300
commit39d954200bf6ad503c722e44d0be80c7b826fa42 (patch)
tree01cc0df2f14044b41f9cedfb2c5b3fa6da26ec2c /include/linux/fprobe.h
parent7e7ef1bfe5522faab6f245ced7b6749e9ac410d8 (diff)
downloadlinux-39d954200bf6ad503c722e44d0be80c7b826fa42.tar.xz
fprobe: Skip exit_handler if entry_handler returns !0
Skip hooking function return and calling exit_handler if the entry_handler() returns !0. Link: https://lkml.kernel.org/r/167526699798.433354.10998365726830117303.stgit@mhiramat.roam.corp.google.com Cc: Florent Revest <revest@chromium.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Will Deacon <will@kernel.org> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/fprobe.h')
-rw-r--r--include/linux/fprobe.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/fprobe.h b/include/linux/fprobe.h
index 678f741a7b33..47fefc7f363b 100644
--- a/include/linux/fprobe.h
+++ b/include/linux/fprobe.h
@@ -34,8 +34,8 @@ struct fprobe {
size_t entry_data_size;
int nr_maxactive;
- void (*entry_handler)(struct fprobe *fp, unsigned long entry_ip,
- struct pt_regs *regs, void *entry_data);
+ int (*entry_handler)(struct fprobe *fp, unsigned long entry_ip,
+ struct pt_regs *regs, void *entry_data);
void (*exit_handler)(struct fprobe *fp, unsigned long entry_ip,
struct pt_regs *regs, void *entry_data);
};