Home
last modified time | relevance | path

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

12345678

/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A Dlinked_list.c175 ASSERT_OK(ret, "map_list_push_pop"); in test_linked_list_success()
181 ASSERT_OK(ret, "inner_map_list_push_pop"); in test_linked_list_success()
187 ASSERT_OK(ret, "global_list_push_pop"); in test_linked_list_success()
197 ASSERT_OK(ret, "map_list_push_pop_multiple"); in test_linked_list_success()
219 ASSERT_OK(ret, "map_list_in_list"); in test_linked_list_success()
225 ASSERT_OK(ret, "inner_map_list_in_list"); in test_linked_list_success()
231 ASSERT_OK(ret, "global_list_in_list"); in test_linked_list_success()
314 if (!ASSERT_OK(err, "btf__add_field baz::a")) in test_btf()
331 if (!ASSERT_OK(err, "btf__add_field foo::a")) in test_btf()
604 if (!ASSERT_OK(err, "btf__add_field baz:a")) in test_btf()
[all …]
A Dtest_bpffs.c39 if (!ASSERT_OK(err, "unshare")) in fn()
43 if (!ASSERT_OK(err, "mount /")) in fn()
47 if (!ASSERT_OK(err, "umount " TDIR)) in fn()
51 if (!ASSERT_OK(err, "mount tmpfs")) in fn()
55 if (!ASSERT_OK(err, "mkdir " TDIR "/fs1")) in fn()
58 if (!ASSERT_OK(err, "mkdir " TDIR "/fs2")) in fn()
76 if (!ASSERT_OK(err, "creating " TDIR "/fs1/a")) in fn()
89 if (!ASSERT_OK(err, "pin map")) in fn()
95 if (!ASSERT_OK(err, "stat(" TDIR "/fs1/a)")) in fn()
101 if (!ASSERT_OK(err, "stat(" TDIR "/fs1/b)")) in fn()
[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()
65 ASSERT_OK(strcmp("arg_parsing", set.tests[0].name), "test name"); in test_parse_test_list()
66 ASSERT_OK(strcmp("arg_parsing", set.tests[0].subtests[0]), in test_parse_test_list()
68 ASSERT_OK(strcmp("bpf_cookie", set.tests[1].name), "test name"); in test_parse_test_list()
73 ASSERT_OK(parse_test_list("bpf_cookie", &set, true), "parsing"); in test_parse_test_list()
84 ASSERT_OK(strcmp("arg_parsing", set.tests[0].subtests[0]), in test_parse_test_list()
[all …]
A Dmap_kptr.c24 ASSERT_OK(ret, "test_map_kptr_ref refcount"); in test_map_kptr_success()
25 ASSERT_OK(opts.retval, "test_map_kptr_ref retval"); in test_map_kptr_success()
27 ASSERT_OK(ret, "test_map_kptr_ref2 refcount"); in test_map_kptr_success()
35 ASSERT_OK(ret, "array_map update"); in test_map_kptr_success()
38 ASSERT_OK(ret, "array_map update2"); in test_map_kptr_success()
42 ASSERT_OK(ret, "hash_map update"); in test_map_kptr_success()
44 ASSERT_OK(ret, "hash_map delete"); in test_map_kptr_success()
48 ASSERT_OK(ret, "hash_malloc_map update"); in test_map_kptr_success()
50 ASSERT_OK(ret, "hash_malloc_map delete"); in test_map_kptr_success()
54 ASSERT_OK(ret, "lru_hash_map update"); in test_map_kptr_success()
[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 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 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 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()
135 ASSERT_OK(err, "get prog info"); in test_recursion()
185 if (!ASSERT_OK(err, "getaffinity")) in test_nodeadlock()
204 ASSERT_OK(err, "attach prog"); in test_nodeadlock()
[all …]
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 Dsockmap_basic.c39 if (!ASSERT_OK(err, "connect")) in connected_socket_v4()
72 if (!ASSERT_OK(err, "lookup_elem(src)")) in compare_cookies()
76 if (!ASSERT_OK(err, "lookup_elem(dst)")) in compare_cookies()
98 if (!ASSERT_OK(err, "bpf_map_update")) in test_sockmap_create_update_free()
119 if (!ASSERT_OK(err, "bpf_prog_attach")) in test_skmsg_helpers()
123 if (!ASSERT_OK(err, "bpf_prog_detach2")) in test_skmsg_helpers()
159 if (!ASSERT_OK(err, "update_elem(src)")) in test_sockmap_update()
163 if (!ASSERT_OK(err, "test_run")) in test_sockmap_update()
226 if (!ASSERT_OK(err, "map_update")) in test_sockmap_copy()
283 if (!ASSERT_OK(err, "bpf_prog_attach")) in test_sockmap_skb_verdict_attach()
[all …]
A Dtailcalls.c62 ASSERT_OK(err, "tailcall"); in test_tailcall_1()
71 ASSERT_OK(err, "tailcall"); in test_tailcall_1()
91 ASSERT_OK(err, "tailcall"); in test_tailcall_1()
115 ASSERT_OK(err, "tailcall"); in test_tailcall_1()
124 ASSERT_OK(err, "tailcall"); in test_tailcall_1()
133 ASSERT_OK(err, "tailcall"); in test_tailcall_1()
197 ASSERT_OK(err, "tailcall"); in test_tailcall_2()
206 ASSERT_OK(err, "tailcall"); in test_tailcall_2()
215 ASSERT_OK(err, "tailcall"); in test_tailcall_2()
269 ASSERT_OK(err, "tailcall"); in test_tailcall_count()
[all …]
A Dconnect_ping.c56 if (!ASSERT_OK(connect(sock_fd, sa, sa_len), "connect")) in subtest()
68 if (!ASSERT_OK(getsockname(sock_fd, sa, &sa_len), in subtest()
101 if (!ASSERT_OK(unshare(CLONE_NEWNET | CLONE_NEWNS), "unshare")) in test_connect_ping()
107 if (!ASSERT_OK(mount("none", "/sys", NULL, MS_PRIVATE, NULL), in test_connect_ping()
110 if (!ASSERT_OK(mount("sysfs", "/sys", "sysfs", 0, NULL), in test_connect_ping()
113 if (!ASSERT_OK(mount("bpffs", "/sys/fs/bpf", "bpf", 0, NULL), in test_connect_ping()
117 if (!ASSERT_OK(system("ip link set dev lo up"), "lo-up")) in test_connect_ping()
119 if (!ASSERT_OK(system("ip addr add 1.1.1.1 dev lo"), "lo-addr-v4")) in test_connect_ping()
121 if (!ASSERT_OK(system("ip -6 addr add 2001:db8::1 dev lo"), "lo-addr-v6")) in test_connect_ping()
A Dsk_storage_tracing.c32 if (!ASSERT_OK(err, "map_lookup(sk_stg_map)")) in check_sk_stg()
65 if (!ASSERT_OK(err, "map_update(del_sk_stg_map)")) in do_test()
75 if (!ASSERT_OK(err, "read(passive_fd)")) in do_test()
80 if (!ASSERT_OK(err, "read(active_fd)")) in do_test()
89 if (!ASSERT_OK(err, "listen_fd sk_stg")) in do_test()
93 if (!ASSERT_OK(err, "active_fd sk_stg")) in do_test()
97 ASSERT_OK(err, "passive_fd sk_stg"); in do_test()
127 if (!ASSERT_OK(err, "test_sk_storage_tracing__attach")) { in serial_test_sk_storage_tracing()
A Dxdp_bonding.c36 ASSERT_OK(setns(root_netns_fd, CLONE_NEWNET), "restore_root_netns"); in restore_root_netns()
148 if (!ASSERT_OK(system(cmd), cmd)) \ in bonding_setup()
208 ASSERT_OK(system("ip link delete bond1"), "delete bond1"); in bonding_cleanup()
209 ASSERT_OK(system("ip link delete veth1_1"), "delete veth1_1"); in bonding_cleanup()
210 ASSERT_OK(system("ip link delete veth1_2"), "delete veth1_2"); in bonding_cleanup()
211 ASSERT_OK(system("ip netns delete ns_dst"), "delete ns_dst"); in bonding_cleanup()
361 if (!ASSERT_OK(err, "add interface to map_all")) in test_xdp_bonding_redirect_multi()
411 if (!ASSERT_OK(err, "set veth master")) in test_xdp_bonding_attach()
449 if (!ASSERT_OK(err, "set vxlan master")) in test_xdp_bonding_attach()
483 if (!ASSERT_OK(err, "set bond_nest1 master")) in test_xdp_bonding_nested()
[all …]
A Dxdp_adjust_tail.c21 if (!ASSERT_OK(err, "test_xdp_adjust_tail_shrink")) in test_xdp_adjust_tail_shrink()
25 ASSERT_OK(err, "ipv4"); in test_xdp_adjust_tail_shrink()
33 ASSERT_OK(err, "ipv6"); in test_xdp_adjust_tail_shrink()
60 ASSERT_OK(err, "ipv4"); in test_xdp_adjust_tail_grow()
68 ASSERT_OK(err, "ipv6"); in test_xdp_adjust_tail_grow()
127 ASSERT_OK(err, "case-128"); in test_xdp_adjust_tail_grow2()
179 ASSERT_OK(err, "9Kb-10b"); in test_xdp_adjust_frags_tail_shrink()
190 ASSERT_OK(err, "9Kb-4Kb"); in test_xdp_adjust_frags_tail_shrink()
200 ASSERT_OK(err, "9Kb-9Kb"); in test_xdp_adjust_frags_tail_shrink()
243 ASSERT_OK(err, "9Kb+10b"); in test_xdp_adjust_frags_tail_grow()
[all …]
A Dcgroup_hierarchical_stats.c101 if (!ASSERT_OK(err, "mkdir")) in setup_bpffs()
110 ASSERT_OK(rmdir(BPFFS_ATTACH_COUNTERS), "rmdir "BPFFS_ATTACH_COUNTERS); in cleanup_bpffs()
116 ASSERT_OK(umount(BPFFS_ROOT), "unmount bpffs"); in cleanup_bpffs()
125 if (!ASSERT_OK(err, "setup_cgroup_environment")) in setup_cgroups()
200 if (!ASSERT_OK(read_from_file(path, buf, 128), "read cgroup_iter")) in get_attach_counter()
270 ASSERT_OK(err, "pin cgroup_iter"); in setup_cgroup_iter()
289 if (!ASSERT_OK(err, "setup_cgroup_iter")) in setup_progs()
295 if (!ASSERT_OK(err, "setup_cgroup_iter")) in setup_progs()
300 if (!ASSERT_OK(err, "attach")) in setup_progs()
315 ASSERT_OK(remove(path), "remove cgroup_iter pin"); in destroy_progs()
[all …]
A Dxdp_cpumap_attach.c28 if (!ASSERT_OK(err, "Generic attach of program with 8-byte CPUMAP")) in test_xdp_with_cpumap_helpers()
32 ASSERT_OK(err, "XDP program detach"); in test_xdp_with_cpumap_helpers()
37 if (!ASSERT_OK(err, "bpf_prog_get_info_by_fd")) in test_xdp_with_cpumap_helpers()
42 ASSERT_OK(err, "Add program to cpumap entry"); in test_xdp_with_cpumap_helpers()
45 ASSERT_OK(err, "Read cpumap entry"); in test_xdp_with_cpumap_helpers()
89 if (!ASSERT_OK(err, "bpf_prog_get_info_by_fd")) in test_xdp_with_cpumap_frags_helpers()
94 ASSERT_OK(err, "Add program to cpumap entry"); in test_xdp_with_cpumap_frags_helpers()
97 ASSERT_OK(err, "Read cpumap entry"); in test_xdp_with_cpumap_frags_helpers()
A Dsetget_sockopt.c25 if (!ASSERT_OK(unshare(CLONE_NEWNET), "create netns")) in create_netns()
28 if (!ASSERT_OK(system("ip link set dev lo up"), "set lo up")) in create_netns()
31 if (!ASSERT_OK(system("ip link add dev binddevtest1 type veth peer name binddevtest2"), in create_netns()
35 if (!ASSERT_OK(system("ip link set dev binddevtest1 up"), in create_netns()
113 if (!ASSERT_OK(ret, "setsockopt")) in test_ktls()
116 if (!ASSERT_OK(ret, "setsockopt")) in test_ktls()
124 if (!ASSERT_OK(ret, "setsockopt")) in test_ktls()
128 if (!ASSERT_OK(ret, "setsockopt")) in test_ktls()
175 if (!ASSERT_OK(setget_sockopt__load(skel), "load skel")) in test_setget_sockopt()
A Dxdp_devmap_attach.c30 if (!ASSERT_OK(err, "Generic attach of program with 8-byte devmap")) in test_xdp_with_devmap_helpers()
34 ASSERT_OK(err, "XDP program detach"); in test_xdp_with_devmap_helpers()
39 if (!ASSERT_OK(err, "bpf_prog_get_info_by_fd")) in test_xdp_with_devmap_helpers()
44 ASSERT_OK(err, "Add program to devmap entry"); in test_xdp_with_devmap_helpers()
47 ASSERT_OK(err, "Read devmap entry"); in test_xdp_with_devmap_helpers()
102 if (!ASSERT_OK(err, "bpf_prog_get_info_by_fd")) in test_xdp_with_devmap_frags_helpers()
107 ASSERT_OK(err, "Add frags program to devmap entry"); in test_xdp_with_devmap_frags_helpers()
110 ASSERT_OK(err, "Read devmap entry"); in test_xdp_with_devmap_frags_helpers()
A Dtest_tunnel.c98 if (!ASSERT_OK(system(cmd), cmd)) \
223 if (!ASSERT_OK(ret, "create tc hook")) in attach_tc_prog()
229 if (!ASSERT_OK(ret, "bpf_tc_attach")) { in attach_tc_prog()
238 if (!ASSERT_OK(ret, "bpf_tc_attach")) { in attach_tc_prog()
262 if (!ASSERT_OK(err, "add vxlan tunnel")) in test_vxlan_tunnel()
314 if (!ASSERT_OK(err, "update bpf local_ip_map")) in test_vxlan_tunnel()
319 if (!ASSERT_OK(err, "test_ping")) in test_vxlan_tunnel()
346 if (!ASSERT_OK(err, "add_ip6vxlan_tunnel")) in test_ip6vxlan_tunnel()
387 if (!ASSERT_OK(err, "update bpf local_ip_map")) in test_ip6vxlan_tunnel()
392 if (!ASSERT_OK(err, "test_ping")) in test_ip6vxlan_tunnel()
[all …]
A Dtc_bpf.c33 if (!ASSERT_OK(ret, "bpf_prog_get_info_by_fd")) in test_tc_bpf_basic()
37 if (!ASSERT_OK(ret, "bpf_tc_attach")) in test_tc_bpf_basic()
48 if (!ASSERT_OK(ret, "bpf_tc_attach replace mode")) in test_tc_bpf_basic()
53 if (!ASSERT_OK(ret, "bpf_tc_query")) in test_tc_bpf_basic()
64 ASSERT_OK(ret, "bpf_tc_detach"); in test_tc_bpf_basic()
305 if (!ASSERT_OK(ret, "bpf_tc_attach valid handle unset")) in test_tc_bpf_api()
324 ASSERT_OK(bpf_tc_detach(hook, &opts_f), "bpf_tc_detach"); in test_tc_bpf_api()
359 if (!ASSERT_OK(ret, "test_tc_internal ingress")) in test_tc_bpf()
371 if (!ASSERT_OK(ret, "test_tc_internal ingress")) in test_tc_bpf()
378 if (!ASSERT_OK(ret, "test_tc_internal egress")) in test_tc_bpf()
[all …]
A Dcgrp_local_storage.c34 if (!ASSERT_OK(err, "map_update_elem")) in test_tp_btf()
39 if (!ASSERT_OK(err, "map_lookup_elem")) in test_tp_btf()
46 if (!ASSERT_OK(err, "map_delete_elem")) in test_tp_btf()
52 if (!ASSERT_OK(err, "skel_attach")) in test_tp_btf()
106 if (!ASSERT_OK(err, "map_lookup(socket_cookies)")) in test_attach_cgroup()
110 if (!ASSERT_OK(err, "getsockname")) in test_attach_cgroup()
134 if (!ASSERT_OK(err, "skel_attach")) in test_recursion()
170 if (!ASSERT_OK(err, "skel_load")) in test_cgroup_iter_sleepable()
209 if (!ASSERT_OK(err, "skel_load")) in test_no_rcu_lock()
213 if (!ASSERT_OK(err, "skel_attach")) in test_no_rcu_lock()
A Duser_ringbuf.c80 if (!ASSERT_OK(err, "set_max_entries")) in open_load_ringbuf_skel()
84 if (!ASSERT_OK(err, "set_max_entries")) in open_load_ringbuf_skel()
88 if (!ASSERT_OK(err, "skel_load")) in open_load_ringbuf_skel()
178 if (!ASSERT_OK(err, "skel_attach")) in load_skel_create_ringbufs()
243 if (!ASSERT_OK(err, "misaligned_skel")) in test_user_ringbuf_post_misaligned()
259 if (!ASSERT_OK(err, "wrong_offset_skel")) in test_user_ringbuf_post_producer_wrong_offset()
275 if (!ASSERT_OK(err, "huge_sample_skel")) in test_user_ringbuf_post_larger_than_ringbuf_sz()
296 if (!ASSERT_OK(err, "write_samples")) in test_user_ringbuf_basic()
441 ASSERT_OK(err, "write_samples"); in test_user_ringbuf_loop()
541 if (!ASSERT_OK(err, "create_ringbufs")) in test_user_ringbuf_msg_protocol()
[all …]

Completed in 27 milliseconds

12345678