Home
last modified time | relevance | path

Searched refs:next_key (Results 1 – 9 of 9) sorted by relevance

/tools/testing/selftests/bpf/
Dtest_maps.c39 long long key, next_key, first_key, value; in test_hashmap() local
102 assert(bpf_map_get_next_key(fd, &key, &next_key) == 0 && in test_hashmap()
103 (next_key == first_key)); in test_hashmap()
104 assert(bpf_map_get_next_key(fd, &next_key, &next_key) == 0 && in test_hashmap()
105 (next_key == 1 || next_key == 2) && in test_hashmap()
106 (next_key != first_key)); 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()
151 long long key, next_key, first_key; in test_hashmap_percpu() local
[all …]
Dtest_progs.c277 __u32 key, next_key; in compare_map_keys() local
289 while (bpf_map_get_next_key(map1_fd, &key, &next_key) == 0) { in compare_map_keys()
290 err = bpf_map_lookup_elem(map2_fd, &next_key, val_buf); in compare_map_keys()
294 key = next_key; in compare_map_keys()
304 __u32 key, next_key, *cur_key_p, *next_key_p; in compare_stack_ips() local
327 next_key_p = &next_key; in compare_stack_ips()
Dtest_lru_map.c106 unsigned long long next_key = 0; in map_subset() local
110 while (!bpf_map_get_next_key(map1, &next_key, &next_key)) { in map_subset()
111 assert(!bpf_map_lookup_elem(map1, &next_key, value1)); in map_subset()
112 ret = bpf_map_lookup_elem(map0, &next_key, value0); in map_subset()
115 next_key, strerror(errno), errno); in map_subset()
120 next_key, value0[0], value1[0]); in map_subset()
Dtest_sockmap.c911 int i, key, next_key, err, tx_prog_fd = -1, zero = 0; in run_options() local
1248 key = next_key = 0; in run_options()
1250 while (bpf_map_get_next_key(map_fd[i], &key, &next_key) == 0) { in run_options()
1252 key = next_key; in run_options()
/tools/perf/ui/tui/
Dutil.c139 goto next_key; in ui_browser__input_window()
158 next_key: in ui_browser__input_window()
/tools/lib/bpf/
Dbpf.h128 LIBBPF_API int bpf_map_get_next_key(int fd, const void *key, void *next_key);
Dbpf.c432 int bpf_map_get_next_key(int fd, const void *key, void *next_key) in bpf_map_get_next_key() argument
439 attr.next_key = ptr_to_u64(next_key); in bpf_map_get_next_key()
/tools/testing/selftests/bpf/prog_tests/
Dbtf.c4662 bool percpu_map, unsigned int next_key, in get_pprint_expected_line() argument
4675 percpu_map ? cpu : next_key, in get_pprint_expected_line()
4700 percpu_map ? cpu : next_key, in get_pprint_expected_line()
4835 unsigned int next_key; in do_test_pprint() local
4839 next_key = ordered_map ? nr_read_elems : atoi(line); in do_test_pprint()
4840 set_pprint_mapv(mapv_kind, mapv, next_key, num_cpus, rounded_value_size); in do_test_pprint()
4859 next_key); in do_test_pprint()
4875 percpu_map, next_key, in do_test_pprint()
/tools/include/uapi/linux/
Dbpf.h512 __aligned_u64 next_key; member