Home
last modified time | relevance | path

Searched refs:ASSERT_OK_PTR (Results 1 – 25 of 165) sorted by relevance

1234567

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dcgroup_getset_retval.c25 if (!ASSERT_OK_PTR(obj, "skel-load")) in test_setsockopt_set()
33 if (!ASSERT_OK_PTR(link_set_eunatch, "cg-attach-set_eunatch")) in test_setsockopt_set()
59 if (!ASSERT_OK_PTR(obj, "skel-load")) in test_setsockopt_set_and_get()
67 if (!ASSERT_OK_PTR(link_set_eunatch, "cg-attach-set_eunatch")) in test_setsockopt_set_and_get()
71 if (!ASSERT_OK_PTR(link_get_retval, "cg-attach-get_retval")) in test_setsockopt_set_and_get()
100 if (!ASSERT_OK_PTR(obj, "skel-load")) in test_setsockopt_default_zero()
108 if (!ASSERT_OK_PTR(link_get_retval, "cg-attach-get_retval")) in test_setsockopt_default_zero()
134 if (!ASSERT_OK_PTR(obj, "skel-load")) in test_setsockopt_default_zero_and_set()
143 if (!ASSERT_OK_PTR(link_get_retval, "cg-attach-get_retval")) in test_setsockopt_default_zero_and_set()
147 if (!ASSERT_OK_PTR(link_set_eunatch, "cg-attach-set_eunatch")) in test_setsockopt_default_zero_and_set()
[all …]
Dlog_buf.c40 if (!ASSERT_OK_PTR(obj_log_buf, "obj_log_buf")) in obj_load_log_buf()
55 if (!ASSERT_OK_PTR(skel, "skel_open")) in obj_load_log_buf()
78 ASSERT_OK_PTR(strstr(libbpf_log_buf, "prog 'bad_prog': BPF program load failed"), in obj_load_log_buf()
80 ASSERT_OK_PTR(strstr(obj_log_buf, "DATASEC license"), "obj_log_not_empty"); in obj_load_log_buf()
81 ASSERT_OK_PTR(strstr(good_log_buf, "0: R1=ctx(off=0,imm=0) R10=fp0"), in obj_load_log_buf()
83 ASSERT_OK_PTR(strstr(bad_log_buf, "invalid access to map value, value_size=16 off=16000 size=4"), in obj_load_log_buf()
106 if (!ASSERT_OK_PTR(skel, "skel_open")) in obj_load_log_buf()
120 ASSERT_OK_PTR(strstr(libbpf_log_buf, "libbpf: prog 'bad_prog': -- BEGIN PROG LOAD LOG --"), in obj_load_log_buf()
157 if (!ASSERT_OK_PTR(log_buf, "log_buf_alloc")) in bpf_prog_load_log_buf()
178 ASSERT_OK_PTR(strstr(log_buf, "0: R1=ctx(off=0,imm=0) R10=fp0"), "good_log_2"); in bpf_prog_load_log_buf()
[all …]
Dattach_probe.c61 if (!ASSERT_OK_PTR(skel, "skel_open")) in test_attach_probe()
71 if (!ASSERT_OK_PTR(skel->bss, "check_bss")) in test_attach_probe()
78 if (!ASSERT_OK_PTR(kprobe_link, "attach_kprobe")) in test_attach_probe()
85 if (!ASSERT_OK_PTR(kretprobe_link, "attach_kretprobe")) in test_attach_probe()
91 ASSERT_OK_PTR(skel->links.handle_kprobe_auto, "attach_kprobe_auto"); in test_attach_probe()
94 ASSERT_OK_PTR(skel->links.handle_kretprobe_auto, "attach_kretprobe_auto"); in test_attach_probe()
106 if (!ASSERT_OK_PTR(uprobe_link, "attach_uprobe")) in test_attach_probe()
120 if (!ASSERT_OK_PTR(uretprobe_link, "attach_uretprobe")) in test_attach_probe()
138 if (!ASSERT_OK_PTR(skel->links.handle_uprobe_byname, "attach_uprobe_byname")) in test_attach_probe()
144 if (!ASSERT_OK_PTR(skel->links.handle_uretprobe_byname, "attach_uretprobe_byname")) in test_attach_probe()
[all …]
Dcore_autosize.c67 if (!ASSERT_OK_PTR(btf, "empty_btf")) in test_core_autosize()
112 if (!ASSERT_OK_PTR(f, "btf_fdopen")) in test_core_autosize()
116 if (!ASSERT_OK_PTR(raw_data, "raw_data")) in test_core_autosize()
130 if (!ASSERT_OK_PTR(skel, "skel_open")) in test_core_autosize()
135 if (!ASSERT_OK_PTR(prog, "prog_find")) in test_core_autosize()
144 if (!ASSERT_OK_PTR(prog, "prog_find")) in test_core_autosize()
147 if (!ASSERT_OK_PTR(skel->links.handle_samesize, "prog_attach")) in test_core_autosize()
151 if (!ASSERT_OK_PTR(prog, "prog_find")) in test_core_autosize()
154 if (!ASSERT_OK_PTR(skel->links.handle_downsize, "prog_attach")) in test_core_autosize()
158 if (!ASSERT_OK_PTR(prog, "prog_find")) in test_core_autosize()
[all …]
Ddynptr.c64 if (!ASSERT_OK_PTR(skel, "dynptr_fail__open_opts")) in verify_fail()
68 if (!ASSERT_OK_PTR(prog, "bpf_object__find_program_by_name")) in verify_fail()
79 if (!ASSERT_OK_PTR(strstr(obj_log_buf, expected_err_msg), "expected_err_msg")) { in verify_fail()
95 if (!ASSERT_OK_PTR(skel, "dynptr_success__open")) in verify_success()
103 if (!ASSERT_OK_PTR(skel, "dynptr_success__load")) in verify_success()
107 if (!ASSERT_OK_PTR(prog, "bpf_object__find_program_by_name")) in verify_success()
111 if (!ASSERT_OK_PTR(link, "bpf_program__attach")) in verify_success()
Dbpf_iter.c56 if (!ASSERT_OK_PTR(link, "attach_iter")) in do_dummy_read_opts()
93 if (!ASSERT_OK_PTR(link, "attach_map_iter")) in do_read_map_iter_fd()
144 if (!ASSERT_OK_PTR(skel, "bpf_iter_ipv6_route__open_and_load")) in test_ipv6_route()
157 if (!ASSERT_OK_PTR(skel, "bpf_iter_netlink__open_and_load")) in test_netlink()
170 if (!ASSERT_OK_PTR(skel, "bpf_iter_bpf_map__open_and_load")) in test_bpf_map()
198 if (!ASSERT_OK_PTR(link, "attach_iter")) in check_bpf_link_info()
227 if (!ASSERT_OK_PTR(skel, "bpf_iter_task__open_and_load")) in test_task_common_nocheck()
317 if (!ASSERT_OK_PTR(skel, "bpf_iter_task__open_and_load")) in test_task_sleepable()
335 if (!ASSERT_OK_PTR(skel, "bpf_iter_task_stack__open_and_load")) in test_task_stack()
353 if (!ASSERT_OK_PTR(skel, "bpf_iter_task_file__open_and_load")) in test_task_file()
[all …]
Dbtf_endian.c27 if (!ASSERT_OK_PTR(btf, "parse_native_btf")) in test_btf_endian()
36 if (!ASSERT_OK_PTR(raw_data, "raw_data_inverted")) in test_btf_endian()
41 if (!ASSERT_OK_PTR(swap_btf, "parse_swap_btf")) in test_btf_endian()
48 if (!ASSERT_OK_PTR(swap_raw_data, "swap_raw_data")) in test_btf_endian()
62 if (!ASSERT_OK_PTR(swap_raw_data, "swap_raw_data")) in test_btf_endian()
79 if (!ASSERT_OK_PTR(raw_data, "raw_data_inverted")) in test_btf_endian()
84 if (!ASSERT_OK_PTR(swap_btf, "parse_swap_btf")) in test_btf_endian()
Dcg_storage_multi.c105 if (!ASSERT_OK_PTR(parent_link, "parent-cg-attach")) in test_egress_only()
128 if (!ASSERT_OK_PTR(child_link, "child-cg-attach")) in test_egress_only()
175 if (!ASSERT_OK_PTR(parent_egress1_link, "parent-egress1-cg-attach")) in test_isolated()
179 if (!ASSERT_OK_PTR(parent_egress2_link, "parent-egress2-cg-attach")) in test_isolated()
183 if (!ASSERT_OK_PTR(parent_ingress_link, "parent-ingress-cg-attach")) in test_isolated()
217 if (!ASSERT_OK_PTR(child_egress1_link, "child-egress1-cg-attach")) in test_isolated()
221 if (!ASSERT_OK_PTR(child_egress2_link, "child-egress2-cg-attach")) in test_isolated()
225 if (!ASSERT_OK_PTR(child_ingress_link, "child-ingress-cg-attach")) in test_isolated()
288 if (!ASSERT_OK_PTR(parent_egress1_link, "parent-egress1-cg-attach")) in test_shared()
292 if (!ASSERT_OK_PTR(parent_egress2_link, "parent-egress2-cg-attach")) in test_shared()
[all …]
Dbtf_dedup_split.c13 if (!ASSERT_OK_PTR(btf1, "empty_main_btf")) in test_split_simple()
37 if (!ASSERT_OK_PTR(btf2, "empty_split_btf")) in test_split_simple()
47 if (!ASSERT_OK_PTR(t, "int_type")) in test_split_simple()
131 if (!ASSERT_OK_PTR(btf1, "empty_main_btf")) in test_split_fwd_resolve()
159 if (!ASSERT_OK_PTR(btf2, "empty_split_btf")) in test_split_fwd_resolve()
214 if (!ASSERT_OK_PTR(btf1, "empty_main_btf")) in test_split_struct_duped()
239 if (!ASSERT_OK_PTR(btf2, "empty_split_btf")) in test_split_struct_duped()
348 if (!ASSERT_OK_PTR(btf1, "empty_main_btf")) in test_split_dup_struct_in_cu()
383 if (!ASSERT_OK_PTR(btf2, "empty_split_btf")) in test_split_dup_struct_in_cu()
Dbpf_cookie.c32 if (!ASSERT_OK_PTR(link1, "link1")) in kprobe_subtest()
39 if (!ASSERT_OK_PTR(link2, "link2")) in kprobe_subtest()
47 if (!ASSERT_OK_PTR(retlink1, "retlink1")) in kprobe_subtest()
54 if (!ASSERT_OK_PTR(retlink2, "retlink2")) in kprobe_subtest()
111 if (!ASSERT_OK_PTR(skel, "fentry_raw_skel_load")) in kprobe_multi_link_api_subtest()
195 if (!ASSERT_OK_PTR(skel, "fentry_raw_skel_load")) in kprobe_multi_attach_api_subtest()
216 if (!ASSERT_OK_PTR(link1, "bpf_program__attach_kprobe_multi_opts")) in kprobe_multi_attach_api_subtest()
232 if (!ASSERT_OK_PTR(link2, "bpf_program__attach_kprobe_multi_opts")) in kprobe_multi_attach_api_subtest()
258 if (!ASSERT_OK_PTR(link1, "link1")) in uprobe_subtest()
265 if (!ASSERT_OK_PTR(link2, "link2")) in uprobe_subtest()
[all …]
Dbtf_tag.c20 if (!ASSERT_OK_PTR(skel, "btf_decl_tag")) in test_btf_decl_tag()
36 if (!ASSERT_OK_PTR(skel, "btf_type_tag")) in test_btf_type_tag()
66 if (!ASSERT_OK_PTR(*vmlinux_btf, "could not load vmlinux BTF")) in load_btfs()
86 if (!ASSERT_OK_PTR(*module_btf, "could not load module BTF")) in load_btfs()
120 if (!ASSERT_OK_PTR(skel, "btf_type_tag_user")) in test_btf_type_tag_mod_user()
149 if (!ASSERT_OK_PTR(skel, "btf_type_tag_user")) in test_btf_type_tag_vmlinux_user()
174 if (!ASSERT_OK_PTR(skel, "btf_type_tag_percpu")) in test_btf_type_tag_mod_percpu()
204 if (!ASSERT_OK_PTR(skel, "btf_type_tag_percpu")) in test_btf_type_tag_vmlinux_percpu()
Dbtf_split.c22 if (!ASSERT_OK_PTR(btf1, "empty_main_btf")) in test_btf_split()
35 if (!ASSERT_OK_PTR(btf2, "empty_split_btf")) in test_btf_split()
45 if (!ASSERT_OK_PTR(t, "int_type")) in test_btf_split()
60 if (!ASSERT_OK_PTR(t, "split_struct_type")) in test_btf_split()
68 if (!ASSERT_OK_PTR(dump_buf_file, "dump_memstream")) in test_btf_split()
71 if (!ASSERT_OK_PTR(d, "btf_dump__new")) in test_btf_split()
Dbpf_loop.c13 if (!ASSERT_OK_PTR(link, "link")) in check_nr_loops()
48 if (!ASSERT_OK_PTR(link, "link")) in check_callback_fn_stop()
71 if (!ASSERT_OK_PTR(link, "link")) in check_null_callback_ctx()
90 if (!ASSERT_OK_PTR(link, "link")) in check_invalid_flags()
107 if (!ASSERT_OK_PTR(link, "link")) in check_nested_calls()
128 if (!ASSERT_OK_PTR(link, "link")) in check_non_constant_callback()
149 if (!ASSERT_OK_PTR(link, "link")) in check_stack()
186 if (!ASSERT_OK_PTR(skel, "bpf_loop__open_and_load")) in test_bpf_loop()
Dlibbpf_str.c29 if (!ASSERT_OK_PTR(btf, "btf_parse")) in test_libbpf_bpf_attach_type_str()
50 ASSERT_OK_PTR(attach_type_str, attach_type_name); in test_libbpf_bpf_attach_type_str()
74 if (!ASSERT_OK_PTR(btf, "btf_parse")) in test_libbpf_bpf_link_type_str()
95 ASSERT_OK_PTR(link_type_str, link_type_name); in test_libbpf_bpf_link_type_str()
119 if (!ASSERT_OK_PTR(btf, "btf_parse")) in test_libbpf_bpf_map_type_str()
137 ASSERT_OK_PTR(map_type_str, map_type_name); in test_libbpf_bpf_map_type_str()
161 if (!ASSERT_OK_PTR(btf, "btf_parse")) in test_libbpf_bpf_prog_type_str()
179 ASSERT_OK_PTR(prog_type_str, prog_type_name); in test_libbpf_bpf_prog_type_str()
Dbpf_iter_setsockopt.c126 if (!ASSERT_OK_PTR(est_fds, "create established")) in do_bpf_iter_setsockopt()
133 if (!ASSERT_OK_PTR(reuse_listen_fds, "start_reuseport_server")) in do_bpf_iter_setsockopt()
195 if (!ASSERT_OK_PTR(iter_skel, "iter_skel")) in serial_test_bpf_iter_setsockopt()
198 if (!ASSERT_OK_PTR(iter_skel->links.change_tcp_cc, "attach iter")) in serial_test_bpf_iter_setsockopt()
203 if (!ASSERT_OK_PTR(cubic_skel, "cubic_skel")) in serial_test_bpf_iter_setsockopt()
206 if (!ASSERT_OK_PTR(cubic_link, "cubic_link")) in serial_test_bpf_iter_setsockopt()
211 if (!ASSERT_OK_PTR(dctcp_skel, "dctcp_skel")) in serial_test_bpf_iter_setsockopt()
214 if (!ASSERT_OK_PTR(dctcp_link, "dctcp_link")) in serial_test_bpf_iter_setsockopt()
Dsubskeleton.c12 if (!ASSERT_OK_PTR(lib, "open subskeleton")) in subskeleton_lib_setup()
28 if (!ASSERT_OK_PTR(lib, "open subskeleton")) in subskeleton_lib_subresult()
34 ASSERT_OK_PTR(lib->progs.lib_perf_handler, "lib_perf_handler"); in subskeleton_lib_subresult()
38 ASSERT_OK_PTR(lib->maps.map1, "map1"); in subskeleton_lib_subresult()
55 if (!ASSERT_OK_PTR(skel, "skel_open")) in test_subskeleton()
Dfexit_bpf2bpf.c88 if (!ASSERT_OK_PTR(link, "link_ptr")) in test_fexit_bpf2bpf_common()
92 if (!ASSERT_OK_PTR(prog, "prog_ptr")) in test_fexit_bpf2bpf_common()
96 if (!ASSERT_OK_PTR(obj, "obj_open")) in test_fexit_bpf2bpf_common()
116 if (!ASSERT_OK_PTR(tgt_name, "tgt_name")) in test_fexit_bpf2bpf_common()
128 if (!ASSERT_OK_PTR(prog[i], prog_name[i])) in test_fexit_bpf2bpf_common()
132 if (!ASSERT_OK_PTR(link[i], "attach_trace")) in test_fexit_bpf2bpf_common()
242 if (!ASSERT_OK_PTR(prog, "find_prog")) in test_second_attach()
251 if (!ASSERT_OK_PTR(link, "second_link")) in test_second_attach()
301 if (!ASSERT_OK_PTR(freplace_obj, "freplace_obj_open")) in test_fmod_ret_freplace()
313 if (!ASSERT_OK_PTR(freplace_link, "freplace_attach_trace")) in test_fmod_ret_freplace()
[all …]
Dusdt.c51 if (!ASSERT_OK_PTR(skel, "skel_open")) in subtest_basic_usdt()
66 if (!ASSERT_OK_PTR(skel->links.usdt0, "usdt0_link")) in subtest_basic_usdt()
133 if (!ASSERT_OK_PTR(skel->links.usdt3, "usdt3_reattach")) in subtest_basic_usdt()
217 if (!ASSERT_OK_PTR(skel, "skel_open")) in subtest_multispec_usdt()
247 if (!ASSERT_OK_PTR(skel->links.usdt_100, "usdt_100_reattach")) in subtest_multispec_usdt()
294 if (!ASSERT_OK_PTR(skel->links.usdt_100, "usdt_400_attach")) in subtest_multispec_usdt()
343 if (!ASSERT_OK_PTR(skel, "skel_open")) in subtest_urandom_usdt()
347 if (!ASSERT_OK_PTR(urand_pipe, "urand_spawn")) in subtest_urandom_usdt()
361 if (!ASSERT_OK_PTR(l, "urand_without_sema_attach")) in subtest_urandom_usdt()
368 if (!ASSERT_OK_PTR(l, "urand_with_sema_attach")) in subtest_urandom_usdt()
[all …]
Dkfunc_dynptr_param.c57 if (!ASSERT_OK_PTR(skel, "test_kfunc_dynptr_param__open_opts")) in verify_fail()
61 if (!ASSERT_OK_PTR(prog, "bpf_object__find_program_by_name")) in verify_fail()
85 if (!ASSERT_OK_PTR(strstr(obj_log_buf, expected_err_msg), "expected_err_msg")) { in verify_fail()
104 if (!ASSERT_OK_PTR(skel, "test_kfunc_dynptr_param__open")) in verify_success()
129 if (!ASSERT_OK_PTR(prog, "bpf_object__find_program_by_name")) in verify_success()
133 if (!ASSERT_OK_PTR(link, "bpf_program__attach")) in verify_success()
Dtest_overhead.c76 if (!ASSERT_OK_PTR(obj, "obj_open_file")) in test_test_overhead()
111 if (!ASSERT_OK_PTR(link, "attach_kprobe")) in test_test_overhead()
119 if (!ASSERT_OK_PTR(link, "attach_kretprobe")) in test_test_overhead()
126 if (!ASSERT_OK_PTR(link, "attach_raw_tp")) in test_test_overhead()
133 if (!ASSERT_OK_PTR(link, "attach_fentry")) in test_test_overhead()
140 if (!ASSERT_OK_PTR(link, "attach_fexit")) in test_test_overhead()
Dkfunc_call.c114 if (!ASSERT_OK_PTR(skel, "skel")) in verify_success()
118 if (!ASSERT_OK_PTR(prog, "bpf_object__find_program_by_name")) in verify_success()
131 if (!ASSERT_OK_PTR(lskel, "lskel")) in verify_success()
179 if (!ASSERT_OK_PTR(skel, "kfunc_call_fail__open_opts")) in verify_fail()
183 if (!ASSERT_OK_PTR(prog, "bpf_object__find_program_by_name")) in verify_fail()
206 if (!ASSERT_OK_PTR(strstr(obj_log_buf, param->expected_err_msg), "expected_err_msg")) { in verify_fail()
241 if (!ASSERT_OK_PTR(skel, "skel")) in test_subprog()
265 if (!ASSERT_OK_PTR(skel, "skel")) in test_subprog_lskel()
284 if (!ASSERT_OK_PTR(skel, "prog_open")) in test_destructive_open_and_load()
Duser_ringbuf.c78 if (!ASSERT_OK_PTR(skel, "skel_open")) in open_load_ringbuf_skel()
114 ASSERT_OK_PTR(mmap_ptr, "ro_cons_pos"); in test_user_ringbuf_mappings()
125 ASSERT_OK_PTR(mmap_ptr, "rw_prod_pos"); in test_user_ringbuf_mappings()
134 ASSERT_OK_PTR(mmap_ptr, "rw_data"); in test_user_ringbuf_mappings()
163 if (!ASSERT_OK_PTR(kern_ringbuf, "kern_ringbuf_create")) in load_skel_create_ringbufs()
172 if (!ASSERT_OK_PTR(user_ringbuf, "user_ringbuf_create")) in load_skel_create_ringbufs()
217 ASSERT_OK_PTR(producer_pos_ptr, "producer_pos_ptr"); in manually_write_test_invalid_sample()
221 ASSERT_OK_PTR(data_ptr, "rw_data"); in manually_write_test_invalid_sample()
320 if (!ASSERT_OK_PTR(sample, "full_sample")) in test_user_ringbuf_sample_full_ring_buffer()
346 ASSERT_OK_PTR(sample, "reserve_autoaligned"); in test_user_ringbuf_post_alignment_autoadjust()
[all …]
Dtc_redirect.c130 if (!ASSERT_OK_PTR(f, path)) in get_ifaddr()
151 if (!ASSERT_OK_PTR(f, path)) in get_ifindex()
199 if (!ASSERT_OK_PTR(nstoken, "setns src")) in netns_setup_links_and_routes()
219 if (!ASSERT_OK_PTR(nstoken, "setns fwd")) in netns_setup_links_and_routes()
240 if (!ASSERT_OK_PTR(nstoken, "setns dst")) in netns_setup_links_and_routes()
290 if (!ASSERT_OK_PTR(nstoken, "setns dst")) in test_tcp()
299 if (!ASSERT_OK_PTR(nstoken, "setns src")) in test_tcp()
445 if (!ASSERT_OK_PTR(nstoken, "setns dst")) in test_inet_dtime()
470 if (!ASSERT_OK_PTR(nstoken, "setns src")) in test_inet_dtime()
515 if (!ASSERT_OK_PTR(nstoken, "setns " NS_SRC)) in netns_load_dtime_bpf()
[all …]
Ddummy_st_ops.c18 if (!ASSERT_OK_PTR(skel, "dummy_st_ops_load")) in test_dummy_st_ops_attach()
38 if (!ASSERT_OK_PTR(skel, "dummy_st_ops_load")) in test_dummy_init_ret_value()
65 if (!ASSERT_OK_PTR(skel, "dummy_st_ops_load")) in test_dummy_init_ptr_arg()
71 if (!ASSERT_OK_PTR(trace_skel, "trace_dummy_st_ops__open")) in test_dummy_init_ptr_arg()
111 if (!ASSERT_OK_PTR(skel, "dummy_st_ops_load")) in test_dummy_multiple_args()
Dsocket_cookie.c26 if (!ASSERT_OK_PTR(skel, "skel_open")) in test_socket_cookie()
35 if (!ASSERT_OK_PTR(skel->links.set_cookie, "prog_attach")) in test_socket_cookie()
40 if (!ASSERT_OK_PTR(skel->links.update_cookie_sockops, "prog_attach")) in test_socket_cookie()
45 if (!ASSERT_OK_PTR(skel->links.update_cookie_tracing, "prog_attach")) in test_socket_cookie()

1234567