fprobe: Skip exit_handler if entry_handler returns !0
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Wed, 1 Feb 2023 15:56:38 +0000 (00:56 +0900)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 28 Mar 2023 22:52:22 +0000 (18:52 -0400)
commit39d954200bf6ad503c722e44d0be80c7b826fa42
tree01cc0df2f14044b41f9cedfb2c5b3fa6da26ec2c
parent7e7ef1bfe5522faab6f245ced7b6749e9ac410d8
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>
include/linux/fprobe.h
kernel/trace/bpf_trace.c
kernel/trace/fprobe.c
lib/test_fprobe.c
samples/fprobe/fprobe_example.c