/tools/testing/selftests/bpf/ |
D | test_maps.c | 39 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 …]
|
D | test_progs.c | 277 __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()
|
D | test_lru_map.c | 106 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()
|
D | test_sockmap.c | 911 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/ |
D | util.c | 139 goto next_key; in ui_browser__input_window() 158 next_key: in ui_browser__input_window()
|
/tools/lib/bpf/ |
D | bpf.h | 128 LIBBPF_API int bpf_map_get_next_key(int fd, const void *key, void *next_key);
|
D | bpf.c | 432 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/ |
D | btf.c | 4662 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/ |
D | bpf.h | 512 __aligned_u64 next_key; member
|