Home
last modified time | relevance | path

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

1234567891011

/linux/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 Dlinked_list.c169 ASSERT_OK(ret, "map_list_push_pop"); in test_linked_list_success()
175 ASSERT_OK(ret, "inner_map_list_push_pop"); in test_linked_list_success()
181 ASSERT_OK(ret, "global_list_push_pop"); in test_linked_list_success()
193 ASSERT_OK(ret, "global_list_array_push_pop"); in test_linked_list_success()
203 ASSERT_OK(ret, "map_list_push_pop_multiple"); in test_linked_list_success()
225 ASSERT_OK(ret, "map_list_in_list"); in test_linked_list_success()
231 ASSERT_OK(ret, "inner_map_list_in_list"); in test_linked_list_success()
237 ASSERT_OK(ret, "global_list_in_list"); in test_linked_list_success()
299 if (!ASSERT_OK(err, "btf__add_field bar::a")) in list_and_rb_node_same_struct()
302 if (!ASSERT_OK(err, "btf__add_field bar::c")) in list_and_rb_node_same_struct()
[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 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 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 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 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 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 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()
41 if (!ASSERT_OK(topts.retval, "test_run_opts retval")) in test_sub()
64 if (!ASSERT_OK(err, "test_run_opts err")) in test_and()
66 if (!ASSERT_OK(topts.retval, "test_run_opts retval")) 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()
[all …]
A Dsockmap_basic.c44 if (!ASSERT_OK(err, "connect")) in connected_socket_v4()
77 if (!ASSERT_OK(err, "lookup_elem(src)")) in compare_cookies()
81 if (!ASSERT_OK(err, "lookup_elem(dst)")) in compare_cookies()
103 if (!ASSERT_OK(err, "bpf_map_update")) in test_sockmap_create_update_free()
124 if (!ASSERT_OK(err, "bpf_prog_attach")) in test_skmsg_helpers()
128 if (!ASSERT_OK(err, "bpf_prog_detach2")) in test_skmsg_helpers()
186 if (!ASSERT_OK(err, "bpf_link_update")) in test_skmsg_helpers_with_link()
227 if (!ASSERT_OK(err, "test_run")) in test_sockmap_update()
290 if (!ASSERT_OK(err, "map_update")) in test_sockmap_copy()
347 if (!ASSERT_OK(err, "bpf_prog_attach")) in test_sockmap_skb_verdict_attach()
[all …]
A Dtailcalls.c68 ASSERT_OK(err, "tailcall"); in test_tailcall_1()
77 ASSERT_OK(err, "tailcall"); in test_tailcall_1()
97 ASSERT_OK(err, "tailcall"); in test_tailcall_1()
121 ASSERT_OK(err, "tailcall"); in test_tailcall_1()
130 ASSERT_OK(err, "tailcall"); in test_tailcall_1()
139 ASSERT_OK(err, "tailcall"); in test_tailcall_1()
203 ASSERT_OK(err, "tailcall"); in test_tailcall_2()
212 ASSERT_OK(err, "tailcall"); in test_tailcall_2()
221 ASSERT_OK(err, "tailcall"); in test_tailcall_2()
325 ASSERT_OK(err, "tailcall"); in test_tailcall_count()
[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 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 Drbtree.c27 ASSERT_OK(ret, "rbtree_add_nodes run"); in test_rbtree_add_nodes()
28 ASSERT_OK(opts.retval, "rbtree_add_nodes retval"); in test_rbtree_add_nodes()
49 ASSERT_OK(ret, "rbtree_add_nodes_nested run"); in test_rbtree_add_nodes_nested()
50 ASSERT_OK(opts.retval, "rbtree_add_nodes_nested retval"); in test_rbtree_add_nodes_nested()
71 ASSERT_OK(ret, "rbtree_add_and_remove"); in test_rbtree_add_and_remove()
72 ASSERT_OK(opts.retval, "rbtree_add_and_remove retval"); in test_rbtree_add_and_remove()
93 ASSERT_OK(ret, "rbtree_add_and_remove_array"); in test_rbtree_add_and_remove_array()
94 ASSERT_OK(opts.retval, "rbtree_add_and_remove_array retval"); in test_rbtree_add_and_remove_array()
114 ASSERT_OK(ret, "rbtree_first_and_remove"); in test_rbtree_first_and_remove()
115 ASSERT_OK(opts.retval, "rbtree_first_and_remove retval"); in test_rbtree_first_and_remove()
[all …]
A Dsockmap_ktls.c22 if (!ASSERT_OK(err, "listen")) in tcp_server()
47 if (!ASSERT_OK(err, "getsockopt")) in test_sockmap_ktls_disconnect_after_delete()
55 if (!ASSERT_OK(err, "connect")) in test_sockmap_ktls_disconnect_after_delete()
59 if (!ASSERT_OK(err, "bpf_map_update_elem")) in test_sockmap_ktls_disconnect_after_delete()
63 if (!ASSERT_OK(err, "setsockopt(TCP_ULP)")) in test_sockmap_ktls_disconnect_after_delete()
67 if (!ASSERT_OK(err, "bpf_map_delete_elem")) in test_sockmap_ktls_disconnect_after_delete()
71 ASSERT_OK(err, "disconnect"); in test_sockmap_ktls_disconnect_after_delete()
106 if (!ASSERT_OK(err, "bind")) in test_sockmap_ktls_update_fails_when_sock_has_ulp()
110 if (!ASSERT_OK(err, "getsockname")) in test_sockmap_ktls_update_fails_when_sock_has_ulp()
114 if (!ASSERT_OK(err, "connect")) in test_sockmap_ktls_update_fails_when_sock_has_ulp()
[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 Dtc_opts.c54 if (!ASSERT_OK(err, "prog_query")) in serial_test_tc_opts_basic()
95 ASSERT_OK(err, "prog_detach_eg"); in serial_test_tc_opts_basic()
102 ASSERT_OK(err, "prog_detach_in"); in serial_test_tc_opts_basic()
235 ASSERT_OK(err, "prog_detach"); in test_tc_opts_before_target()
240 ASSERT_OK(err, "prog_detach"); in test_tc_opts_before_target()
245 ASSERT_OK(err, "prog_detach"); in test_tc_opts_before_target()
250 ASSERT_OK(err, "prog_detach"); in test_tc_opts_before_target()
387 ASSERT_OK(err, "prog_detach"); in test_tc_opts_after_target()
406 ASSERT_OK(err, "prog_detach"); in test_tc_opts_after_target()
424 ASSERT_OK(err, "prog_detach"); in test_tc_opts_after_target()
[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 Dxdp_link.c33 if (!ASSERT_OK(err, "fd_info1")) in serial_test_xdp_link()
39 if (!ASSERT_OK(err, "fd_info2")) in serial_test_xdp_link()
45 if (!ASSERT_OK(err, "fd_attach")) in serial_test_xdp_link()
50 if (!ASSERT_OK(err, "id1_check_err") || !ASSERT_EQ(id0, id1, "id1_check_val")) in serial_test_xdp_link()
66 if (!ASSERT_OK(err, "prog_detach")) in serial_test_xdp_link()
77 if (!ASSERT_OK(err, "id1_check_err") || !ASSERT_EQ(id0, id1, "id1_check_val")) in serial_test_xdp_link()
113 if (!ASSERT_OK(err, "id2_check_err") || !ASSERT_EQ(id0, id2, "id2_check_val")) in serial_test_xdp_link()
118 if (!ASSERT_OK(err, "link_upd")) in serial_test_xdp_link()
124 if (!ASSERT_OK(err, "link_info")) in serial_test_xdp_link()
137 if (!ASSERT_OK(err, "link_detach")) in serial_test_xdp_link()
[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 Dcrypto_sanity.c108 if (!ASSERT_OK(err, "AF_ALG init fail")) in test_crypto_sanity()
125 if (!ASSERT_OK(err, "skb_crypto_setup") || in test_crypto_sanity()
126 !ASSERT_OK(opts.retval, "skb_crypto_setup retval")) in test_crypto_sanity()
133 if (!ASSERT_OK(err, "create qdisc hook")) in test_crypto_sanity()
139 if (!ASSERT_OK(err, "make_sockaddr")) in test_crypto_sanity()
144 if (!ASSERT_OK(err, "attach encrypt filter")) in test_crypto_sanity()
157 if (!ASSERT_OK(skel->bss->status, "encrypt status")) in test_crypto_sanity()
164 if (!ASSERT_OK(err, "bpf_tc_detach encrypt")) in test_crypto_sanity()
169 if (!ASSERT_OK(err, "attach decrypt filter")) in test_crypto_sanity()
182 if (!ASSERT_OK(skel->bss->status, "decrypt status")) in test_crypto_sanity()
[all …]
A Dtask_local_storage.c29 if (!ASSERT_OK(err, "skel_attach")) in test_sys_enter_exit()
54 if (!ASSERT_OK(err, "skel_attach")) in test_exit_creds()
97 if (!ASSERT_OK(err, "skel_attach")) in test_recursion()
111 ASSERT_OK(err, "lookup map_a"); in test_recursion()
117 ASSERT_OK(err, "lookup map_b"); in test_recursion()
123 ASSERT_OK(err, "get prog info"); in test_recursion()
129 ASSERT_OK(err, "get prog info"); in test_recursion()
179 if (!ASSERT_OK(err, "getaffinity")) in test_nodeadlock()
182 if (!ASSERT_OK(err, "setaffinity")) in test_nodeadlock()
198 ASSERT_OK(err, "attach prog"); in test_nodeadlock()
[all …]

Completed in 48 milliseconds

1234567891011