diff options
author | Daniel T. Lee <danieltimlee@gmail.com> | 2020-03-21 19:04:23 +0900 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-03-23 22:27:51 +0100 |
commit | 24a6034acc922f1f6292636be4ec4dc3d9b4d2d7 (patch) | |
tree | 727c570476d15c624e63c61ffac6deb56f71bf05 /samples/bpf/tracex5_user.c | |
parent | c9b24312040edaa89acb6fb91a9a53fb4775309e (diff) | |
download | linux-stable-24a6034acc922f1f6292636be4ec4dc3d9b4d2d7.tar.gz linux-stable-24a6034acc922f1f6292636be4ec4dc3d9b4d2d7.tar.bz2 linux-stable-24a6034acc922f1f6292636be4ec4dc3d9b4d2d7.zip |
samples, bpf: Move read_trace_pipe to trace_helpers
To reduce the reliance of trace samples (trace*_user) on bpf_load,
move read_trace_pipe to trace_helpers. By moving this bpf_loader helper
elsewhere, trace functions can be easily migrated to libbbpf.
Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200321100424.1593964-2-danieltimlee@gmail.com
Diffstat (limited to 'samples/bpf/tracex5_user.c')
-rw-r--r-- | samples/bpf/tracex5_user.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/bpf/tracex5_user.c b/samples/bpf/tracex5_user.c index c4ab91c89494..c2317b39e0d2 100644 --- a/samples/bpf/tracex5_user.c +++ b/samples/bpf/tracex5_user.c @@ -8,6 +8,7 @@ #include <bpf/bpf.h> #include "bpf_load.h" #include <sys/resource.h> +#include "trace_helpers.h" /* install fake seccomp program to enable seccomp code path inside the kernel, * so that our kprobe attached to seccomp_phase1() can be triggered |