Home
last modified time | relevance | path

Searched refs:bpf_map_update_elem (Results 1 – 21 of 21) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_lru_map.c123 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 …]
Dtest_maps.c61 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 …]
Dtest_tcpbpf_kern.c41 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()
Dtest_lpm_map.c252 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 …]
Dtest_sockmap.c844 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 …]
Dsocket_cookie_prog.c27 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()
Dtest_progs.c150 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 …]
Dtest_cgroup_storage.c113 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()
Dtest_select_reuseport_kern.c173 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()
Dtest_skb_cgroup_id_kern.c28 bpf_map_update_elem(&cgroup_ids, &level, &id, 0); in log_nth_level()
Dtest_select_reuseport.c498 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()
Dtest_stacktrace_map.c65 bpf_map_update_elem(&stackid_hmap, &key, &val, 0); in oncpu()
Dtest_stacktrace_build_id.c65 bpf_map_update_elem(&stackid_hmap, &key, &val, 0); in oncpu()
Dflow_dissector_load.c60 bpf_map_update_elem(prog_array_fd, &i, &fd, BPF_ANY); in load_and_attach_program()
Dget_cgroup_id_user.c90 bpf_map_update_elem(pidmap_fd, &key, &pid, 0); in main()
Dtest_tcp_estats.c244 bpf_map_update_elem(&ev_record_map, &key, &ev, BPF_ANY); in send_basic_event()
Dbpf_helpers.h14 static int (*bpf_map_update_elem)(void *map, void *key, void *value, variable
Dtest_xdp_noinline.c606 bpf_map_update_elem(lru_map, &pckt->flow, &new_dst_lru, 0); in get_packet_dst()
Dtest_btf.c2692 bpf_map_update_elem(map_fd, &key, mapv, 0); in do_test_pprint()
Dtest_verifier.c14014 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/
DChangeLog13504 (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.