Home
last modified time | relevance | path

Searched refs:bpf_map_get_next_key (Results 1 – 25 of 35) sorted by relevance

12

/linux-6.12.1/tools/testing/selftests/bpf/
Dtest_lpm_map.c548 assert(bpf_map_get_next_key(map_fd, NULL, key_p) == -ENOENT); in test_lpm_get_next_key()
556 assert(bpf_map_get_next_key(map_fd, NULL, key_p) == 0); in test_lpm_get_next_key()
560 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == -ENOENT); in test_lpm_get_next_key()
564 assert(bpf_map_get_next_key(map_fd, NULL, key_p) == 0); in test_lpm_get_next_key()
574 assert(bpf_map_get_next_key(map_fd, NULL, key_p) == 0); in test_lpm_get_next_key()
579 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == 0); in test_lpm_get_next_key()
584 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == -ENOENT); in test_lpm_get_next_key()
592 assert(bpf_map_get_next_key(map_fd, NULL, key_p) == 0); in test_lpm_get_next_key()
597 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == 0); in test_lpm_get_next_key()
602 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == 0); in test_lpm_get_next_key()
[all …]
Dtest_maps.c106 assert(bpf_map_get_next_key(fd, NULL, &first_key) == 0 && in test_hashmap()
108 assert(bpf_map_get_next_key(fd, &key, &next_key) == 0 && in test_hashmap()
110 assert(bpf_map_get_next_key(fd, &next_key, &next_key) == 0 && in test_hashmap()
113 assert(bpf_map_get_next_key(fd, &next_key, &next_key) < 0 && in test_hashmap()
125 assert(bpf_map_get_next_key(fd, NULL, &next_key) < 0 && in test_hashmap()
127 assert(bpf_map_get_next_key(fd, &key, &next_key) < 0 && in test_hashmap()
227 assert(bpf_map_get_next_key(fd, NULL, &first_key) == 0 && in test_hashmap_percpu()
229 while (!bpf_map_get_next_key(fd, &key, &next_key)) { in test_hashmap_percpu()
259 assert(bpf_map_get_next_key(fd, NULL, &next_key) < 0 && in test_hashmap_percpu()
261 assert(bpf_map_get_next_key(fd, &key, &next_key) < 0 && in test_hashmap_percpu()
[all …]
/linux-6.12.1/Documentation/bpf/
Dmap_lpm_trie.rst89 bpf_map_get_next_key()
94 int bpf_map_get_next_key (int fd, const void *cur_key, void *next_key)
97 libbpf's ``bpf_map_get_next_key()`` function. The first key can be
98 fetched by calling ``bpf_map_get_next_key()`` with ``cur_key`` set to
100 current key. ``bpf_map_get_next_key()`` returns ``0`` on success,
104 ``bpf_map_get_next_key()`` will iterate through the LPM trie elements
187 err = bpf_map_get_next_key(map_fd, cur_key, &next_key);
Dmap_hash.rst121 bpf_map_get_next_key()
126 int bpf_map_get_next_key(int fd, const void *cur_key, void *next_key)
129 libbpf's ``bpf_map_get_next_key()`` function. The first key can be fetched by
130 calling ``bpf_map_get_next_key()`` with ``cur_key`` set to
132 current key. ``bpf_map_get_next_key()`` returns 0 on success, -ENOENT if
136 Note that if ``cur_key`` gets deleted then ``bpf_map_get_next_key()``
139 to be key deletion intermixed with ``bpf_map_get_next_key()``.
208 err = bpf_map_get_next_key(map_fd, cur_key, &next_key);
/linux-6.12.1/samples/bpf/
Dspintest_user.c58 while (bpf_map_get_next_key(map_fd, &key, &next_key) == 0) { in main()
73 while (bpf_map_get_next_key(map_fd, &key, &next_key) == 0) in main()
Dsockex2_user.c52 while (bpf_map_get_next_key(map_fd, &key, &next_key) == 0) { in main()
Dtrace_event_user.c108 while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { in print_stacks()
121 while (bpf_map_get_next_key(stack_map, &stackid, &next_id) == 0) { in print_stacks()
Dlwt_len_hist_user.c45 while (bpf_map_get_next_key(map_fd, &key, &next_key) == 0) { in main()
Dtracex4_user.c37 while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { in print_old_objects()
Dsockex3_user.c85 while (bpf_map_get_next_key(hash_map_fd, &key, &next_key) == 0) { in main()
Doffwaketime_user.c82 while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { in print_stacks()
Dsampleip_user.c100 while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { in print_ip_map()
Dtracex6_user.c46 bpf_map_get_next_key(map_fd[1], &cpu, NULL); in check_on_cpu()
Dcookie_uid_helper_example.c203 while (bpf_map_get_next_key(map_fd, &curN, &nextN) > -1) { in print_table()
/linux-6.12.1/tools/testing/selftests/bpf/map_tests/
Dhtab_map_batch_ops.c136 err = bpf_map_get_next_key(map_fd, NULL, &key); in __test_map_lookup_and_delete_batch()
201 err = bpf_map_get_next_key(map_fd, NULL, &key); in __test_map_lookup_and_delete_batch()
246 err = bpf_map_get_next_key(map_fd, NULL, &key); in __test_map_lookup_and_delete_batch()
Dlpm_trie_map_get_next_key.c41 bpf_map_get_next_key(ctx->map_fd, &ctx->key, &next_key); in get_next_key_fn()
Dmap_percpu_stats.c56 while (!bpf_map_get_next_key(map_fd, &key, &key)) in map_count_elements()
100 for (n = 0; !bpf_map_get_next_key(map_fd, &key, &key); n++) in delete_all_elements()
Dlpm_trie_map_batch_ops.c139 err = bpf_map_get_next_key(map_fd, NULL, &key); in test_lpm_trie_map_batch_ops()
Dmap_in_map_batch_ops.c98 err = bpf_map_get_next_key(inner_map_fd, NULL, &inner_map_key); in validate_fetch_results()
/linux-6.12.1/tools/perf/util/
Dbpf_map.c47 while ((err = bpf_map_get_next_key(fd, prev_key, key) == 0)) { in bpf_map__fprintf()
Dbpf_lock_contention.c261 while (!bpf_map_get_next_key(ts_fd, prev_key, &key)) { in account_end_timestamp()
287 while (!bpf_map_get_next_key(ts_fd, prev_key, &key)) { in account_end_timestamp()
450 while (!bpf_map_get_next_key(fd, prev_key, &key)) { in lock_contention_read()
Dbpf_kwork_top.c286 while (!bpf_map_get_next_key(fd, &prev, &key)) { in perf_kwork__top_read_bpf()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dnetcnt.c46 if (!ASSERT_OK(bpf_map_get_next_key(map_fd, NULL, &key), "bpf_map_get_next_key")) in serial_test_netcnt()
Dtcp_hdr_options.c288 err = bpf_map_get_next_key(lport_linum_map_fd, NULL, &lport); in reset_test()
291 err = bpf_map_get_next_key(lport_linum_map_fd, &lport, &lport); in reset_test()
/linux-6.12.1/tools/lib/bpf/
Dlibbpf.map16 bpf_map_get_next_key;

12