/tools/testing/selftests/bpf/ |
D | test_lru_map.c | 184 assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); in test_lru_sanity0() 185 assert(!bpf_map_update_elem(expected_map_fd, &key, value, in test_lru_sanity0() 189 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST) == -1 in test_lru_sanity0() 193 assert(bpf_map_update_elem(lru_map_fd, &key, value, -1) == -1 && in test_lru_sanity0() 204 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_EXIST) == -1 && in test_lru_sanity0() 208 assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); in test_lru_sanity0() 225 assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); in test_lru_sanity0() 226 assert(!bpf_map_update_elem(expected_map_fd, &key, value, in test_lru_sanity0() 288 assert(!bpf_map_update_elem(lru_map_fd, &key, value, in test_lru_sanity1() 295 assert(!bpf_map_update_elem(expected_map_fd, &key, value, in test_lru_sanity1() [all …]
|
D | test_maps.c | 52 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap() 56 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) < 0 && in test_hashmap() 61 assert(bpf_map_update_elem(fd, &key, &value, -1) < 0 && in test_hashmap() 70 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap() 79 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) < 0 && in test_hashmap() 84 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == 0); in test_hashmap() 90 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) < 0 && in test_hashmap() 95 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) == 0); in test_hashmap() 97 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap() 99 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) < 0 && in test_hashmap() [all …]
|
D | test_lpm_map.c | 252 r = bpf_map_update_elem(map, key, value, 0); in test_lpm_map() 359 assert(bpf_map_update_elem(map_fd_ipv4, key_ipv4, &value, 0) == 0); in test_lpm_ipaddr() 364 assert(bpf_map_update_elem(map_fd_ipv4, key_ipv4, &value, 0) == 0); in test_lpm_ipaddr() 369 assert(bpf_map_update_elem(map_fd_ipv4, key_ipv4, &value, 0) == 0); in test_lpm_ipaddr() 374 assert(bpf_map_update_elem(map_fd_ipv4, key_ipv4, &value, 0) == 0); in test_lpm_ipaddr() 379 assert(bpf_map_update_elem(map_fd_ipv4, key_ipv4, &value, 0) == 0); in test_lpm_ipaddr() 384 assert(bpf_map_update_elem(map_fd_ipv6, key_ipv6, &value, 0) == 0); in test_lpm_ipaddr() 454 assert(bpf_map_update_elem(map_fd, key, &value, 0) == 0); in test_lpm_delete() 459 assert(bpf_map_update_elem(map_fd, key, &value, 0) == 0); in test_lpm_delete() 464 assert(bpf_map_update_elem(map_fd, key, &value, 0) == 0); in test_lpm_delete() [all …]
|
D | test_sockmap.c | 1000 err = bpf_map_update_elem(map_fd[1], &i, &c1, BPF_ANY); in run_options() 1013 err = bpf_map_update_elem(map_fd[2], &i, &redir_fd, BPF_ANY); in run_options() 1022 err = bpf_map_update_elem(map_fd[3], in run_options() 1033 err = bpf_map_update_elem(map_fd[4], in run_options() 1044 err = bpf_map_update_elem(map_fd[5], in run_options() 1056 err = bpf_map_update_elem(map_fd[5], in run_options() 1068 err = bpf_map_update_elem(map_fd[5], in run_options() 1080 err = bpf_map_update_elem(map_fd[5], in run_options() 1092 err = bpf_map_update_elem(map_fd[5], in run_options() 1102 bpf_map_update_elem(map_fd[5], in run_options() [all …]
|
D | test_tcp_check_syncookie_user.c | 130 if (bpf_map_update_elem(results_fd, &key, &value, 0) < 0) { in run_test() 135 if (bpf_map_update_elem(results_fd, &key_gen, &value_gen, 0) < 0) { in run_test() 140 if (bpf_map_update_elem(results_fd, &key_mss, &value_mss, 0) < 0) { in run_test()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | btf_map_in_map.c | 48 bpf_map_update_elem(outer_arr_fd, &key, &map1_fd, 0); in test_lookup_update() 49 bpf_map_update_elem(outer_hash_fd, &key, &map2_fd, 0); in test_lookup_update() 50 bpf_map_update_elem(outer_arr_dyn_fd, &key, &map3_fd, 0); in test_lookup_update() 61 bpf_map_update_elem(outer_arr_fd, &key, &map2_fd, 0); in test_lookup_update() 62 bpf_map_update_elem(outer_hash_fd, &key, &map1_fd, 0); in test_lookup_update() 63 bpf_map_update_elem(outer_arr_dyn_fd, &key, &map4_fd, 0); in test_lookup_update() 74 bpf_map_update_elem(outer_arr_dyn_fd, &key, &map5_fd, 0); in test_lookup_update() 82 err = bpf_map_update_elem(outer_hash_fd, &key, &val, 0); in test_lookup_update() 87 err = bpf_map_update_elem(outer_arr_fd, &key, &val, 0); in test_lookup_update() 93 err = bpf_map_update_elem(outer_arr_dyn_fd, &key, &val, 0); in test_lookup_update() [all …]
|
D | xdp_noinline.c | 38 bpf_map_update_elem(bpf_map__fd(skel->maps.vip_map), &key, &value, 0); in test_xdp_noinline() 39 bpf_map_update_elem(bpf_map__fd(skel->maps.ch_rings), &ch_key, &real_num, 0); in test_xdp_noinline() 40 bpf_map_update_elem(bpf_map__fd(skel->maps.reals), &real_num, &real_def, 0); in test_xdp_noinline()
|
D | l4lb_all.c | 40 bpf_map_update_elem(map_fd, &key, &value, 0); in test_l4lb() 45 bpf_map_update_elem(map_fd, &ch_key, &real_num, 0); in test_l4lb() 50 bpf_map_update_elem(map_fd, &real_num, &real_def, 0); in test_l4lb()
|
D | for_each.c | 27 err = bpf_map_update_elem(hashmap_fd, &key, &val, BPF_ANY); in test_hash_map() 41 err = bpf_map_update_elem(percpu_map_fd, &key, percpu_valbuf, BPF_ANY); in test_hash_map() 91 err = bpf_map_update_elem(arraymap_fd, &key, &val, BPF_ANY); in test_array_map() 105 err = bpf_map_update_elem(percpu_map_fd, &key, percpu_valbuf, BPF_ANY); in test_array_map()
|
D | tailcalls.c | 51 err = bpf_map_update_elem(map_fd, &i, &prog_fd, BPF_ANY); in test_tailcall_1() 83 err = bpf_map_update_elem(map_fd, &i, &prog_fd, BPF_ANY); in test_tailcall_1() 105 err = bpf_map_update_elem(map_fd, &i, &prog_fd, BPF_ANY); in test_tailcall_1() 189 err = bpf_map_update_elem(map_fd, &i, &prog_fd, BPF_ANY); in test_tailcall_2() 264 err = bpf_map_update_elem(map_fd, &i, &prog_fd, BPF_ANY); in test_tailcall_3() 354 err = bpf_map_update_elem(map_fd, &i, &prog_fd, BPF_ANY); in test_tailcall_4() 360 err = bpf_map_update_elem(data_fd, &zero, &i, BPF_ANY); in test_tailcall_4() 371 err = bpf_map_update_elem(data_fd, &zero, &i, BPF_ANY); in test_tailcall_4() 442 err = bpf_map_update_elem(map_fd, &i, &prog_fd, BPF_ANY); in test_tailcall_5() 448 err = bpf_map_update_elem(data_fd, &zero, &key[i], BPF_ANY); in test_tailcall_5() [all …]
|
D | xdp.c | 26 bpf_map_update_elem(map_fd, &key4, &value4, 0); in test_xdp() 27 bpf_map_update_elem(map_fd, &key6, &value6, 0); in test_xdp()
|
D | xdp_cpumap_attach.c | 40 err = bpf_map_update_elem(map_fd, &idx, &val, 0); in test_xdp_cpumap_attach() 54 err = bpf_map_update_elem(map_fd, &idx, &val, 0); in test_xdp_cpumap_attach()
|
D | xdp_devmap_attach.c | 42 err = bpf_map_update_elem(map_fd, &idx, &val, 0); in test_xdp_with_devmap_helpers() 56 err = bpf_map_update_elem(map_fd, &idx, &val, 0); in test_xdp_with_devmap_helpers()
|
/tools/testing/selftests/bpf/progs/ |
D | timer.c | 103 bpf_map_update_elem(map, &lru_key, &init, 0); in timer_cb1() 135 bpf_map_update_elem(&lru, &lru_key, &init, 0); in BPF_PROG() 256 bpf_map_update_elem(&hmap, &key, &init, 0); in BPF_PROG() 261 bpf_map_update_elem(&hmap, &key, &init, 0); in BPF_PROG() 263 bpf_map_update_elem(&hmap_malloc, &key_malloc, &init, 0); in BPF_PROG() 268 bpf_map_update_elem(&hmap_malloc, &key_malloc, &init, 0); in BPF_PROG() 274 bpf_map_update_elem(&hmap, &key, &init, 0); in BPF_PROG() 279 bpf_map_update_elem(&hmap, &key, &init, 0); in BPF_PROG() 286 bpf_map_update_elem(&hmap_malloc, &key_malloc, &init, 0); in BPF_PROG() 291 bpf_map_update_elem(&hmap_malloc, &key_malloc, &init, 0); in BPF_PROG()
|
D | test_mmap.c | 36 bpf_map_update_elem(&data_map, &two, (const void *)&in_val, 0); in test_mmap() 42 bpf_map_update_elem(&data_map, &one, &val, 0); in test_mmap() 47 bpf_map_update_elem(&data_map, &far, &val, 0); in test_mmap()
|
D | linked_maps2.c | 46 bpf_map_update_elem(&map1, &key_struct, &val_struct, 0); in BPF_PROG() 47 bpf_map_update_elem(&map2, &key, &val, 0); in BPF_PROG() 48 bpf_map_update_elem(&map_weak, &key, &val, 0); in BPF_PROG()
|
D | linked_maps1.c | 52 bpf_map_update_elem(&map1, &key_struct, &val_struct, 0); in BPF_PROG() 53 bpf_map_update_elem(&map2, &key, &val, 0); in BPF_PROG() 54 bpf_map_update_elem(&map_weak, &key, &val, 0); in BPF_PROG()
|
D | test_map_in_map.c | 38 bpf_map_update_elem(map, &key, &value, 0); in xdp_mimtest0() 47 bpf_map_update_elem(map, &key, &value, 0); in xdp_mimtest0()
|
D | test_sockmap_update.c | 38 if (bpf_map_update_elem(&dst_sock_map, &key, sk, 0)) in copy_sock_map() 41 if (bpf_map_update_elem(&dst_sock_hash, &key, sk, 0)) in copy_sock_map()
|
D | test_btf_map_in_map.c | 133 bpf_map_update_elem(inner_map, &key, &val, 0); in handle__sys_enter() 139 bpf_map_update_elem(inner_map, &key, &val, 0); in handle__sys_enter() 145 bpf_map_update_elem(inner_map, &key, &val, 0); in handle__sys_enter()
|
D | test_tcp_check_syncookie_kern.c | 137 bpf_map_update_elem(&results, &key_gen, &cookie, 0); in check_syncookie() 138 bpf_map_update_elem(&results, &key_mss, &mss, 0); in check_syncookie() 144 bpf_map_update_elem(&results, &key, &cookie, 0); in check_syncookie()
|
D | test_tc_edt.c | 45 if (bpf_map_update_elem(&flow_map, &key, &tstamp, BPF_ANY)) in throttle_flow() 58 if (bpf_map_update_elem(&flow_map, &key, &next_tstamp, BPF_EXIST)) in throttle_flow()
|
/tools/perf/tests/ |
D | bpf-script-test-relocation.c | 17 static void *(*bpf_map_update_elem)(void *map, void *key, void *value, int flags) = variable 47 bpf_map_update_elem(&this_is_a_global_val, &key, &value, 0); in bpf_func__sys_write()
|
D | bpf-script-example.c | 17 static void *(*bpf_map_update_elem)(void *map, void *key, void *value, int flags) = variable 45 bpf_map_update_elem(&flip_table, &ind, &new_flag, BPF_ANY); in bpf_func__SyS_epoll_pwait()
|
/tools/testing/selftests/bpf/map_tests/ |
D | sk_storage_map.c | 193 err = bpf_map_update_elem(map_fd, &sk_fds[i], &value, in insert_close_thread() 292 err = bpf_map_update_elem(map_fd, &sk_fd, &value, 0); in update_thread() 484 err = bpf_map_update_elem(map_fd, &sk_fd, &value, in test_sk_storage_map_basic() 497 err = bpf_map_update_elem(map_fd, &sk_fd, &value, in test_sk_storage_map_basic() 510 err = bpf_map_update_elem(map_fd, &sk_fd, &value, BPF_EXIST); in test_sk_storage_map_basic() 522 err = bpf_map_update_elem(map_fd, &sk_fd, &value, in test_sk_storage_map_basic() 527 err = bpf_map_update_elem(map_fd, &sk_fd, &value, BPF_NOEXIST); in test_sk_storage_map_basic() 540 err = bpf_map_update_elem(map_fd, &sk_fd, &value, 0); in test_sk_storage_map_basic()
|