/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | bpf_cookie.c | 22 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() 123 if (!ASSERT_OK_PTR(link1, "link1")) in tp_subtest() 130 if (!ASSERT_OK_PTR(link2, "link2")) in tp_subtest() 152 if (!ASSERT_OK_PTR(link3, "link3")) in tp_subtest() 203 if (!ASSERT_OK_PTR(link, "link1")) in pe_subtest() [all …]
|
A D | core_autosize.c | 67 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() 151 if (!ASSERT_OK_PTR(prog, "prog_find")) in test_core_autosize() 158 if (!ASSERT_OK_PTR(prog, "prog_find")) in test_core_autosize() 161 if (!ASSERT_OK_PTR(skel->links.handle_probed, "prog_attach")) in test_core_autosize() 167 if (!ASSERT_OK_PTR(bss_map, "bss_map_find")) in test_core_autosize() [all …]
|
A D | cg_storage_multi.c | 105 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() 322 if (!ASSERT_OK_PTR(child_egress1_link, "child-egress1-cg-attach")) in test_shared() 326 if (!ASSERT_OK_PTR(child_egress2_link, "child-egress2-cg-attach")) in test_shared() [all …]
|
A D | btf_endian.c | 27 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()
|
A D | btf_split.c | 23 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()
|
A D | fexit_bpf2bpf.c | 82 if (!ASSERT_OK_PTR(link, "link_ptr")) in test_fexit_bpf2bpf_common() 86 if (!ASSERT_OK_PTR(prog, "prog_ptr")) in test_fexit_bpf2bpf_common() 90 if (!ASSERT_OK_PTR(obj, "obj_open")) in test_fexit_bpf2bpf_common() 108 if (!ASSERT_OK_PTR(tgt_name, "tgt_name")) in test_fexit_bpf2bpf_common() 113 if (!ASSERT_OK_PTR(prog[i], prog_name[i])) in test_fexit_bpf2bpf_common() 117 if (!ASSERT_OK_PTR(link[i], "attach_trace")) in test_fexit_bpf2bpf_common() 234 if (!ASSERT_OK_PTR(link, "second_link")) in test_second_attach() 285 if (!ASSERT_OK_PTR(freplace_obj, "freplace_obj_open")) in test_fmod_ret_freplace() 297 if (!ASSERT_OK_PTR(freplace_link, "freplace_attach_trace")) in test_fmod_ret_freplace() 301 if (!ASSERT_OK_PTR(fmod_obj, "fmod_obj_open")) in test_fmod_ret_freplace() [all …]
|
A D | bpf_iter_setsockopt.c | 126 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()
|
A D | btf_dedup_split.c | 13 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()
|
A D | tc_redirect.c | 137 if (!ASSERT_OK_PTR(token, "malloc token")) in open_netns() 204 if (!ASSERT_OK_PTR(f, path)) in get_ifaddr() 225 if (!ASSERT_OK_PTR(f, path)) in get_ifindex() 273 if (!ASSERT_OK_PTR(nstoken, "setns src")) in netns_setup_links_and_routes() 293 if (!ASSERT_OK_PTR(nstoken, "setns fwd")) in netns_setup_links_and_routes() 314 if (!ASSERT_OK_PTR(nstoken, "setns dst")) in netns_setup_links_and_routes() 364 if (!ASSERT_OK_PTR(nstoken, "setns dst")) in test_tcp() 373 if (!ASSERT_OK_PTR(nstoken, "setns src")) in test_tcp() 443 if (!ASSERT_OK_PTR(nstoken, "setns fwd")) in test_tc_redirect_neigh_fib() 487 if (!ASSERT_OK_PTR(nstoken, "setns fwd")) in test_tc_redirect_neigh() [all …]
|
A D | test_overhead.c | 76 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()
|
A D | socket_cookie.c | 26 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()
|
A D | attach_probe.c | 56 if (!ASSERT_OK_PTR(kprobe_link, "attach_kprobe")) in test_attach_probe() 63 if (!ASSERT_OK_PTR(kretprobe_link, "attach_kretprobe")) in test_attach_probe() 77 if (!ASSERT_OK_PTR(uprobe_link, "attach_uprobe")) in test_attach_probe() 91 if (!ASSERT_OK_PTR(uretprobe_link, "attach_uretprobe")) in test_attach_probe()
|
A D | dummy_st_ops.c | 17 if (!ASSERT_OK_PTR(skel, "dummy_st_ops_load")) in test_dummy_st_ops_attach() 37 if (!ASSERT_OK_PTR(skel, "dummy_st_ops_load")) in test_dummy_init_ret_value() 64 if (!ASSERT_OK_PTR(skel, "dummy_st_ops_load")) in test_dummy_init_ptr_arg() 90 if (!ASSERT_OK_PTR(skel, "dummy_st_ops_load")) in test_dummy_multiple_args()
|
A D | task_pt_regs.c | 20 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()
|
A D | trampoline_count.c | 59 if (!ASSERT_OK_PTR(obj, "obj_open_file")) { in serial_test_trampoline_count() 72 if (!ASSERT_OK_PTR(link, "attach_prog")) { in serial_test_trampoline_count() 79 if (!ASSERT_OK_PTR(link, "attach_prog")) { in serial_test_trampoline_count() 89 if (!ASSERT_OK_PTR(obj, "obj_open_file")) { in serial_test_trampoline_count()
|
A D | task_local_storage.c | 19 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()
|
A D | xdp_bonding.c | 111 if (!ASSERT_OK_PTR(link, "attach xdp program")) in xdp_attach() 403 if (!ASSERT_OK_PTR(link, "attach program to veth")) in test_xdp_bonding_attach() 415 if (!ASSERT_OK_PTR(link, "attach program to slave when enslaved")) in test_xdp_bonding_attach() 428 if (!ASSERT_OK_PTR(link, "attach program to master")) in test_xdp_bonding_attach() 490 ASSERT_OK_PTR(link, "attach program to master"); in test_xdp_bonding_nested() 535 if (!ASSERT_OK_PTR(skeletons.xdp_dummy, "xdp_dummy__open_and_load")) in serial_test_xdp_bonding() 539 if (!ASSERT_OK_PTR(skeletons.xdp_tx, "xdp_tx__open_and_load")) in serial_test_xdp_bonding() 543 if (!ASSERT_OK_PTR(skeletons.xdp_redirect_multi_kern, in serial_test_xdp_bonding()
|
A D | lookup_and_delete.c | 51 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()
|
A D | kfree_skb.c | 101 if (!ASSERT_OK_PTR(link, "attach_raw_tp")) in serial_test_kfree_skb() 104 if (!ASSERT_OK_PTR(link_fentry, "attach fentry")) in serial_test_kfree_skb() 107 if (!ASSERT_OK_PTR(link_fexit, "attach fexit")) in serial_test_kfree_skb() 118 if (!ASSERT_OK_PTR(pb, "perf_buf__new")) in serial_test_kfree_skb()
|
A D | netcnt.c | 25 if (!ASSERT_OK_PTR(skel, "netcnt_prog__open_and_load")) in serial_test_netcnt() 30 if (!ASSERT_OK_PTR(percpu_netcnt, "malloc(percpu_netcnt)")) in serial_test_netcnt() 38 if (!ASSERT_OK_PTR(skel->links.bpf_nextcnt, in serial_test_netcnt()
|
A D | for_each.c | 19 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()
|
A D | bind_perm.c | 83 if (!ASSERT_OK_PTR(skel, "skel")) in test_bind_perm() 87 if (!ASSERT_OK_PTR(skel, "bind_v4_prog")) in test_bind_perm() 91 if (!ASSERT_OK_PTR(skel, "bind_v6_prog")) in test_bind_perm()
|
A D | btf_module.c | 21 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()
|
A D | ksyms_btf.c | 93 if (!ASSERT_OK_PTR(skel, "test_ksyms_weak__open_and_load")) in test_weak_syms() 120 if (!ASSERT_OK_PTR(skel, "test_ksyms_weak_lskel__open_and_load")) in test_weak_syms_lskel() 146 if (!ASSERT_OK_PTR(btf, "btf_exists")) in test_ksyms_btf()
|
A D | map_init.c | 45 if (!ASSERT_OK_PTR(skel, "skel_open")) in setup() 138 if (!ASSERT_OK_PTR(skel, "prog_setup")) in test_pcpu_map_init() 180 if (!ASSERT_OK_PTR(skel, "prog_setup")) in test_pcpu_lru_map_init()
|