/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_lru_map.c | 123 assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); in test_lru_sanity0() 124 assert(!bpf_map_update_elem(expected_map_fd, &key, value, in test_lru_sanity0() 128 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST) == -1 in test_lru_sanity0() 132 assert(bpf_map_update_elem(lru_map_fd, &key, value, -1) == -1 && in test_lru_sanity0() 143 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_EXIST) == -1 && in test_lru_sanity0() 147 assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); in test_lru_sanity0() 164 assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); in test_lru_sanity0() 165 assert(!bpf_map_update_elem(expected_map_fd, &key, value, in test_lru_sanity0() 218 assert(!bpf_map_update_elem(lru_map_fd, &key, value, in test_lru_sanity1() 225 assert(!bpf_map_update_elem(expected_map_fd, &key, value, in test_lru_sanity1() [all …]
|
D | test_maps.c | 61 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap() 65 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == -1 && in test_hashmap() 70 assert(bpf_map_update_elem(fd, &key, &value, -1) == -1 && in test_hashmap() 81 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) == -1 && in test_hashmap() 86 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == 0); in test_hashmap() 92 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == -1 && in test_hashmap() 97 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) == 0); in test_hashmap() 99 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap() 101 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == -1 && in test_hashmap() 177 assert(bpf_map_update_elem(fd, &key, value, BPF_ANY) == 0); in test_hashmap_percpu() [all …]
|
D | test_tcpbpf_kern.c | 41 bpf_map_update_elem(&global_map, &key, &g, in update_event_map() 46 bpf_map_update_elem(&global_map, &key, &g, in update_event_map() 87 bpf_map_update_elem(&global_map, &key, &g, in bpf_testcb() 107 bpf_map_update_elem(&sockopt_results, &key, &v, in bpf_testcb() 134 bpf_map_update_elem(&global_map, &key, &g, in bpf_testcb() 145 bpf_map_update_elem(&sockopt_results, &key, &v, BPF_ANY); in bpf_testcb()
|
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 | 844 err = bpf_map_update_elem(map_fd[1], &i, &c1, BPF_ANY); in run_options() 857 err = bpf_map_update_elem(map_fd[2], &i, &redir_fd, BPF_ANY); in run_options() 866 err = bpf_map_update_elem(map_fd[3], in run_options() 877 err = bpf_map_update_elem(map_fd[4], in run_options() 888 err = bpf_map_update_elem(map_fd[5], in run_options() 900 err = bpf_map_update_elem(map_fd[5], in run_options() 912 err = bpf_map_update_elem(map_fd[5], in run_options() 924 err = bpf_map_update_elem(map_fd[5], in run_options() 938 err = bpf_map_update_elem(map_fd[6], &i, &in, BPF_ANY); in run_options() 945 err = bpf_map_update_elem(map_fd[1], &i, &p1, BPF_ANY); in run_options() [all …]
|
D | socket_cookie_prog.c | 27 if (bpf_map_update_elem(&socket_cookies, &cookie_key, &cookie_value, 0)) in set_cookie() 53 bpf_map_update_elem(&socket_cookies, &cookie_key, &new_cookie_value, 0); in update_cookie()
|
D | test_progs.c | 150 bpf_map_update_elem(map_fd, &key4, &value4, 0); in test_xdp() 151 bpf_map_update_elem(map_fd, &key6, &value6, 0); in test_xdp() 243 bpf_map_update_elem(map_fd, &key, &value, 0); in test_l4lb() 248 bpf_map_update_elem(map_fd, &ch_key, &real_num, 0); in test_l4lb() 253 bpf_map_update_elem(map_fd, &real_num, &real_def, 0); in test_l4lb() 332 bpf_map_update_elem(map_fd, &key, &value, 0); in test_xdp_noinline() 337 bpf_map_update_elem(map_fd, &ch_key, &real_num, 0); in test_xdp_noinline() 342 bpf_map_update_elem(map_fd, &real_num, &real_def, 0); in test_xdp_noinline() 468 err = bpf_map_update_elem(map_fds[i], &array_key, in test_bpf_obj_id() 1015 bpf_map_update_elem(control_map_fd, &key, &val, 0); in test_stacktrace_map() [all …]
|
D | test_cgroup_storage.c | 113 if (bpf_map_update_elem(percpu_map_fd, &key, percpu_value, 0)) { in main() 136 if (bpf_map_update_elem(map_fd, &key, &value, 0)) { in main()
|
D | test_select_reuseport_kern.c | 173 bpf_map_update_elem(&linum_map, &index_zero, &linum, BPF_ANY); in _select_by_skb_data() 174 bpf_map_update_elem(&data_check_map, &index_zero, &data_check, BPF_ANY); in _select_by_skb_data()
|
D | test_skb_cgroup_id_kern.c | 28 bpf_map_update_elem(&cgroup_ids, &level, &id, 0); in log_nth_level()
|
D | test_select_reuseport.c | 498 err = bpf_map_update_elem(tmp_index_ovr_map, &index_zero, in test_syncookie() 573 err = bpf_map_update_elem(reuseport_array, &i, &sk_fds[i], in prepare_sk_fds() 605 err = bpf_map_update_elem(tmp_index_ovr_map, &index_zero, &ovr, in setup_per_test() 657 err = bpf_map_update_elem(outer_map, &index_zero, in test_all()
|
D | test_stacktrace_map.c | 65 bpf_map_update_elem(&stackid_hmap, &key, &val, 0); in oncpu()
|
D | test_stacktrace_build_id.c | 65 bpf_map_update_elem(&stackid_hmap, &key, &val, 0); in oncpu()
|
D | flow_dissector_load.c | 60 bpf_map_update_elem(prog_array_fd, &i, &fd, BPF_ANY); in load_and_attach_program()
|
D | get_cgroup_id_user.c | 90 bpf_map_update_elem(pidmap_fd, &key, &pid, 0); in main()
|
D | test_tcp_estats.c | 244 bpf_map_update_elem(&ev_record_map, &key, &ev, BPF_ANY); in send_basic_event()
|
D | bpf_helpers.h | 14 static int (*bpf_map_update_elem)(void *map, void *key, void *value, variable
|
D | test_xdp_noinline.c | 606 bpf_map_update_elem(lru_map, &pckt->flow, &new_dst_lru, 0); in get_packet_dst()
|
D | test_btf.c | 2692 bpf_map_update_elem(map_fd, &key, mapv, 0); in do_test_pprint()
|
D | test_verifier.c | 14014 if (bpf_map_update_elem(mfd, &p1key, &p1fd, BPF_ANY) < 0) in create_prog_array() 14016 if (bpf_map_update_elem(mfd, &p2key, &p2fd, BPF_ANY) < 0) in create_prog_array()
|
/external/strace/ |
D | ChangeLog | 13504 (bpf_map_update_elem): Use PRINT_FIELD_FD, PRINT_FIELD_X, and 21433 * bpf.c (bpf_map_create, bpf_map_update_elem, bpf_map_delete_elem, 29411 * bpf.c (bpf_map_update_elem): Print attr.flags using printxval64.
|