fprobe: Pass entry_data to handlers
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Wed, 1 Feb 2023 15:56:01 +0000 (00:56 +0900)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 28 Mar 2023 22:52:22 +0000 (18:52 -0400)
commit76d0de5729c0569c4071e7f21fcab394e502f03a
tree0e6480d777c2aa8f9448b471742ca0c4c70b724a
parente11b521a7b69c2621bb2e5920bb96f6d2facdc7e
fprobe: Pass entry_data to handlers

Pass the private entry_data to the entry and exit handlers so that
they can share the context data, something like saved function
arguments etc.
User must specify the private entry_data size by @entry_data_size
field before registering the fprobe.

Link: https://lkml.kernel.org/r/167526696173.433354.17408372048319432574.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