| /tools/testing/selftests/bpf/ |
| A D | test_maps.c | 106 assert(bpf_map_get_next_key(fd, &next_key, &next_key) == 0 && in test_hashmap() 107 (next_key == 1 || next_key == 2) && in test_hashmap() 109 assert(bpf_map_get_next_key(fd, &next_key, &next_key) < 0 && in test_hashmap() 230 assert((expected_key_mask & next_key) == next_key); in test_hashmap_percpu() 238 key = next_key; in test_hashmap_percpu() 296 key = next_key; in test_hashmap_walk() 308 key = next_key; in test_hashmap_walk() 399 assert(bpf_map_get_next_key(fd, &next_key, &next_key) == 0 && in test_arraymap() 401 assert(bpf_map_get_next_key(fd, &next_key, &next_key) < 0 && in test_arraymap() 458 assert(bpf_map_get_next_key(fd, &next_key, &next_key) == 0 && in test_arraymap_percpu() [all …]
|
| A D | test_lru_map.c | 95 unsigned long long next_key = 0; in map_subset() local 99 while (!bpf_map_get_next_key(map1, &next_key, &next_key)) { in map_subset() 100 assert(!bpf_map_lookup_elem(map1, &next_key, value1)); in map_subset() 101 ret = bpf_map_lookup_elem(map0, &next_key, value0); in map_subset() 104 next_key, strerror(errno), errno); in map_subset() 109 next_key, value0[0], value1[0]); in map_subset()
|
| A D | test_progs.c | 672 __u32 key, next_key; in compare_map_keys() local 684 while (bpf_map_get_next_key(map1_fd, &key, &next_key) == 0) { in compare_map_keys() 685 err = bpf_map_lookup_elem(map2_fd, &next_key, val_buf); in compare_map_keys() 689 key = next_key; in compare_map_keys() 699 __u32 key, next_key, *cur_key_p, *next_key_p; in compare_stack_ips() local 722 next_key_p = &next_key; in compare_stack_ips()
|
| A D | test_sockmap.c | 1051 int i, key, next_key, err, zero = 0; in run_options() local 1384 key = next_key = 0; in run_options() 1386 while (bpf_map_get_next_key(map_fd[i], &key, &next_key) == 0) { in run_options() 1388 key = next_key; in run_options()
|
| /tools/testing/selftests/bpf/map_tests/ |
| A D | lpm_trie_map_basic_ops.c | 1007 struct lpm_trie_bytes_key key, next_key; in test_lpm_trie_iterate_strs() local 1072 i, next_key.prefixlen, (len + 1) * 8); in test_lpm_trie_iterate_strs() 1076 cur = &next_key; in test_lpm_trie_iterate_strs() 1078 err = bpf_map_get_next_key(fd, cur, &next_key); in test_lpm_trie_iterate_strs() 1089 i, next_key.prefixlen, (len + 1) * 8); in test_lpm_trie_iterate_strs() 1093 cur = &next_key; in test_lpm_trie_iterate_strs() 1098 err = bpf_map_get_next_key(fd, cur, &next_key); in test_lpm_trie_iterate_strs() 1112 struct lpm_trie_int_key key, next_key; in test_lpm_trie_iterate_ints() local 1140 i, next_key.prefixlen); in test_lpm_trie_iterate_ints() 1143 cur = &next_key; in test_lpm_trie_iterate_ints() [all …]
|
| A D | lpm_trie_map_get_next_key.c | 34 struct test_lpm_key next_key; in get_next_key_fn() local 41 bpf_map_get_next_key(ctx->map_fd, &ctx->key, &next_key); in get_next_key_fn()
|
| /tools/perf/ui/tui/ |
| A D | util.c | 139 goto next_key; in ui_browser__input_window() 158 next_key: in ui_browser__input_window()
|
| /tools/lib/bpf/ |
| A D | bpf.c | 496 int bpf_map_get_next_key(int fd, const void *key, void *next_key) in bpf_map_get_next_key() argument 498 const size_t attr_sz = offsetofend(union bpf_attr, next_key); in bpf_map_get_next_key() 505 attr.next_key = ptr_to_u64(next_key); in bpf_map_get_next_key()
|
| A D | bpf.h | 163 LIBBPF_API int bpf_map_get_next_key(int fd, const void *key, void *next_key);
|
| A D | libbpf.h | 1268 const void *cur_key, void *next_key, size_t key_sz);
|
| A D | libbpf.c | 10693 const void *cur_key, void *next_key, size_t key_sz) in bpf_map__get_next_key() argument 10701 return bpf_map_get_next_key(map->fd, cur_key, next_key); in bpf_map__get_next_key()
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | btf.c | 5389 bool percpu_map, unsigned int next_key, in get_pprint_expected_line() argument 5402 percpu_map ? cpu : next_key, in get_pprint_expected_line() 5427 percpu_map ? cpu : next_key, in get_pprint_expected_line() 5555 unsigned int next_key; in do_test_pprint() local 5559 next_key = ordered_map ? nr_read_elems : atoi(line); in do_test_pprint() 5560 set_pprint_mapv(mapv_kind, mapv, next_key, num_cpus, rounded_value_size); in do_test_pprint() 5579 next_key); in do_test_pprint() 5595 percpu_map, next_key, in do_test_pprint()
|
| /tools/include/uapi/linux/ |
| A D | bpf.h | 1532 __aligned_u64 next_key; member
|