Home
last modified time | relevance | path

Searched refs:ASSERT_OK (Results 1 – 25 of 291) sorted by relevance

12345678910>>...12

/tools/testing/selftests/bpf/prog_tests/
A Dmap_kptr.c26 ASSERT_OK(ret, "test_map_kptr_ref1 refcount"); in test_map_kptr_success()
29 ASSERT_OK(ret, "test_map_kptr_ref2 refcount"); in test_map_kptr_success()
53 ASSERT_OK(ret, "array_map update"); in test_map_kptr_success()
61 ASSERT_OK(ret, "pcpu_array_map update"); in test_map_kptr_success()
68 ASSERT_OK(ret, "hash_map delete"); in test_map_kptr_success()
75 ASSERT_OK(ret, "pcpu_hash_map delete"); in test_map_kptr_success()
82 ASSERT_OK(ret, "hash_malloc_map delete"); in test_map_kptr_success()
96 ASSERT_OK(ret, "lru_hash_map delete"); in test_map_kptr_success()
103 ASSERT_OK(ret, "lru_pcpu_hash_map delete"); in test_map_kptr_success()
150 ASSERT_OK(kern_sync_rcu(), "sync rcu"); in serial_test_map_kptr()
[all …]
A Darg_parsing.c33 ASSERT_OK(parse_test_list("arg_parsing", &set, true), "parsing"); in test_parse_test_list()
42 ASSERT_OK(parse_test_list("arg_parsing,bpf_cookie", &set, true), in test_parse_test_list()
50 ASSERT_OK(strcmp("arg_parsing", set.tests[0].name), "test name"); in test_parse_test_list()
51 ASSERT_OK(strcmp("bpf_cookie", set.tests[1].name), "test name"); in test_parse_test_list()
54 ASSERT_OK(parse_test_list("arg_parsing/arg_parsing,bpf_cookie", in test_parse_test_list()
66 ASSERT_OK(strcmp("arg_parsing", set.tests[0].subtests[0]), in test_parse_test_list()
84 ASSERT_OK(strcmp("arg_parsing", set.tests[0].subtests[0]), in test_parse_test_list()
109 ASSERT_OK(strcmp("t", set.tests[0].name), "test name"); in test_parse_test_list()
144 if (!ASSERT_OK(ferror(fp), "prepare tmp")) in test_parse_test_list_file()
154 ASSERT_OK(strcmp("testA", set.tests[1].name), "test 1 name"); in test_parse_test_list_file()
[all …]
A Dlinked_list.c170 ASSERT_OK(ret, "map_list_push_pop"); in test_linked_list_success()
176 ASSERT_OK(ret, "inner_map_list_push_pop"); in test_linked_list_success()
182 ASSERT_OK(ret, "global_list_push_pop"); in test_linked_list_success()
194 ASSERT_OK(ret, "global_list_array_push_pop"); in test_linked_list_success()
204 ASSERT_OK(ret, "map_list_push_pop_multiple"); in test_linked_list_success()
226 ASSERT_OK(ret, "map_list_in_list"); in test_linked_list_success()
232 ASSERT_OK(ret, "inner_map_list_in_list"); in test_linked_list_success()
238 ASSERT_OK(ret, "global_list_in_list"); in test_linked_list_success()
300 if (!ASSERT_OK(err, "btf__add_field bar::a")) in list_and_rb_node_same_struct()
303 if (!ASSERT_OK(err, "btf__add_field bar::c")) in list_and_rb_node_same_struct()
[all …]
A Dtest_bpffs.c40 if (!ASSERT_OK(err, "unshare")) in fn()
44 if (!ASSERT_OK(err, "mount /")) in fn()
55 if (!ASSERT_OK(err, "mount tmpfs")) in fn()
59 if (!ASSERT_OK(err, "mkdir " TDIR "/fs1")) in fn()
62 if (!ASSERT_OK(err, "mkdir " TDIR "/fs2")) in fn()
80 if (!ASSERT_OK(err, "creating " TDIR "/fs1/a")) in fn()
93 if (!ASSERT_OK(err, "pin map")) in fn()
99 if (!ASSERT_OK(err, "stat(" TDIR "/fs1/a)")) in fn()
105 if (!ASSERT_OK(err, "stat(" TDIR "/fs1/b)")) in fn()
115 if (!ASSERT_OK(err, "stat(" TDIR "/fs1/map)")) in fn()
[all …]
A Dbpf_obj_pinning.c56 if (!ASSERT_OK(err, "fs_create")) in bpf_obj_pinning_detached()
83 if (!ASSERT_OK(err, "map_pin")) in bpf_obj_pinning_detached()
96 ASSERT_OK(err, "map_update"); in bpf_obj_pinning_detached()
101 ASSERT_OK(err, "map_lookup"); in bpf_obj_pinning_detached()
111 ASSERT_OK(close(fs_fd), "close_fs_fd"); in bpf_obj_pinning_detached()
156 ASSERT_OK(err, "obj_pin"); in validate_pin()
170 ASSERT_OK(err, "map_update"); in validate_pin()
175 ASSERT_OK(err, "map_lookup"); in validate_pin()
194 if (!ASSERT_OK(err, "pin_map")) in validate_get()
231 ASSERT_OK(err, "map_update"); in validate_get()
[all …]
A Dlocal_kptr_stash.c24 ASSERT_OK(ret, "local_kptr_stash_add_nodes run"); in test_local_kptr_stash_simple()
25 ASSERT_OK(opts.retval, "local_kptr_stash_add_nodes retval"); in test_local_kptr_stash_simple()
45 ASSERT_OK(ret, "local_kptr_stash_add_plain run"); in test_local_kptr_stash_plain()
46 ASSERT_OK(opts.retval, "local_kptr_stash_add_plain retval"); in test_local_kptr_stash_plain()
66 ASSERT_OK(ret, "local_kptr_stash_add_local_with_root run"); in test_local_kptr_stash_local_with_root()
87 ASSERT_OK(ret, "local_kptr_stash_add_nodes run"); in test_local_kptr_stash_unstash()
91 ASSERT_OK(ret, "local_kptr_stash_add_nodes run"); in test_local_kptr_stash_unstash()
113 ASSERT_OK(ret, "refcount_acquire_without_unstash run"); in test_refcount_acquire_without_unstash()
117 ASSERT_OK(ret, "stash_refcounted_node run"); in test_refcount_acquire_without_unstash()
118 ASSERT_OK(opts.retval, "stash_refcounted_node retval"); in test_refcount_acquire_without_unstash()
[all …]
A Dexceptions.c33 if (!ASSERT_OK(ret, "exceptions__load")) in test_exceptions_success()
44 ASSERT_OK(ret, #_prog " prog run ret"); \ in test_exceptions_success()
126 if (!ASSERT_OK(bpf_program__set_attach_target(prog, in test_exceptions_success()
136 if (!ASSERT_OK(bpf_program__set_attach_target(prog, in test_exceptions_success()
146 if (!ASSERT_OK(bpf_program__set_attach_target(prog, in test_exceptions_success()
156 if (!ASSERT_OK(bpf_program__set_attach_target(prog, in test_exceptions_success()
166 if (!ASSERT_OK(bpf_program__set_attach_target(prog, in test_exceptions_success()
176 if (!ASSERT_OK(bpf_program__set_attach_target(prog, in test_exceptions_success()
186 if (!ASSERT_OK(bpf_program__set_attach_target(prog, in test_exceptions_success()
197 if (!ASSERT_OK(bpf_program__set_attach_target(prog, in test_exceptions_success()
[all …]
A Darena_atomics.c14 if (!ASSERT_OK(err, "test_run_opts err")) in test_add()
16 if (!ASSERT_OK(topts.retval, "test_run_opts retval")) in test_add()
39 if (!ASSERT_OK(err, "test_run_opts err")) in test_sub()
64 if (!ASSERT_OK(err, "test_run_opts err")) in test_and()
81 if (!ASSERT_OK(err, "test_run_opts err")) in test_or()
98 if (!ASSERT_OK(err, "test_run_opts err")) in test_xor()
115 if (!ASSERT_OK(err, "test_run_opts err")) in test_cmpxchg()
137 if (!ASSERT_OK(err, "test_run_opts err")) in test_xchg()
157 if (!ASSERT_OK(err, "test_run_opts err")) in test_uaf()
180 if (!ASSERT_OK(err, "test_run_opts err")) in test_load_acquire()
[all …]
A Dcgroup_tcp_skb.c72 if (!ASSERT_OK(err, "join_root_cgroup")) in talk_to_cgroup()
78 if (!ASSERT_OK(err, "join_cgroup")) in talk_to_cgroup()
90 if (!ASSERT_OK(err, "connect_fd_to_fd")) in talk_to_cgroup()
96 if (!ASSERT_OK(err, "join_root_cgroup")) in talk_to_cgroup()
119 if (!ASSERT_OK(err, "join_root_cgroup")) in talk_to_outside()
125 if (!ASSERT_OK(err, "join_cgroup")) in talk_to_outside()
131 if (!ASSERT_OK(err, "join_root_cgroup")) in talk_to_outside()
140 if (!ASSERT_OK(err, "connect_fd_to_fd")) in talk_to_outside()
198 if (!ASSERT_OK(err, "close peer_fd")) in close_connection()
266 if (!ASSERT_OK(err, "talk_to_cgroup")) in test_cgroup_tcp_skb()
[all …]
A Dcgroup_preorder.c24 if (!ASSERT_OK(err, "setsockopt")) in run_getsockopt_test()
34 if (!ASSERT_OK(err, "bpf_prog_attach_opts-child")) in run_getsockopt_test()
42 if (!ASSERT_OK(err, "bpf_prog_attach_opts-child_2")) in run_getsockopt_test()
47 if (!ASSERT_OK(err, "getsockopt")) in run_getsockopt_test()
66 if (!ASSERT_OK(err, "bpf_prog_attach_opts-parent")) in run_getsockopt_test()
74 if (!ASSERT_OK(err, "bpf_prog_attach_opts-parent_2")) in run_getsockopt_test()
78 if (!ASSERT_OK(err, "getsockopt")) in run_getsockopt_test()
89 ASSERT_OK(bpf_prog_detach2(prog_p2_fd, cg_parent, prog_p2_atype), in run_getsockopt_test()
92 ASSERT_OK(bpf_prog_detach2(prog_p_fd, cg_parent, prog_p_atype), in run_getsockopt_test()
95 ASSERT_OK(bpf_prog_detach2(prog_c2_fd, cg_child, prog_c2_atype), in run_getsockopt_test()
[all …]
A Dmigrate_reuseport.c168 if (!ASSERT_OK(err, "lseek")) in setup_fastopen()
241 if (!ASSERT_OK(err, "bind")) in start_servers()
248 if (!ASSERT_OK(err, in start_servers()
270 if (!ASSERT_OK(err, "listen")) in start_servers()
302 if (!ASSERT_OK(err, in start_clients()
310 if (!ASSERT_OK(err, "connect")) in start_clients()
382 if (!ASSERT_OK(err, "listen")) in migrate_dance()
391 if (!ASSERT_OK(err, "shutdown")) in migrate_dance()
396 if (!ASSERT_OK(err, "listen")) in migrate_dance()
401 if (!ASSERT_OK(err, "shutdown")) in migrate_dance()
[all …]
A Dsockmap_ktls.c24 if (!ASSERT_OK(err, "setsockopt(TCP_ULP)")) in init_ktls_pairs()
55 if (!ASSERT_OK(err, "create_pair()")) in create_ktls_pairs()
91 if (!ASSERT_OK(err, "bind")) in test_sockmap_ktls_update_fails_when_sock_has_ulp()
95 if (!ASSERT_OK(err, "getsockname")) in test_sockmap_ktls_update_fails_when_sock_has_ulp()
99 if (!ASSERT_OK(err, "connect")) in test_sockmap_ktls_update_fails_when_sock_has_ulp()
146 if (!ASSERT_OK(err, "send(msg)")) in test_sockmap_ktls_offload()
150 if (!ASSERT_OK(err, "recv(msg)") || in test_sockmap_ktls_offload()
179 if (!ASSERT_OK(err, "create_pair()")) in test_sockmap_ktls_tx_cork()
220 if (!ASSERT_OK(err, "recv(msg)") || in test_sockmap_ktls_tx_cork()
260 if (!ASSERT_OK(err, "create_pair()")) in test_sockmap_ktls_tx_no_buf()
[all …]
A Drefcounted_kptr.c35 ASSERT_OK(ret, "rbtree_wrong_owner_remove_fail_a1"); in test_refcounted_kptr_wrong_owner()
36 ASSERT_OK(opts.retval, "rbtree_wrong_owner_remove_fail_a1 retval"); in test_refcounted_kptr_wrong_owner()
39 ASSERT_OK(ret, "rbtree_wrong_owner_remove_fail_b"); in test_refcounted_kptr_wrong_owner()
40 ASSERT_OK(opts.retval, "rbtree_wrong_owner_remove_fail_b retval"); in test_refcounted_kptr_wrong_owner()
43 ASSERT_OK(ret, "rbtree_wrong_owner_remove_fail_a2"); in test_refcounted_kptr_wrong_owner()
44 ASSERT_OK(opts.retval, "rbtree_wrong_owner_remove_fail_a2 retval"); in test_refcounted_kptr_wrong_owner()
A Dres_spin_lock.c29 ASSERT_OK(err, "test_run"); in spin_lock_thread()
30 ASSERT_OK(topts.retval, "test_run retval"); in spin_lock_thread()
60 ASSERT_OK(err, "error"); in test_res_spin_lock_success()
61 ASSERT_OK(topts.retval, "retval"); in test_res_spin_lock_success()
65 ASSERT_OK(err, "error"); in test_res_spin_lock_success()
66 ASSERT_OK(topts.retval, "retval"); in test_res_spin_lock_success()
75 if (!ASSERT_OK(err, "pthread_create")) in test_res_spin_lock_success()
89 if (!ASSERT_OK(pthread_join(thread_id[i], &ret), "pthread_join")) in test_res_spin_lock_success()
96 ASSERT_OK(err, "err"); in test_res_spin_lock_success()
A Dlookup_and_delete.c20 if (!ASSERT_OK(err, "bpf_map_update_elem")) in fill_values()
37 if (!ASSERT_OK(err, "bpf_map_update_elem")) in fill_values_percpu()
55 if (!ASSERT_OK(err, "bpf_map__set_type")) in setup_prog()
59 if (!ASSERT_OK(err, "bpf_map__set_max_entries")) in setup_prog()
63 if (!ASSERT_OK(err, "test_lookup_and_delete__load")) in setup_prog()
110 if (!ASSERT_OK(err, "fill_values")) in test_lookup_and_delete_hash()
146 if (!ASSERT_OK(err, "fill_values_percpu")) in test_lookup_and_delete_percpu_hash()
186 if (!ASSERT_OK(err, "fill_values")) in test_lookup_and_delete_lru_hash()
192 if (!ASSERT_OK(err, "trigger_tp")) in test_lookup_and_delete_lru_hash()
232 if (!ASSERT_OK(err, "fill_values_percpu")) in test_lookup_and_delete_lru_percpu_hash()
[all …]
A Dcgroup_storage.c47 if (!ASSERT_OK(setup_network(&ns), "setup network")) in test_cgroup_storage()
61 ASSERT_OK(err, "first ping"); in test_cgroup_storage()
65 ASSERT_OK(err, "third ping"); in test_cgroup_storage()
69 if (!ASSERT_OK(err, "get first key")) in test_cgroup_storage()
73 if (!ASSERT_OK(err, "first packet count read")) in test_cgroup_storage()
80 if (!ASSERT_OK(err, "increment packet counter")) in test_cgroup_storage()
83 ASSERT_OK(err, "fourth ping"); in test_cgroup_storage()
87 ASSERT_OK(err, "sixth ping"); in test_cgroup_storage()
A Dtailcalls.c69 ASSERT_OK(err, "tailcall"); in test_tailcall_1()
78 ASSERT_OK(err, "tailcall"); in test_tailcall_1()
98 ASSERT_OK(err, "tailcall"); in test_tailcall_1()
122 ASSERT_OK(err, "tailcall"); in test_tailcall_1()
131 ASSERT_OK(err, "tailcall"); in test_tailcall_1()
140 ASSERT_OK(err, "tailcall"); in test_tailcall_1()
204 ASSERT_OK(err, "tailcall"); in test_tailcall_2()
213 ASSERT_OK(err, "tailcall"); in test_tailcall_2()
222 ASSERT_OK(err, "tailcall"); in test_tailcall_2()
326 ASSERT_OK(err, "tailcall"); in test_tailcall_count()
[all …]
A Drbtree.c28 ASSERT_OK(ret, "rbtree_add_nodes run"); in test_rbtree_add_nodes()
29 ASSERT_OK(opts.retval, "rbtree_add_nodes retval"); in test_rbtree_add_nodes()
50 ASSERT_OK(ret, "rbtree_add_nodes_nested run"); in test_rbtree_add_nodes_nested()
51 ASSERT_OK(opts.retval, "rbtree_add_nodes_nested retval"); in test_rbtree_add_nodes_nested()
72 ASSERT_OK(ret, "rbtree_add_and_remove"); in test_rbtree_add_and_remove()
73 ASSERT_OK(opts.retval, "rbtree_add_and_remove retval"); in test_rbtree_add_and_remove()
94 ASSERT_OK(ret, "rbtree_add_and_remove_array"); in test_rbtree_add_and_remove_array()
95 ASSERT_OK(opts.retval, "rbtree_add_and_remove_array retval"); in test_rbtree_add_and_remove_array()
115 ASSERT_OK(ret, "rbtree_first_and_remove"); in test_rbtree_first_and_remove()
116 ASSERT_OK(opts.retval, "rbtree_first_and_remove retval"); in test_rbtree_first_and_remove()
[all …]
A Dxdp_bonding.c354 if (!ASSERT_OK(err, "add interface to map_all")) in test_xdp_bonding_redirect_multi()
404 if (!ASSERT_OK(err, "set veth master")) in test_xdp_bonding_attach()
442 if (!ASSERT_OK(err, "set vxlan master")) in test_xdp_bonding_attach()
476 if (!ASSERT_OK(err, "set bond_nest1 master")) in test_xdp_bonding_nested()
483 if (!ASSERT_OK(err, "set bond_nest2 master")) in test_xdp_bonding_nested()
511 if (!ASSERT_OK(err, "bond bpf_xdp_query")) in test_xdp_bonding_features()
534 if (!ASSERT_OK(err, "bond bpf_xdp_query")) in test_xdp_bonding_features()
554 if (!ASSERT_OK(err, "bond bpf_xdp_query")) in test_xdp_bonding_features()
569 if (!ASSERT_OK(err, "bond bpf_xdp_query")) in test_xdp_bonding_features()
586 if (!ASSERT_OK(err, "bond bpf_xdp_query")) in test_xdp_bonding_features()
[all …]
A Dxdp_devmap_attach.c47 if (!ASSERT_OK(err, "bpf_prog_get_info_by_fd")) in test_xdp_with_devmap_helpers()
52 ASSERT_OK(err, "Add program to devmap entry"); in test_xdp_with_devmap_helpers()
55 ASSERT_OK(err, "Read devmap entry"); in test_xdp_with_devmap_helpers()
66 ASSERT_OK(err, "XDP test run"); in test_xdp_with_devmap_helpers()
72 ASSERT_OK(err, "XDP program detach"); in test_xdp_with_devmap_helpers()
136 ASSERT_OK(err, "Read devmap entry"); in test_xdp_with_devmap_frags_helpers()
199 ASSERT_OK(err, "Read devmap entry"); in test_xdp_with_devmap_helpers_veth()
205 if (!ASSERT_OK(err, "Attach of dummy XDP")) in test_xdp_with_devmap_helpers_veth()
216 ASSERT_OK(err, "XDP test run"); in test_xdp_with_devmap_helpers_veth()
222 ASSERT_OK(err, "XDP program detach"); in test_xdp_with_devmap_helpers_veth()
[all …]
A Datomics.c15 if (!ASSERT_OK(err, "test_run_opts err")) in test_add()
17 if (!ASSERT_OK(topts.retval, "test_run_opts retval")) in test_add()
40 if (!ASSERT_OK(err, "test_run_opts err")) in test_sub()
42 if (!ASSERT_OK(topts.retval, "test_run_opts retval")) in test_sub()
65 if (!ASSERT_OK(err, "test_run_opts err")) in test_and()
67 if (!ASSERT_OK(topts.retval, "test_run_opts retval")) in test_and()
87 if (!ASSERT_OK(err, "test_run_opts err")) in test_or()
89 if (!ASSERT_OK(topts.retval, "test_run_opts retval")) in test_or()
109 if (!ASSERT_OK(err, "test_run_opts err")) in test_xor()
131 if (!ASSERT_OK(err, "test_run_opts err")) in test_cmpxchg()
[all …]
A Dmap_init.c31 if (!ASSERT_OK(err, "bpf_map_update_elem")) in map_populate()
49 if (!ASSERT_OK(err, "bpf_map__set_type")) in setup()
53 if (!ASSERT_OK(err, "bpf_map__set_max_entries")) in setup()
57 if (!ASSERT_OK(err, "skel_load")) in setup()
65 if (!ASSERT_OK(err, "map_populate")) in setup()
89 if (!ASSERT_OK(test_map_init__attach(skel), "skel_attach")) in prog_run_insert_elem()
144 if (!ASSERT_OK(err, "bpf_map_delete_elem")) in test_pcpu_map_init()
149 if (!ASSERT_OK(err, "prog_run_insert_elem")) in test_pcpu_map_init()
154 if (!ASSERT_OK(err, "bpf_map_lookup_elem")) in test_pcpu_map_init()
186 if (!ASSERT_OK(err, "prog_run_insert_elem")) in test_pcpu_lru_map_init()
[all …]
A Drecursive_attach.c65 if (!ASSERT_OK(err, "bpf_program__set_attach_target")) in test_recursive_fentry_chain()
71 if (!ASSERT_OK(err, "fentry_recursive__load")) in test_recursive_fentry_chain()
76 if (!ASSERT_OK(err, "fentry_recursive__attach")) in test_recursive_fentry_chain()
131 if (!ASSERT_OK(err, "bpf_program__set_attach_target")) in test_fentry_attach_btf_presence()
135 if (!ASSERT_OK(err, "fentry_recursive__load")) in test_fentry_attach_btf_presence()
163 if (!ASSERT_OK(err, "fentry_target test_run")) in fentry_target_test_run()
185 if (!ASSERT_OK(err, "bpf_program__set_attach_target")) in test_fentry_attach_stress()
196 if (!ASSERT_OK(err, "bpf_program__set_attach_target")) in test_fentry_attach_stress()
200 if (!ASSERT_OK(err, "fentry_recursive__load")) in test_fentry_attach_stress()
204 if (!ASSERT_OK(err, "fentry_recursive__attach")) in test_fentry_attach_stress()
[all …]
A Dpercpu_alloc.c26 if (!ASSERT_OK(err, "percpu_alloc_array__load")) in test_array()
30 if (!ASSERT_OK(err, "percpu_alloc_array__attach")) in test_array()
35 ASSERT_OK(err, "test_run array_map 1-4"); in test_array()
59 if (!ASSERT_OK(err, "percpu_alloc_array__load")) in test_array_sleepable()
63 if (!ASSERT_OK(err, "percpu_alloc_array__attach")) in test_array_sleepable()
68 ASSERT_OK(err, "test_run array_map_10"); in test_array_sleepable()
94 if (!ASSERT_OK(err, "percpu_alloc_cgrp_local_storage__load")) in test_cgrp_local_storage()
98 if (!ASSERT_OK(err, "percpu_alloc_cgrp_local_storage__attach")) in test_cgrp_local_storage()
103 ASSERT_OK(err, "test_run cgrp_local_storage 1-3"); in test_cgrp_local_storage()
A Dsockmap_basic.c45 if (!ASSERT_OK(err, "connect")) in connected_socket_v4()
78 if (!ASSERT_OK(err, "lookup_elem(src)")) in compare_cookies()
82 if (!ASSERT_OK(err, "lookup_elem(dst)")) in compare_cookies()
104 if (!ASSERT_OK(err, "bpf_map_update")) in test_sockmap_create_update_free()
122 if (!ASSERT_OK(err, "create_pair")) in test_sockmap_vsock_delete_on_close()
132 if (!ASSERT_OK(err, "create_pair")) in test_sockmap_vsock_delete_on_close()
158 if (!ASSERT_OK(err, "bpf_prog_attach")) in test_skmsg_helpers()
261 if (!ASSERT_OK(err, "test_run")) in test_sockmap_update()
324 if (!ASSERT_OK(err, "map_update")) in test_sockmap_copy()
618 if (!ASSERT_OK(err, "create_pair()")) in test_sockmap_skb_verdict_change_tail()
[all …]

Completed in 2492 milliseconds

12345678910>>...12