aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/test_stack_map.c
diff options
context:
space:
mode:
authorMauricio Vasquez B <mauricio.vasquez@polito.it>2018-10-18 15:16:41 +0200
committerAlexei Starovoitov <ast@kernel.org>2018-10-19 13:24:31 -0700
commit43b987d23d6bd08db41a9c4a85aacfb3f0b2a94c (patch)
treeba7dca5349f151688141b56642ea209a069281de /tools/testing/selftests/bpf/test_stack_map.c
parentSync uapi/bpf.h to tools/include (diff)
downloadlinux-dev-43b987d23d6bd08db41a9c4a85aacfb3f0b2a94c.tar.xz
linux-dev-43b987d23d6bd08db41a9c4a85aacfb3f0b2a94c.zip
selftests/bpf: add test cases for queue and stack maps
test_maps: Tests that queue/stack maps are behaving correctly even in corner cases test_progs: Tests new ebpf helpers Signed-off-by: Mauricio Vasquez B <mauricio.vasquez@polito.it> Acked-by: Song Liu <songliubraving@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to '')
-rw-r--r--tools/testing/selftests/bpf/test_stack_map.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/test_stack_map.c b/tools/testing/selftests/bpf/test_stack_map.c
new file mode 100644
index 000000000000..31c3880e6da0
--- /dev/null
+++ b/tools/testing/selftests/bpf/test_stack_map.c
@@ -0,0 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
+// Copyright (c) 2018 Politecnico di Torino
+#define MAP_TYPE BPF_MAP_TYPE_STACK
+#include "test_queue_stack_map.h"