Home
last modified time | relevance | path

Searched refs:bpf_map_get_next_key (Results 1 – 14 of 14) sorted by relevance

/tools/testing/selftests/bpf/
Dtest_lpm_map.c552 assert(bpf_map_get_next_key(map_fd, NULL, key_p) == -1 && in test_lpm_get_next_key()
561 assert(bpf_map_get_next_key(map_fd, NULL, key_p) == 0); in test_lpm_get_next_key()
565 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == -1 && in test_lpm_get_next_key()
570 assert(bpf_map_get_next_key(map_fd, NULL, key_p) == 0); in test_lpm_get_next_key()
580 assert(bpf_map_get_next_key(map_fd, NULL, key_p) == 0); in test_lpm_get_next_key()
585 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == 0); in test_lpm_get_next_key()
590 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == -1 && in test_lpm_get_next_key()
599 assert(bpf_map_get_next_key(map_fd, NULL, key_p) == 0); in test_lpm_get_next_key()
604 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == 0); in test_lpm_get_next_key()
609 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == 0); in test_lpm_get_next_key()
[all …]
Dtest_maps.c100 assert(bpf_map_get_next_key(fd, NULL, &first_key) == 0 && in test_hashmap()
102 assert(bpf_map_get_next_key(fd, &key, &next_key) == 0 && in test_hashmap()
104 assert(bpf_map_get_next_key(fd, &next_key, &next_key) == 0 && in test_hashmap()
107 assert(bpf_map_get_next_key(fd, &next_key, &next_key) == -1 && in test_hashmap()
119 assert(bpf_map_get_next_key(fd, NULL, &next_key) == -1 && in test_hashmap()
121 assert(bpf_map_get_next_key(fd, &key, &next_key) == -1 && in test_hashmap()
212 assert(bpf_map_get_next_key(fd, NULL, &first_key) == 0 && in test_hashmap_percpu()
214 while (!bpf_map_get_next_key(fd, &key, &next_key)) { in test_hashmap_percpu()
244 assert(bpf_map_get_next_key(fd, NULL, &next_key) == -1 && in test_hashmap_percpu()
246 assert(bpf_map_get_next_key(fd, &key, &next_key) == -1 && in test_hashmap_percpu()
[all …]
Dtest_netcnt.c107 if (bpf_map_get_next_key(map_fd, NULL, &key)) { in main()
Dtest_progs.c224 err = bpf_map_get_next_key(map1_fd, NULL, &key); in compare_map_keys()
231 while (bpf_map_get_next_key(map1_fd, &key, &next_key) == 0) { in compare_map_keys()
254 while (bpf_map_get_next_key(smap_fd, cur_key_p, next_key_p) == 0) { in compare_stack_ips()
Dtest_cgroup_storage.c100 if (bpf_map_get_next_key(map_fd, NULL, &key)) { in main()
Dtest_lru_map.c110 while (!bpf_map_get_next_key(map1, &next_key, &next_key)) { in map_subset()
Dtest_sockmap.c1080 while (bpf_map_get_next_key(map_fd[i], &key, &next_key) == 0) { in run_options()
/tools/testing/selftests/bpf/prog_tests/
Dstacktrace_build_id.c82 err = bpf_map_get_next_key(stackmap_fd, NULL, &key); in test_stacktrace_build_id()
104 } while (bpf_map_get_next_key(stackmap_fd, &previous_key, &key) == 0); in test_stacktrace_build_id()
Dstacktrace_build_id_nmi.c117 err = bpf_map_get_next_key(stackmap_fd, NULL, &key); in test_stacktrace_build_id_nmi()
139 } while (bpf_map_get_next_key(stackmap_fd, &previous_key, &key) == 0); in test_stacktrace_build_id_nmi()
/tools/perf/util/
Dbpf_map.c50 while ((err = bpf_map_get_next_key(fd, prev_key, key) == 0)) { in bpf_map__fprintf()
/tools/lib/bpf/
Dlibbpf.map31 bpf_map_get_next_key;
Dbpf.h121 LIBBPF_API int bpf_map_get_next_key(int fd, const void *key, void *next_key);
Dbpf.c419 int bpf_map_get_next_key(int fd, const void *key, void *next_key) in bpf_map_get_next_key() function
/tools/bpf/bpftool/
Dmap.c821 err = bpf_map_get_next_key(fd, prev_key, key); in do_dump()
1044 err = bpf_map_get_next_key(fd, key, nextkey); in do_getnext()