aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorSteven Rostedt (Google) <[email protected]>2022-10-12 06:40:56 -0400
committerSteven Rostedt (Google) <[email protected]>2022-10-12 13:50:00 -0400
commitf1d3cbfaafc10464550c6d3a125f4fc802bbaed5 (patch)
tree8a5e129e1baa01c3ab76ddfcaed6049686f77157 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parentb7085b6ffe71ac2668f27a2ced6a1e516f66f8c1 (diff)
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/[email protected] Cc: [email protected] Cc: Andrew Morton <[email protected]> Cc: Tom Zanussi <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Reviewed-by: Tom Zanussi <[email protected]> Fixes: bd82631d7ccdc ("tracing: Add support for dynamic strings to synthetic events") Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions