aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/bpf_iter_unix.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2024-10-29 20:39:19 +0000
committerAlexei Starovoitov <[email protected]>2024-10-30 00:43:29 +0000
commite626a13f6fbb4697f8734333432dca577628d09a (patch)
tree3a4ef0042c7fe2e4461363096e683dbf0aef690b /tools/testing/selftests/bpf/progs/bpf_iter_unix.c
parentlibbpf: start v1.6 development cycle (diff)
downloadkernel-e626a13f6fbb4697f8734333432dca577628d09a.tar.gz
kernel-e626a13f6fbb4697f8734333432dca577628d09a.zip
selftests/bpf: drop unnecessary bpf_iter.h type duplication
Drop bpf_iter.h header which uses vmlinux.h but re-defines a bunch of iterator structures and some of BPF constants for use in BPF iterator selftests. None of that is necessary when fresh vmlinux.h header is generated for vmlinux image that matches latest selftests. So drop ugly hacks and have a nice plain vmlinux.h usage everywhere. We could do the same with all the kfunc __ksym redefinitions, but that has dependency on very fresh pahole, so I'm not addressing that here. Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/bpf_iter_unix.c')
-rw-r--r--tools/testing/selftests/bpf/progs/bpf_iter_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/progs/bpf_iter_unix.c b/tools/testing/selftests/bpf/progs/bpf_iter_unix.c
index e6aefae38894..fea275df9e22 100644
--- a/tools/testing/selftests/bpf/progs/bpf_iter_unix.c
+++ b/tools/testing/selftests/bpf/progs/bpf_iter_unix.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
/* Copyright Amazon.com Inc. or its affiliates. */
-#include "bpf_iter.h"
+#include <vmlinux.h>
#include "bpf_tracing_net.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_endian.h>