summaryrefslogtreecommitdiffstats
path: root/kernel/torture.c
diff options
context:
space:
mode:
authorSteven Rostedt (Google) <rostedt@goodmis.org>2022-10-12 12:40:56 +0200
committerSteven Rostedt (Google) <rostedt@goodmis.org>2022-10-12 19:50:00 +0200
commitf1d3cbfaafc10464550c6d3a125f4fc802bbaed5 (patch)
tree8a5e129e1baa01c3ab76ddfcaed6049686f77157 /kernel/torture.c
parentring-buffer: Fix kernel-doc (diff)
downloadlinux-f1d3cbfaafc10464550c6d3a125f4fc802bbaed5.tar.xz
linux-f1d3cbfaafc10464550c6d3a125f4fc802bbaed5.zip
tracing: Move duplicate code of trace_kprobe/eprobe.c into header
The functions: fetch_store_strlen_user() fetch_store_strlen() fetch_store_string_user() fetch_store_string() are identical in both trace_kprobe.c and trace_eprobe.c. Move them into a new header file trace_probe_kernel.h to share it. This code will later be used by the synthetic events as well. Marked for stable as a fix for a crash in synthetic events requires it. Link: https://lkml.kernel.org/r/20221012104534.467668078@goodmis.org Cc: stable@vger.kernel.org Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Tom Zanussi <zanussi@kernel.org> Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Reviewed-by: Tom Zanussi <zanussi@kernel.org> Fixes: bd82631d7ccdc ("tracing: Add support for dynamic strings to synthetic events") Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/torture.c')
0 files changed, 0 insertions, 0 deletions