Home
last modified time | relevance | path

Searched refs:bpf_map_delete_elem (Results 1 – 5 of 5) sorted by relevance

/tools/testing/selftests/bpf/
Dtest_maps.c90 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap()
105 assert(bpf_map_delete_elem(fd, &key) == 0); in test_hashmap()
107 assert(bpf_map_delete_elem(fd, &key) == 0); in test_hashmap()
108 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap()
202 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap_percpu()
230 assert(bpf_map_delete_elem(fd, &key) == 0); in test_hashmap_percpu()
232 assert(bpf_map_delete_elem(fd, &key) == 0); in test_hashmap_percpu()
233 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap_percpu()
343 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == EINVAL); in test_arraymap()
402 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == EINVAL); in test_arraymap_percpu()
[all …]
Dtest_lru_map.c312 assert(!bpf_map_delete_elem(lru_map_fd, &key)); in test_lru_sanity2()
471 assert(!bpf_map_delete_elem(lru_map_fd, &key)); in test_lru_sanity4()
472 assert(bpf_map_delete_elem(lru_map_fd, &key)); in test_lru_sanity4()
Dbpf_helpers.h17 static int (*bpf_map_delete_elem)(void *map, void *key) = variable
/tools/lib/bpf/
Dbpf.h54 int bpf_map_delete_elem(int fd, const void *key);
Dbpf.c196 int bpf_map_delete_elem(int fd, const void *key) in bpf_map_delete_elem() function