/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_lpm_map.c | 548 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() 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() 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() 615 assert(bpf_map_get_next_key(map_fd, NULL, key_p) == 0); in test_lpm_get_next_key() 620 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == 0); in test_lpm_get_next_key() [all …]
|
H A D | test_maps.c | 108 assert(bpf_map_get_next_key(fd, &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() 229 while (!bpf_map_get_next_key(fd, &key, &next_key)) { in test_hashmap_percpu() 298 for (i = 0; bpf_map_get_next_key(fd, !i ? NULL : &key, in test_hashmap_walk() 306 assert(bpf_map_get_next_key(fd, NULL, &key) == 0); in test_hashmap_walk() 317 for (i = 0; bpf_map_get_next_key(fd, !i ? NULL : &key, in test_hashmap_walk() 1337 assert(bpf_map_get_next_key(fd, NULL, &key) == 0); in test_map_large() 1340 assert(bpf_map_get_next_key(fd, &key, &key) == 0); in test_map_large() 1497 assert(bpf_map_get_next_key(fd, NULL, &key) == 0); in test_map_parallel() [all …]
|
H A D | test_cgroup_storage.c | 89 if (bpf_map_get_next_key(map_fd, NULL, &key)) { in main()
|
/openbmc/linux/Documentation/bpf/ |
H A D | map_lpm_trie.rst | 89 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);
|
H A D | map_hash.rst | 121 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);
|
/openbmc/linux/samples/bpf/ |
H A D | spintest_user.c | 58 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()
|
H A D | tracex2_user.c | 54 while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { in print_hist_for_pid() 89 while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { in print_hist() 170 while (bpf_map_get_next_key(map_fd[0], &key, &next_key) == 0) { in main()
|
H A D | sockex2_user.c | 52 while (bpf_map_get_next_key(map_fd, &key, &next_key) == 0) { in main()
|
H A D | lwt_len_hist_user.c | 45 while (bpf_map_get_next_key(map_fd, &key, &next_key) == 0) { in main()
|
H A D | trace_event_user.c | 108 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()
|
H A D | tracex4_user.c | 37 while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { in print_old_objects()
|
H A D | sockex3_user.c | 85 while (bpf_map_get_next_key(hash_map_fd, &key, &next_key) == 0) { in main()
|
H A D | offwaketime_user.c | 82 while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { in print_stacks()
|
H A D | sampleip_user.c | 100 while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { in print_ip_map()
|
H A D | tracex6_user.c | 46 bpf_map_get_next_key(map_fd[1], &cpu, NULL); in check_on_cpu()
|
H A D | cookie_uid_helper_example.c | 203 while (bpf_map_get_next_key(map_fd, &curN, &nextN) > -1) { in print_table()
|
/openbmc/linux/tools/testing/selftests/bpf/map_tests/ |
H A D | htab_map_batch_ops.c | 136 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()
|
H A D | map_percpu_stats.c | 55 while (!bpf_map_get_next_key(map_fd, &key, &key)) in map_count_elements() 99 for (n = 0; !bpf_map_get_next_key(map_fd, &key, &key); n++) in delete_all_elements()
|
H A D | lpm_trie_map_batch_ops.c | 139 err = bpf_map_get_next_key(map_fd, NULL, &key); in test_lpm_trie_map_batch_ops()
|
H A D | map_in_map_batch_ops.c | 98 err = bpf_map_get_next_key(inner_map_fd, NULL, &inner_map_key); in validate_fetch_results()
|
/openbmc/linux/tools/perf/util/ |
H A D | bpf_map.c | 50 while ((err = bpf_map_get_next_key(fd, prev_key, key) == 0)) { in bpf_map__fprintf()
|
H A D | bpf_kwork.c | 332 while (!bpf_map_get_next_key(fd, &prev, &key)) { in perf_kwork__report_read_bpf()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | netcnt.c | 46 if (!ASSERT_OK(bpf_map_get_next_key(map_fd, NULL, &key), "bpf_map_get_next_key")) in serial_test_netcnt()
|
H A D | tcp_hdr_options.c | 288 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()
|
/openbmc/linux/tools/lib/bpf/ |
H A D | libbpf.map | 16 bpf_map_get_next_key;
|