Home
last modified time | relevance | path

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

1234

/tools/testing/selftests/bpf/prog_tests/
Dbpf_cookie.c22 if (!ASSERT_OK_PTR(link1, "link1")) in kprobe_subtest()
29 if (!ASSERT_OK_PTR(link2, "link2")) in kprobe_subtest()
37 if (!ASSERT_OK_PTR(retlink1, "retlink1")) in kprobe_subtest()
44 if (!ASSERT_OK_PTR(retlink2, "retlink2")) in kprobe_subtest()
76 if (!ASSERT_OK_PTR(link1, "link1")) in uprobe_subtest()
83 if (!ASSERT_OK_PTR(link2, "link2")) in uprobe_subtest()
91 if (!ASSERT_OK_PTR(retlink1, "retlink1")) in uprobe_subtest()
98 if (!ASSERT_OK_PTR(retlink2, "retlink2")) in uprobe_subtest()
123 if (!ASSERT_OK_PTR(link1, "link1")) in tp_subtest()
130 if (!ASSERT_OK_PTR(link2, "link2")) in tp_subtest()
[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 …]
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()
Dbtf_split.c23 if (!ASSERT_OK_PTR(btf1, "empty_main_btf")) in test_btf_split()
36 if (!ASSERT_OK_PTR(btf2, "empty_split_btf")) in test_btf_split()
46 if (!ASSERT_OK_PTR(t, "int_type")) in test_btf_split()
61 if (!ASSERT_OK_PTR(t, "split_struct_type")) in test_btf_split()
69 if (!ASSERT_OK_PTR(dump_buf_file, "dump_memstream")) in test_btf_split()
73 if (!ASSERT_OK_PTR(d, "btf_dump__new")) in test_btf_split()
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()
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()
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 test_bpf_iter_setsockopt()
198 if (!ASSERT_OK_PTR(iter_skel->links.change_tcp_cc, "attach iter")) in test_bpf_iter_setsockopt()
203 if (!ASSERT_OK_PTR(cubic_skel, "cubic_skel")) in test_bpf_iter_setsockopt()
206 if (!ASSERT_OK_PTR(cubic_link, "cubic_link")) in test_bpf_iter_setsockopt()
211 if (!ASSERT_OK_PTR(dctcp_skel, "dctcp_skel")) in test_bpf_iter_setsockopt()
214 if (!ASSERT_OK_PTR(dctcp_link, "dctcp_link")) in test_bpf_iter_setsockopt()
Dcg_storage_multi.c109 if (!ASSERT_OK_PTR(parent_link, "parent-cg-attach")) in test_egress_only()
132 if (!ASSERT_OK_PTR(child_link, "child-cg-attach")) in test_egress_only()
179 if (!ASSERT_OK_PTR(parent_egress1_link, "parent-egress1-cg-attach")) in test_isolated()
183 if (!ASSERT_OK_PTR(parent_egress2_link, "parent-egress2-cg-attach")) in test_isolated()
187 if (!ASSERT_OK_PTR(parent_ingress_link, "parent-ingress-cg-attach")) in test_isolated()
221 if (!ASSERT_OK_PTR(child_egress1_link, "child-egress1-cg-attach")) in test_isolated()
225 if (!ASSERT_OK_PTR(child_egress2_link, "child-egress2-cg-attach")) in test_isolated()
229 if (!ASSERT_OK_PTR(child_ingress_link, "child-ingress-cg-attach")) in test_isolated()
292 if (!ASSERT_OK_PTR(parent_egress1_link, "parent-egress1-cg-attach")) in test_shared()
296 if (!ASSERT_OK_PTR(parent_egress2_link, "parent-egress2-cg-attach")) in test_shared()
[all …]
Dtask_pt_regs.c20 if (!ASSERT_OK_PTR(skel, "skel_open")) in test_task_pt_regs()
22 if (!ASSERT_OK_PTR(skel->bss, "check_bss")) in test_task_pt_regs()
30 if (!ASSERT_OK_PTR(uprobe_link, "attach_uprobe")) in test_task_pt_regs()
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()
Dfexit_bpf2bpf.c85 if (!ASSERT_OK_PTR(link, "link_ptr")) in test_fexit_bpf2bpf_common()
89 if (!ASSERT_OK_PTR(prog, "prog_ptr")) in test_fexit_bpf2bpf_common()
93 if (!ASSERT_OK_PTR(obj, "obj_open")) in test_fexit_bpf2bpf_common()
106 if (!ASSERT_OK_PTR(tgt_name, "tgt_name")) in test_fexit_bpf2bpf_common()
111 if (!ASSERT_OK_PTR(prog[i], prog_name[i])) in test_fexit_bpf2bpf_common()
115 if (!ASSERT_OK_PTR(link[i], "attach_trace")) in test_fexit_bpf2bpf_common()
232 if (!ASSERT_OK_PTR(link, "second_link")) in test_second_attach()
284 if (!ASSERT_OK_PTR(freplace_obj, "freplace_obj_open")) in test_fmod_ret_freplace()
293 if (!ASSERT_OK_PTR(freplace_link, "freplace_attach_trace")) in test_fmod_ret_freplace()
298 if (!ASSERT_OK_PTR(fmod_obj, "fmod_obj_open")) in test_fmod_ret_freplace()
[all …]
Dtc_redirect.c144 if (!ASSERT_OK_PTR(token, "malloc token")) in open_netns()
199 if (!ASSERT_OK_PTR(f, path)) in get_ifaddr()
220 if (!ASSERT_OK_PTR(f, path)) in get_ifindex()
268 if (!ASSERT_OK_PTR(nstoken, "setns src")) in netns_setup_links_and_routes()
288 if (!ASSERT_OK_PTR(nstoken, "setns fwd")) in netns_setup_links_and_routes()
309 if (!ASSERT_OK_PTR(nstoken, "setns dst")) in netns_setup_links_and_routes()
359 if (!ASSERT_OK_PTR(nstoken, "setns dst")) in test_tcp()
368 if (!ASSERT_OK_PTR(nstoken, "setns src")) in test_tcp()
438 if (!ASSERT_OK_PTR(nstoken, "setns fwd")) in test_tc_redirect_neigh_fib()
442 if (!ASSERT_OK_PTR(skel, "test_tc_neigh_fib__open")) in test_tc_redirect_neigh_fib()
[all …]
Dattach_probe.c37 if (!ASSERT_OK_PTR(kprobe_link, "attach_kprobe")) in test_attach_probe()
44 if (!ASSERT_OK_PTR(kretprobe_link, "attach_kretprobe")) in test_attach_probe()
57 if (!ASSERT_OK_PTR(uprobe_link, "attach_uprobe")) in test_attach_probe()
70 if (!ASSERT_OK_PTR(uretprobe_link, "attach_uretprobe")) in test_attach_probe()
Dtask_local_storage.c19 if (!ASSERT_OK_PTR(skel, "skel_open_and_load")) in test_sys_enter_exit()
45 if (!ASSERT_OK_PTR(skel, "skel_open_and_load")) in test_exit_creds()
70 if (!ASSERT_OK_PTR(skel, "skel_open_and_load")) in test_recursion()
Dbtf_module.c21 if (!ASSERT_OK_PTR(vmlinux_btf, "could not load vmlinux BTF")) in test_btf_module()
25 if (!ASSERT_OK_PTR(module_btf, "could not load module BTF")) in test_btf_module()
Dtrampoline_count.c58 if (!ASSERT_OK_PTR(obj, "obj_open_file")) { in test_trampoline_count()
71 if (!ASSERT_OK_PTR(link, "attach_prog")) { in test_trampoline_count()
78 if (!ASSERT_OK_PTR(link, "attach_prog")) { in test_trampoline_count()
88 if (!ASSERT_OK_PTR(obj, "obj_open_file")) { in test_trampoline_count()
Dnetcnt.c25 if (!ASSERT_OK_PTR(skel, "netcnt_prog__open_and_load")) in test_netcnt()
30 if (!ASSERT_OK_PTR(percpu_netcnt, "malloc(percpu_netcnt)")) in test_netcnt()
38 if (!ASSERT_OK_PTR(skel->links.bpf_nextcnt, in test_netcnt()
Dbind_perm.c97 if (!ASSERT_OK_PTR(skel, "skel")) in test_bind_perm()
101 if (!ASSERT_OK_PTR(skel, "bind_v4_prog")) in test_bind_perm()
105 if (!ASSERT_OK_PTR(skel, "bind_v6_prog")) in test_bind_perm()
Dkfree_skb.c100 if (!ASSERT_OK_PTR(link, "attach_raw_tp")) in test_kfree_skb()
103 if (!ASSERT_OK_PTR(link_fentry, "attach fentry")) in test_kfree_skb()
106 if (!ASSERT_OK_PTR(link_fexit, "attach fexit")) in test_kfree_skb()
117 if (!ASSERT_OK_PTR(pb, "perf_buf__new")) in test_kfree_skb()
Dfor_each.c19 if (!ASSERT_OK_PTR(skel, "for_each_hash_map_elem__open_and_load")) in test_hash_map()
35 if (!ASSERT_OK_PTR(percpu_valbuf, "percpu_valbuf")) in test_hash_map()
79 if (!ASSERT_OK_PTR(skel, "for_each_array_map_elem__open_and_load")) in test_array_map()
99 if (!ASSERT_OK_PTR(percpu_valbuf, "percpu_valbuf")) in test_array_map()
Dlookup_and_delete.c51 if (!ASSERT_OK_PTR(skel, "test_lookup_and_delete__open")) in setup_prog()
106 if (!ASSERT_OK_PTR(skel, "setup_prog")) in test_lookup_and_delete_hash()
141 if (!ASSERT_OK_PTR(skel, "setup_prog")) in test_lookup_and_delete_percpu_hash()
180 if (!ASSERT_OK_PTR(skel, "setup_prog")) in test_lookup_and_delete_lru_hash()
225 if (!ASSERT_OK_PTR(skel, "setup_prog")) in test_lookup_and_delete_lru_percpu_hash()
Dsockopt_qos_to_cc.c42 if (!ASSERT_OK_PTR(skel, "skel")) in test_sockopt_qos_to_cc()
57 if (!ASSERT_OK_PTR(skel->links.sockopt_qos_to_cc, in test_sockopt_qos_to_cc()
Dkfunc_call.c14 if (!ASSERT_OK_PTR(skel, "skel")) in test_main()
38 if (!ASSERT_OK_PTR(skel, "skel")) in test_subprog()
Dudp_limit.c25 if (!ASSERT_OK_PTR(skel->links.sock, "cg_attach_sock")) in test_udp_limit()
28 if (!ASSERT_OK_PTR(skel->links.sock_release, "cg_attach_sock_release")) in test_udp_limit()
Dcgroup_v1v2.c19 if (!ASSERT_OK_PTR(skel, "skel_open")) in run_test()
25 if (!ASSERT_OK_PTR(skel->links.connect_v4_dropper, "prog_attach")) { in run_test()

1234