diff options
author | Yonghong Song <yhs@fb.com> | 2018-04-29 08:28:13 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-04-29 18:45:54 +0300 |
commit | 28dbf861deacb0321604bf1c5e1ccc34dd215669 (patch) | |
tree | ae98045b9d24ea60e1034b08200d74e762dde8bb /samples/bpf/bpf_load.h | |
parent | de2ff05f48afcde816ff4edb217417f62f624ab5 (diff) | |
download | linux-28dbf861deacb0321604bf1c5e1ccc34dd215669.tar.xz |
samples/bpf: move common-purpose trace functions to selftests
There is no functionality change in this patch. The common-purpose
trace functions, including perf_event polling and ksym lookup,
are moved from trace_output_user.c and bpf_load.c to
selftests/bpf/trace_helpers.c so that these function can
be reused later in selftests.
Acked-by: Alexei Starovoitov <ast@fb.com>
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples/bpf/bpf_load.h')
-rw-r--r-- | samples/bpf/bpf_load.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/samples/bpf/bpf_load.h b/samples/bpf/bpf_load.h index 453c200b389b..2c3d0b448632 100644 --- a/samples/bpf/bpf_load.h +++ b/samples/bpf/bpf_load.h @@ -54,12 +54,5 @@ 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); -struct ksym { - long addr; - char *name; -}; - -int load_kallsyms(void); -struct ksym *ksym_search(long key); int bpf_set_link_xdp_fd(int ifindex, int fd, __u32 flags); #endif |