Lines Matching refs:next_key

47 	long long key, next_key, first_key, value;  in test_hashmap()  local
110 assert(bpf_map_get_next_key(fd, &key, &next_key) == 0 && in test_hashmap()
111 (next_key == first_key)); in test_hashmap()
112 assert(bpf_map_get_next_key(fd, &next_key, &next_key) == 0 && in test_hashmap()
113 (next_key == 1 || next_key == 2) && in test_hashmap()
114 (next_key != first_key)); in test_hashmap()
115 assert(bpf_map_get_next_key(fd, &next_key, &next_key) == -1 && in test_hashmap()
127 assert(bpf_map_get_next_key(fd, NULL, &next_key) == -1 && in test_hashmap()
129 assert(bpf_map_get_next_key(fd, &key, &next_key) == -1 && in test_hashmap()
159 long long key, next_key, first_key; in test_hashmap_percpu() local
222 while (!bpf_map_get_next_key(fd, &key, &next_key)) { in test_hashmap_percpu()
224 assert(next_key == first_key); in test_hashmap_percpu()
227 assert((expected_key_mask & next_key) == next_key); in test_hashmap_percpu()
228 expected_key_mask &= ~next_key; in test_hashmap_percpu()
230 assert(bpf_map_lookup_elem(fd, &next_key, value) == 0); in test_hashmap_percpu()
235 key = next_key; in test_hashmap_percpu()
252 assert(bpf_map_get_next_key(fd, NULL, &next_key) == -1 && in test_hashmap_percpu()
254 assert(bpf_map_get_next_key(fd, &key, &next_key) == -1 && in test_hashmap_percpu()
263 long long key, value, next_key; in test_hashmap_walk() local
279 &next_key) == 0; i++) { in test_hashmap_walk()
280 key = next_key; in test_hashmap_walk()
288 next_key_valid = bpf_map_get_next_key(fd, &key, &next_key) == 0; in test_hashmap_walk()
292 key = next_key; in test_hashmap_walk()
298 &next_key) == 0; i++) { in test_hashmap_walk()
299 key = next_key; in test_hashmap_walk()
310 int key, next_key, fd; in test_arraymap() local
347 assert(bpf_map_get_next_key(fd, NULL, &next_key) == 0 && in test_arraymap()
348 next_key == 0); in test_arraymap()
349 assert(bpf_map_get_next_key(fd, &key, &next_key) == 0 && in test_arraymap()
350 next_key == 0); in test_arraymap()
351 assert(bpf_map_get_next_key(fd, &next_key, &next_key) == 0 && in test_arraymap()
352 next_key == 1); in test_arraymap()
353 assert(bpf_map_get_next_key(fd, &next_key, &next_key) == -1 && in test_arraymap()
367 int key, next_key, fd, i; in test_arraymap_percpu() local
406 assert(bpf_map_get_next_key(fd, NULL, &next_key) == 0 && in test_arraymap_percpu()
407 next_key == 0); in test_arraymap_percpu()
408 assert(bpf_map_get_next_key(fd, &key, &next_key) == 0 && in test_arraymap_percpu()
409 next_key == 0); in test_arraymap_percpu()
410 assert(bpf_map_get_next_key(fd, &next_key, &next_key) == 0 && in test_arraymap_percpu()
411 next_key == 1); in test_arraymap_percpu()
412 assert(bpf_map_get_next_key(fd, &next_key, &next_key) == -1 && in test_arraymap_percpu()