diff options
author | Andrii Nakryiko <andriin@fb.com> | 2019-10-08 20:59:39 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-10-09 00:16:03 +0300 |
commit | 3ac4dbe3dd8943450e0366f8174fbfc286ea8f19 (patch) | |
tree | 3a7567bb8f3831f093d504f54f0d75d6cb1dc4fb /samples/bpf/test_probe_write_user_kern.c | |
parent | 694731e8ea7f6bbcf0c57763ed4f24faa14bf056 (diff) | |
download | linux-3ac4dbe3dd8943450e0366f8174fbfc286ea8f19.tar.xz |
selftests/bpf: Split off tracing-only helpers into bpf_tracing.h
Split-off PT_REGS-related helpers into bpf_tracing.h header. Adjust
selftests and samples to include it where necessary.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20191008175942.1769476-5-andriin@fb.com
Diffstat (limited to 'samples/bpf/test_probe_write_user_kern.c')
-rw-r--r-- | samples/bpf/test_probe_write_user_kern.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/bpf/test_probe_write_user_kern.c b/samples/bpf/test_probe_write_user_kern.c index 3a677c807044..a543358218e6 100644 --- a/samples/bpf/test_probe_write_user_kern.c +++ b/samples/bpf/test_probe_write_user_kern.c @@ -9,6 +9,7 @@ #include <uapi/linux/bpf.h> #include <linux/version.h> #include "bpf_helpers.h" +#include "bpf_tracing.h" struct bpf_map_def SEC("maps") dnat_map = { .type = BPF_MAP_TYPE_HASH, |