]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
selftests/bpf: drop unnecessary bpf_iter.h type duplication
authorAndrii Nakryiko <andrii@kernel.org>
Tue, 29 Oct 2024 20:39:19 +0000 (13:39 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 30 Oct 2024 00:43:29 +0000 (17:43 -0700)
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 <andrii@kernel.org>
Link: https://lore.kernel.org/r/20241029203919.1948941-1-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
34 files changed:
tools/testing/selftests/bpf/progs/bpf_iter.h [deleted file]
tools/testing/selftests/bpf/progs/bpf_iter_bpf_array_map.c
tools/testing/selftests/bpf/progs/bpf_iter_bpf_hash_map.c
tools/testing/selftests/bpf/progs/bpf_iter_bpf_link.c
tools/testing/selftests/bpf/progs/bpf_iter_bpf_map.c
tools/testing/selftests/bpf/progs/bpf_iter_bpf_percpu_array_map.c
tools/testing/selftests/bpf/progs/bpf_iter_bpf_percpu_hash_map.c
tools/testing/selftests/bpf/progs/bpf_iter_bpf_sk_storage_helpers.c
tools/testing/selftests/bpf/progs/bpf_iter_bpf_sk_storage_map.c
tools/testing/selftests/bpf/progs/bpf_iter_ipv6_route.c
tools/testing/selftests/bpf/progs/bpf_iter_ksym.c
tools/testing/selftests/bpf/progs/bpf_iter_netlink.c
tools/testing/selftests/bpf/progs/bpf_iter_setsockopt.c
tools/testing/selftests/bpf/progs/bpf_iter_setsockopt_unix.c
tools/testing/selftests/bpf/progs/bpf_iter_sockmap.c
tools/testing/selftests/bpf/progs/bpf_iter_task_btf.c
tools/testing/selftests/bpf/progs/bpf_iter_task_file.c
tools/testing/selftests/bpf/progs/bpf_iter_task_stack.c
tools/testing/selftests/bpf/progs/bpf_iter_task_vmas.c
tools/testing/selftests/bpf/progs/bpf_iter_tasks.c
tools/testing/selftests/bpf/progs/bpf_iter_tcp4.c
tools/testing/selftests/bpf/progs/bpf_iter_tcp6.c
tools/testing/selftests/bpf/progs/bpf_iter_test_kern3.c
tools/testing/selftests/bpf/progs/bpf_iter_test_kern4.c
tools/testing/selftests/bpf/progs/bpf_iter_test_kern5.c
tools/testing/selftests/bpf/progs/bpf_iter_test_kern6.c
tools/testing/selftests/bpf/progs/bpf_iter_test_kern_common.h
tools/testing/selftests/bpf/progs/bpf_iter_udp4.c
tools/testing/selftests/bpf/progs/bpf_iter_udp6.c
tools/testing/selftests/bpf/progs/bpf_iter_unix.c
tools/testing/selftests/bpf/progs/bpf_iter_vma_offset.c
tools/testing/selftests/bpf/progs/cgroup_iter.c
tools/testing/selftests/bpf/progs/cgrp_ls_sleepable.c
tools/testing/selftests/bpf/progs/kmem_cache_iter.c

diff --git a/tools/testing/selftests/bpf/progs/bpf_iter.h b/tools/testing/selftests/bpf/progs/bpf_iter.h
deleted file mode 100644 (file)
index 3305dc3..0000000
+++ /dev/null
@@ -1,174 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (c) 2020 Facebook */
-/* "undefine" structs in vmlinux.h, because we "override" them below */
-#define bpf_iter_meta bpf_iter_meta___not_used
-#define bpf_iter__bpf_map bpf_iter__bpf_map___not_used
-#define bpf_iter__ipv6_route bpf_iter__ipv6_route___not_used
-#define bpf_iter__netlink bpf_iter__netlink___not_used
-#define bpf_iter__task bpf_iter__task___not_used
-#define bpf_iter__task_file bpf_iter__task_file___not_used
-#define bpf_iter__task_vma bpf_iter__task_vma___not_used
-#define bpf_iter__tcp bpf_iter__tcp___not_used
-#define tcp6_sock tcp6_sock___not_used
-#define bpf_iter__udp bpf_iter__udp___not_used
-#define udp6_sock udp6_sock___not_used
-#define bpf_iter__unix bpf_iter__unix___not_used
-#define bpf_iter__bpf_map_elem bpf_iter__bpf_map_elem___not_used
-#define bpf_iter__bpf_sk_storage_map bpf_iter__bpf_sk_storage_map___not_used
-#define bpf_iter__sockmap bpf_iter__sockmap___not_used
-#define bpf_iter__bpf_link bpf_iter__bpf_link___not_used
-#define bpf_iter__cgroup bpf_iter__cgroup___not_used
-#define btf_ptr btf_ptr___not_used
-#define BTF_F_COMPACT BTF_F_COMPACT___not_used
-#define BTF_F_NONAME BTF_F_NONAME___not_used
-#define BTF_F_PTR_RAW BTF_F_PTR_RAW___not_used
-#define BTF_F_ZERO BTF_F_ZERO___not_used
-#define bpf_iter__ksym bpf_iter__ksym___not_used
-#define bpf_iter__kmem_cache bpf_iter__kmem_cache___not_used
-#include "vmlinux.h"
-#undef bpf_iter_meta
-#undef bpf_iter__bpf_map
-#undef bpf_iter__ipv6_route
-#undef bpf_iter__netlink
-#undef bpf_iter__task
-#undef bpf_iter__task_file
-#undef bpf_iter__task_vma
-#undef bpf_iter__tcp
-#undef tcp6_sock
-#undef bpf_iter__udp
-#undef udp6_sock
-#undef bpf_iter__unix
-#undef bpf_iter__bpf_map_elem
-#undef bpf_iter__bpf_sk_storage_map
-#undef bpf_iter__sockmap
-#undef bpf_iter__bpf_link
-#undef bpf_iter__cgroup
-#undef btf_ptr
-#undef BTF_F_COMPACT
-#undef BTF_F_NONAME
-#undef BTF_F_PTR_RAW
-#undef BTF_F_ZERO
-#undef bpf_iter__ksym
-#undef bpf_iter__kmem_cache
-
-struct bpf_iter_meta {
-       struct seq_file *seq;
-       __u64 session_id;
-       __u64 seq_num;
-} __attribute__((preserve_access_index));
-
-struct bpf_iter__ipv6_route {
-       struct bpf_iter_meta *meta;
-       struct fib6_info *rt;
-} __attribute__((preserve_access_index));
-
-struct bpf_iter__netlink {
-       struct bpf_iter_meta *meta;
-       struct netlink_sock *sk;
-} __attribute__((preserve_access_index));
-
-struct bpf_iter__task {
-       struct bpf_iter_meta *meta;
-       struct task_struct *task;
-} __attribute__((preserve_access_index));
-
-struct bpf_iter__task_file {
-       struct bpf_iter_meta *meta;
-       struct task_struct *task;
-       __u32 fd;
-       struct file *file;
-} __attribute__((preserve_access_index));
-
-struct bpf_iter__task_vma {
-       struct bpf_iter_meta *meta;
-       struct task_struct *task;
-       struct vm_area_struct *vma;
-} __attribute__((preserve_access_index));
-
-struct bpf_iter__bpf_map {
-       struct bpf_iter_meta *meta;
-       struct bpf_map *map;
-} __attribute__((preserve_access_index));
-
-struct bpf_iter__tcp {
-       struct bpf_iter_meta *meta;
-       struct sock_common *sk_common;
-       uid_t uid;
-} __attribute__((preserve_access_index));
-
-struct tcp6_sock {
-       struct tcp_sock tcp;
-       struct ipv6_pinfo inet6;
-} __attribute__((preserve_access_index));
-
-struct bpf_iter__udp {
-       struct bpf_iter_meta *meta;
-       struct udp_sock *udp_sk;
-       uid_t uid __attribute__((aligned(8)));
-       int bucket __attribute__((aligned(8)));
-} __attribute__((preserve_access_index));
-
-struct udp6_sock {
-       struct udp_sock udp;
-       struct ipv6_pinfo inet6;
-} __attribute__((preserve_access_index));
-
-struct bpf_iter__unix {
-       struct bpf_iter_meta *meta;
-       struct unix_sock *unix_sk;
-       uid_t uid;
-} __attribute__((preserve_access_index));
-
-struct bpf_iter__bpf_map_elem {
-       struct bpf_iter_meta *meta;
-       struct bpf_map *map;
-       void *key;
-       void *value;
-};
-
-struct bpf_iter__bpf_sk_storage_map {
-       struct bpf_iter_meta *meta;
-       struct bpf_map *map;
-       struct sock *sk;
-       void *value;
-};
-
-struct bpf_iter__sockmap {
-       struct bpf_iter_meta *meta;
-       struct bpf_map *map;
-       void *key;
-       struct sock *sk;
-};
-
-struct bpf_iter__bpf_link {
-       struct bpf_iter_meta *meta;
-       struct bpf_link *link;
-};
-
-struct bpf_iter__cgroup {
-       struct bpf_iter_meta *meta;
-       struct cgroup *cgroup;
-} __attribute__((preserve_access_index));
-
-struct btf_ptr {
-       void *ptr;
-       __u32 type_id;
-       __u32 flags;
-};
-
-enum {
-       BTF_F_COMPACT   =       (1ULL << 0),
-       BTF_F_NONAME    =       (1ULL << 1),
-       BTF_F_PTR_RAW   =       (1ULL << 2),
-       BTF_F_ZERO      =       (1ULL << 3),
-};
-
-struct bpf_iter__ksym {
-       struct bpf_iter_meta *meta;
-       struct kallsym_iter *ksym;
-};
-
-struct bpf_iter__kmem_cache {
-       struct bpf_iter_meta *meta;
-       struct kmem_cache *s;
-} __attribute__((preserve_access_index));
index 564835ba7d5166ebdd3306b5dc74a6f1d10e6310..19710cc0f2506eca7e9e6dfce401dffa4c339f30 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 #include <bpf/bpf_tracing.h>
 
index d7a69217fb688f21802831f53a387a6197fdbb2c..f47da665f7e0c1c1f2de08649d5d690b119fc90f 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 
 char _license[] SEC("license") = "GPL";
index e1af2f8f75a6b130b9aaee4a94105110b7c9ac9b..7b69e1887705f17692eec81748cc8128a405ec93 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2022 Red Hat, Inc. */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 
 char _license[] SEC("license") = "GPL";
index 6c39e86b666f13b19d28f445b1967374a2b64713..c868ffb8080f182c977b957afb24b6d6adb6f5c4 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 
 char _license[] SEC("license") = "GPL";
index 9f0e0705b2bf6d23e62382e48a18685d44139b09..9fdea8cd4c6fc89e0b218d62c6a4ca1891872969 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 #include <bpf/bpf_tracing.h>
 
index 5014a17d6c02fdb6a9d1ec48c6fa999baeb412be..aa529f76c7fcc18bb68054a4fbdcf96cf34adeaf 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 #include <bpf/bpf_tracing.h>
 
index 6cecab2b32ba87710881c48b896e43fd6de8cadc..e88dab196e0ff485b91b6631998bfeabde3c05dc 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Google LLC. */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 #include <bpf/bpf_tracing.h>
 
index c7b8e006b171ae2032385e7a17d815e36d0fc3bd..eb9642923e1ca9eb32e5e63509ad1293a19f12ee 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include "bpf_tracing_net.h"
 #include <bpf/bpf_helpers.h>
 #include <bpf/bpf_tracing.h>
index 784a610ce03946e53b9be1b6fed8c0d90ed8aee1..73a5cf3ba3d3f0acb491062c7d3258056cf51959 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include "bpf_tracing_net.h"
 #include <bpf/bpf_helpers.h>
 
index 521267818f4dda5f1d8e67bf0cd6e33b89aef24c..3e725b1fce37571d390e1edbe646bfeac44c4892 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2022, Oracle and/or its affiliates. */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 
 char _license[] SEC("license") = "GPL";
index a28e51e2dcee261ded1c25df1c831a3ccddbcadc..00b2ceae81fb0914f2de3634eb342004e8bc3c5b 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include "bpf_tracing_net.h"
 #include <bpf/bpf_helpers.h>
 
index ec7f91850dec961443a8cdd704eeffcde8b79aab..774d4dbe81893530c745465f66e2131828916c85 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2021 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include "bpf_tracing_net.h"
 #include <bpf/bpf_helpers.h>
 #include <bpf/bpf_endian.h>
index eafc877ea46038f24e485d1ec3031771ea805695..d92631ec61618a7ff65b813836586f956d895681 100644 (file)
@@ -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 <limits.h>
index f3af0e30cead35ecfe2e1ef5d18fbb26fcedfe62..317fe49760ccf9ebe3794aba41fa8853d6f9121f 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Cloudflare */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include "bpf_tracing_net.h"
 #include <bpf/bpf_helpers.h>
 #include <bpf/bpf_tracing.h>
index bca8b889cb10726d14958642ae317b55b11d6b08..ef2f7c8d937397acf691cb6f4082df38c02f6bad 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020, Oracle and/or its affiliates. */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 #include <bpf/bpf_core_read.h>
 
index b0255080662d57bfeb788ceaf2e2b570097e99e9..959a8d899eaf5c82b31b3631bb77fd24b5d99641 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 
 char _license[] SEC("license") = "GPL";
index 442f4ca39fd761d823aa58953afd9cb4a69fde2f..f5a3094554908994612de9cabf03900c550be5a5 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 
 char _license[] SEC("license") = "GPL";
index 423b39e60b6f1cf2684188f33b5c531dacffa200..d64ba7ddaed54e36ae9efda5aa873adbcafd6796 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 
 char _license[] SEC("license") = "GPL";
index 6cbb3393f2438db300a767c8f3c081262dbc7a9a..bc10c4e4b4fa0e75620675ebfc934356eed3cd35 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 #include <bpf/bpf_tracing.h>
 
index 92267abb462fc1b2f85c14acb4ec2e7563db8dd1..d22449c69363afe3c3aaae158f0ef0c6ef65916c 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include "bpf_tracing_net.h"
 #include <bpf/bpf_helpers.h>
 #include <bpf/bpf_endian.h>
index 943f7bba180e70692b949b8a4e568c85212c03d2..8b072666f9d9a0ce023e7cb2c2716bf4a5bd3905 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include "bpf_tracing_net.h"
 #include <bpf/bpf_helpers.h>
 #include <bpf/bpf_endian.h>
index 2a4647f20c466b1735cf09e28b8583c15255f8a5..6b17e7e86a48c1da26aad3af72b0517ba4e5c2cd 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 
 char _license[] SEC("license") = "GPL";
index dbf61c44acac6d52f8bcc19b859643467bd62b20..56177508798f60a17a31d4b6bacf2366dd29dbd2 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 
 char _license[] SEC("license") = "GPL";
index e3a7575e81d2c67f0295a4219357aeb6cdbed1ae..9d8b7310d2c2410a84d99a28e92a08c95b3b63ee 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 #include <bpf/bpf_tracing.h>
 
index 1c7304f56b1e27a3c03b44260d572158bcf0af27..b150bd468824055e4ba8a0096fedb35a73b1e180 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 
 char _license[] SEC("license") = "GPL";
index d5e3df66ad9af29ba5dd930a59daaf8f4174570e..6a4c50497c5e1cf526c08738505fea2cb4691091 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 
 char _license[] SEC("license") = "GPL";
index cf0c485b1ed7aab6709be61394fe5138ccba3f43..ffbd4b116d17ffbb9f14440c788e50490fb0f4e0 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include "bpf_tracing_net.h"
 #include <bpf/bpf_helpers.h>
 #include <bpf/bpf_endian.h>
index 5031e21c433f12789797ef83ab83803902100465..47ff7754f4fda4c9db92fbf1dc2e6a68f044174e 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include "bpf_tracing_net.h"
 #include <bpf/bpf_helpers.h>
 #include <bpf/bpf_endian.h>
index e6aefae38894290e553baed5e5e5ccfbfb680023..fea275df9e229362ee37f771a7f6e7f2e7a32460 100644 (file)
@@ -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>
index ee7455d2623aab28d307c10d09c4bd096b6de8d3..174298e122d31afc2fff79e62ccbeb7cff456264 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2022 Meta Platforms, Inc. and affiliates. */
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 
 char _license[] SEC("license") = "GPL";
index de03997322a793f39e4889bc6c7bc168124b8988..f30841997a8d1417a5f7e1188f3cb4e650e7cf5c 100644 (file)
@@ -1,7 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2022 Google */
-
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 #include <bpf/bpf_tracing.h>
 
index 5e282c16eadc53f8cbbe1a05b433a28432874978..a2de95f85648bb60a9ad19ca836cd7af074c4096 100644 (file)
@@ -1,7 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2022 Meta Platforms, Inc. and affiliates. */
-
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 #include <bpf/bpf_tracing.h>
 #include "bpf_misc.h"
index 72c9dafecd98406b9fadda497c850d61b05df619..e775d5cd99fca579695dbceaee02d4866f638aaa 100644 (file)
@@ -1,7 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2024 Google */
-
-#include "bpf_iter.h"
+#include <vmlinux.h>
 #include <bpf/bpf_helpers.h>
 #include <bpf/bpf_tracing.h>