summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/test_xdp_bpf2bpf.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2020-02-29 15:11:12 -0800
committerAlexei Starovoitov <ast@kernel.org>2020-03-02 16:25:14 -0800
commitdf8ff35311c8d10d90b4604c02b32c361dc997aa (patch)
treeb8393760f038a2a900c3f565514e9b326589439e /tools/testing/selftests/bpf/progs/test_xdp_bpf2bpf.c
parent396f544ed5e5a9c40de5663b774f643644cba059 (diff)
libbpf: Merge selftests' bpf_trace_helpers.h into libbpf's bpf_tracing.h
Move BPF_PROG, BPF_KPROBE, and BPF_KRETPROBE macro into libbpf's bpf_tracing.h header to make it available for non-selftests users. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200229231112.1240137-5-andriin@fb.com
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_xdp_bpf2bpf.c')
-rw-r--r--tools/testing/selftests/bpf/progs/test_xdp_bpf2bpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/progs/test_xdp_bpf2bpf.c b/tools/testing/selftests/bpf/progs/test_xdp_bpf2bpf.c
index b840fc9e3ed5..42dd2fedd588 100644
--- a/tools/testing/selftests/bpf/progs/test_xdp_bpf2bpf.c
+++ b/tools/testing/selftests/bpf/progs/test_xdp_bpf2bpf.c
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
#include <linux/bpf.h>
+#include <bpf/bpf_tracing.h>
#include <bpf/bpf_helpers.h>
-#include "bpf_trace_helpers.h"
struct net_device {
/* Structure does not need to contain all entries,