diff options
author | Mauricio Vasquez B <mauricio.vasquez@polito.it> | 2018-10-18 09:16:41 -0400 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-10-19 16:24:31 -0400 |
commit | 43b987d23d6bd08db41a9c4a85aacfb3f0b2a94c (patch) | |
tree | ba7dca5349f151688141b56642ea209a069281de /tools/lib/bpf/bpf.h | |
parent | da4e1b15f67613eca7ae998abd996cfee7cff1ba (diff) |
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 'tools/lib/bpf/bpf.h')
-rw-r--r-- | tools/lib/bpf/bpf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lib/bpf/bpf.h b/tools/lib/bpf/bpf.h index 258c3c178333..26a51538213c 100644 --- a/tools/lib/bpf/bpf.h +++ b/tools/lib/bpf/bpf.h | |||
@@ -99,6 +99,8 @@ LIBBPF_API int bpf_map_update_elem(int fd, const void *key, const void *value, | |||
99 | __u64 flags); | 99 | __u64 flags); |
100 | 100 | ||
101 | LIBBPF_API int bpf_map_lookup_elem(int fd, const void *key, void *value); | 101 | LIBBPF_API int bpf_map_lookup_elem(int fd, const void *key, void *value); |
102 | LIBBPF_API int bpf_map_lookup_and_delete_elem(int fd, const void *key, | ||
103 | void *value); | ||
102 | LIBBPF_API int bpf_map_delete_elem(int fd, const void *key); | 104 | LIBBPF_API int bpf_map_delete_elem(int fd, const void *key); |
103 | LIBBPF_API int bpf_map_get_next_key(int fd, const void *key, void *next_key); | 105 | LIBBPF_API int bpf_map_get_next_key(int fd, const void *key, void *next_key); |
104 | LIBBPF_API int bpf_obj_pin(int fd, const char *pathname); | 106 | LIBBPF_API int bpf_obj_pin(int fd, const char *pathname); |