summaryrefslogtreecommitdiffstats
path: root/samples/bpf/bpf_load.h
diff options
context:
space:
mode:
authorDaniel T. Lee <danieltimlee@gmail.com>2020-03-21 11:04:23 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2020-03-23 22:27:51 +0100
commit24a6034acc922f1f6292636be4ec4dc3d9b4d2d7 (patch)
tree727c570476d15c624e63c61ffac6deb56f71bf05 /samples/bpf/bpf_load.h
parentbpf: Add tests for bpf_sk_storage to bpf_tcp_ca (diff)
downloadlinux-24a6034acc922f1f6292636be4ec4dc3d9b4d2d7.tar.xz
linux-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/bpf_load.h')
-rw-r--r--samples/bpf/bpf_load.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/samples/bpf/bpf_load.h b/samples/bpf/bpf_load.h
index 814894a12974..4fcd258c616f 100644
--- a/samples/bpf/bpf_load.h
+++ b/samples/bpf/bpf_load.h
@@ -53,6 +53,5 @@ extern int map_data_count;
int load_bpf_file(char *path);
int load_bpf_file_fixup_map(const char *path, fixup_map_cb fixup_map);
-void read_trace_pipe(void);
int bpf_set_link_xdp_fd(int ifindex, int fd, __u32 flags);
#endif