summaryrefslogtreecommitdiffstats
path: root/tools/build/feature/test-libbpf-bpf_map_create.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/feature/test-libbpf-bpf_map_create.c')
-rw-r--r--tools/build/feature/test-libbpf-bpf_map_create.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/build/feature/test-libbpf-bpf_map_create.c b/tools/build/feature/test-libbpf-bpf_map_create.c
new file mode 100644
index 000000000..b9f550e33
--- /dev/null
+++ b/tools/build/feature/test-libbpf-bpf_map_create.c
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
+#include <bpf/bpf.h>
+
+int main(void)
+{
+ return bpf_map_create(0 /* map_type */, NULL /* map_name */, 0, /* key_size */,
+ 0 /* value_size */, 0 /* max_entries */, NULL /* opts */);
+}