Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/
A Dtest_maps.c106 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 Dtest_lru_map.c95 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 Dtest_progs.c672 __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 Dtest_sockmap.c1051 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 Dlpm_trie_map_basic_ops.c1007 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 Dlpm_trie_map_get_next_key.c34 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 Dutil.c139 goto next_key; in ui_browser__input_window()
158 next_key: in ui_browser__input_window()
/tools/lib/bpf/
A Dbpf.c496 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 Dbpf.h163 LIBBPF_API int bpf_map_get_next_key(int fd, const void *key, void *next_key);
A Dlibbpf.h1268 const void *cur_key, void *next_key, size_t key_sz);
A Dlibbpf.c10693 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 Dbtf.c5389 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 Dbpf.h1532 __aligned_u64 next_key; member

Completed in 91 milliseconds