| /tools/testing/selftests/bpf/prog_tests/ |
| A D | btf_distill.c | 19 if (!ASSERT_OK_PTR(btf1, "empty_main_btf")) in test_distilled_base() 104 if (!ASSERT_OK_PTR(btf2, "empty_split_btf")) in test_distilled_base() 175 !ASSERT_OK_PTR(btf3, "distilled_base") || in test_distilled_base() 303 if (!ASSERT_OK_PTR(btf1, "empty_main_btf")) in test_distilled_base_multi() 312 if (!ASSERT_OK_PTR(btf2, "empty_split_btf")) in test_distilled_base_multi() 357 if (!ASSERT_OK_PTR(btf1, "empty_main_btf")) in test_distilled_base_missing_err() 411 if (!ASSERT_OK_PTR(btf1, "empty_main_btf")) in test_distilled_base_multi_err() 456 if (!ASSERT_OK_PTR(btf1, "empty_main_btf")) in test_distilled_base_multi_err2() 513 if (!ASSERT_OK_PTR(split_btf, "new_split")) in test_distilled_base_vmlinux() 523 !ASSERT_OK_PTR(base_dist, "base_dist")) in test_distilled_base_vmlinux() [all …]
|
| A D | subskeleton.c | 12 if (!ASSERT_OK_PTR(lib, "open subskeleton")) in subskeleton_lib_setup() 28 if (!ASSERT_OK_PTR(lib, "open subskeleton")) in subskeleton_lib_subresult() 38 ASSERT_OK_PTR(lib->maps.map1, "map1"); in subskeleton_lib_subresult() 56 if (!ASSERT_OK_PTR(skel, "skel_open")) in subtest_skel_subskeleton() 95 if (!ASSERT_OK_PTR(elf_bytes, "elf_bytes")) in subtest_obj_subskeleton() 99 if (!ASSERT_OK_PTR(obj, "obj_open_mem")) in subtest_obj_subskeleton() 107 if (!ASSERT_OK_PTR(rodata, "rodata_get")) in subtest_obj_subskeleton() 119 if (!ASSERT_OK_PTR(prog, "prog_by_name")) in subtest_obj_subskeleton() 123 if (!ASSERT_OK_PTR(link, "prog_attach")) in subtest_obj_subskeleton() 130 if (!ASSERT_OK_PTR(map, "bss_map_by_name")) in subtest_obj_subskeleton() [all …]
|
| A D | attach_probe.c | 47 if (!ASSERT_OK_PTR(skel, "skel_kprobe_manual_open_and_load")) in test_attach_probe_manual() 60 if (!ASSERT_OK_PTR(kprobe_link, "attach_kprobe")) in test_attach_probe_manual() 68 if (!ASSERT_OK_PTR(kretprobe_link, "attach_kretprobe")) in test_attach_probe_manual() 81 if (!ASSERT_OK_PTR(uprobe_link, "attach_uprobe")) in test_attach_probe_manual() 90 if (!ASSERT_OK_PTR(uretprobe_link, "attach_uretprobe")) in test_attach_probe_manual() 135 if (!ASSERT_OK_PTR(skel, "skel_kprobe_manual_open_and_load")) in test_attach_uprobe_long_event_name() 179 if (!ASSERT_OK_PTR(skel, "skel_kprobe_manual_open_and_load")) in test_attach_kprobe_long_event_name() 297 if (!ASSERT_OK_PTR(uprobe_link, "attach_uprobe_ref_ctr")) in test_uprobe_ref_ctr() 320 if (!ASSERT_OK_PTR(skel, "skel_kprobe_sleepable_open")) in test_kprobe_sleepable() 377 if (!ASSERT_OK_PTR(skel, "skel_open")) in test_attach_probe() [all …]
|
| A D | log_buf.c | 45 if (!ASSERT_OK_PTR(obj_log_buf, "obj_log_buf")) in obj_load_log_buf() 60 if (!ASSERT_OK_PTR(skel, "skel_open")) in obj_load_log_buf() 86 ASSERT_OK_PTR(strstr(good_log_buf, "0: R1=ctx() R10=fp0"), in obj_load_log_buf() 111 if (!ASSERT_OK_PTR(skel, "skel_open")) in obj_load_log_buf() 162 if (!ASSERT_OK_PTR(log_buf, "log_buf_alloc")) in bpf_prog_load_log_buf() 192 ASSERT_OK_PTR(strstr(log_buf, "R0 !read_ok"), "bad_log_0"); in bpf_prog_load_log_buf() 211 if (!ASSERT_OK_PTR(btf, "empty_btf")) in bpf_btf_load_log_buf() 217 if (!ASSERT_OK_PTR(raw_btf_data, "raw_btf_data_good")) in bpf_btf_load_log_buf() 221 if (!ASSERT_OK_PTR(log_buf, "log_buf_alloc")) in bpf_btf_load_log_buf() 241 ASSERT_OK_PTR(strstr(log_buf, "magic: 0xeb9f"), "good_log_2"); in bpf_btf_load_log_buf() [all …]
|
| A D | cgroup_getset_retval.c | 25 if (!ASSERT_OK_PTR(obj, "skel-load")) in test_setsockopt_set() 35 if (!ASSERT_OK_PTR(link_set_eunatch, "cg-attach-set_eunatch")) in test_setsockopt_set() 61 if (!ASSERT_OK_PTR(obj, "skel-load")) in test_setsockopt_set_and_get() 104 if (!ASSERT_OK_PTR(obj, "skel-load")) in test_setsockopt_default_zero() 140 if (!ASSERT_OK_PTR(obj, "skel-load")) in test_setsockopt_default_zero_and_set() 185 if (!ASSERT_OK_PTR(obj, "skel-load")) in test_setsockopt_override() 234 if (!ASSERT_OK_PTR(obj, "skel-load")) in test_setsockopt_legacy_eperm() 280 if (!ASSERT_OK_PTR(obj, "skel-load")) in test_setsockopt_legacy_no_override() 333 if (!ASSERT_OK_PTR(obj, "skel-load")) in test_getsockopt_get() 375 if (!ASSERT_OK_PTR(obj, "skel-load")) in test_getsockopt_override() [all …]
|
| 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(btf3, "multi_split_btf")) in __test_btf_split() 86 if (!ASSERT_OK_PTR(t, "split_union_type")) in __test_btf_split() 94 if (!ASSERT_OK_PTR(t, "split_base_type")) in __test_btf_split() 101 if (!ASSERT_OK_PTR(dump_buf_file, "dump_memstream")) in __test_btf_split() 104 if (!ASSERT_OK_PTR(d, "btf_dump__new")) in __test_btf_split()
|
| A D | bpf_tcp_ca.c | 208 if (!ASSERT_OK_PTR(link, "link")) in test_dctcp_autoattach_map() 289 if (!ASSERT_OK_PTR(link, "dctcp link")) in test_dctcp_fallback() 345 if (!ASSERT_OK_PTR(skel, "open_and_load")) in test_write_sk_pacing() 349 ASSERT_OK_PTR(link, "attach_struct_ops"); in test_write_sk_pacing() 361 if (!ASSERT_OK_PTR(skel, "open_and_load")) in test_incompl_cong_ops() 406 if (!ASSERT_OK_PTR(skel, "open")) in test_update_ca() 444 if (!ASSERT_OK_PTR(skel, "open")) in test_update_wrong() 480 if (!ASSERT_OK_PTR(skel, "open")) in test_mixed_links() 488 ASSERT_OK_PTR(link, "attach_struct_ops"); in test_mixed_links() 508 if (!ASSERT_OK_PTR(skel, "open")) in test_multi_links() [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 | 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() 165 if (!ASSERT_OK_PTR(btf2, "empty_split_btf")) in test_split_fwd_resolve() 229 if (!ASSERT_OK_PTR(btf1, "empty_main_btf")) in test_split_struct_duped() 254 if (!ASSERT_OK_PTR(btf2, "empty_split_btf")) in test_split_struct_duped() 363 if (!ASSERT_OK_PTR(btf1, "empty_main_btf")) in test_split_dup_struct_in_cu() 484 if (!ASSERT_OK_PTR(btf1, "split_btf")) in test_split_module() 498 if (!ASSERT_OK_PTR(t, "func_id_type")) in test_split_module() [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 | test_struct_ops_module.c | 46 ASSERT_OK_PTR(link, "attach_test_mod_1"); in attach_ops_and_check() 66 if (!ASSERT_OK_PTR(skel, "struct_ops_module_open")) in test_struct_ops_load() 110 if (!ASSERT_OK_PTR(skel, "struct_ops_module_open")) in test_struct_ops_not_zeroed() 124 if (!ASSERT_OK_PTR(skel, "struct_ops_module_open_not_zeroed")) in test_struct_ops_not_zeroed() 166 if (!ASSERT_OK_PTR(skel, "struct_ops_module_open")) in test_struct_ops_incompatible() 176 if (ASSERT_OK_PTR(link, "attach_struct_ops")) in test_struct_ops_incompatible() 190 if (!ASSERT_OK_PTR(skel, "skel_open")) in test_struct_ops_nulled_out_cb() 217 if (!ASSERT_OK_PTR(skel, "skel_open")) in test_struct_ops_forgotten_cb() 236 if (!ASSERT_OK_PTR(skel, "skel_open")) in test_struct_ops_forgotten_cb() 259 if (!ASSERT_OK_PTR(skel, "struct_ops_detach__open_and_load")) in test_detach_link() [all …]
|
| A D | struct_ops_private_stack.c | 15 if (!ASSERT_OK_PTR(skel, "struct_ops_private_stack__open")) in test_private_stack() 28 if (!ASSERT_OK_PTR(link, "attach_struct_ops")) in test_private_stack() 48 if (!ASSERT_OK_PTR(skel, "struct_ops_private_stack_fail__open")) in test_private_stack_fail() 72 if (!ASSERT_OK_PTR(skel, "struct_ops_private_stack_recur__open")) in test_private_stack_recur() 85 if (!ASSERT_OK_PTR(link, "attach_struct_ops")) in test_private_stack_recur()
|
| A D | btf_tag.c | 20 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()
|
| A D | bpf_loop.c | 13 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()
|
| A D | libbpf_str.c | 29 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() 140 ASSERT_OK_PTR(map_type_str, map_type_name); in test_libbpf_bpf_map_type_str() 176 if (!ASSERT_OK_PTR(btf, "btf_parse")) in test_libbpf_bpf_prog_type_str() 197 ASSERT_OK_PTR(prog_type_str, prog_type_name); in test_libbpf_bpf_prog_type_str()
|
| A D | xdp_flowtable.c | 82 if (!ASSERT_OK_PTR(tok, "setns")) in test_xdp_flowtable() 117 if (!ASSERT_OK_PTR(tok, "setns")) in test_xdp_flowtable() 127 if (!ASSERT_OK_PTR(tok, "setns")) in test_xdp_flowtable() 135 if (!ASSERT_OK_PTR(skel, "skel")) in test_xdp_flowtable() 140 if (!ASSERT_OK_PTR(link, "prog_attach")) in test_xdp_flowtable() 145 if (!ASSERT_OK_PTR(tok, "setns")) in test_xdp_flowtable() 153 if (!ASSERT_OK_PTR(tok, "setns")) in test_xdp_flowtable()
|
| A D | bpf_iter.c | 55 if (!ASSERT_OK_PTR(link, "attach_iter")) in do_dummy_read_opts() 92 if (!ASSERT_OK_PTR(link, "attach_map_iter")) in do_read_map_iter_fd() 192 if (!ASSERT_OK_PTR(link, "attach_iter")) in check_bpf_link_info() 486 if (!ASSERT_OK_PTR(link, "attach_iter")) in do_btf_read() 680 if (!ASSERT_OK_PTR(link, "attach_iter")) in test_file_iter() 780 if (!ASSERT_OK_PTR(link, "attach_iter")) in test_overflow() 788 if (!ASSERT_OK_PTR(buf, "malloc")) in test_overflow() 906 if (!ASSERT_OK_PTR(link, "attach_iter")) in test_bpf_hash_map() 958 if (!ASSERT_OK_PTR(val, "malloc")) in test_bpf_percpu_hash_map() 989 if (!ASSERT_OK_PTR(link, "attach_iter")) in test_bpf_percpu_hash_map() [all …]
|
| A D | rcu_read_lock.c | 21 if (!ASSERT_OK_PTR(skel, "skel_open")) in test_success() 58 if (!ASSERT_OK_PTR(skel, "skel_open")) in test_rcuptr_acquire() 97 if (!ASSERT_OK_PTR(skel, "skel_open")) in test_inproper_region() 101 if (!ASSERT_OK_PTR(prog, "bpf_object__find_program_by_name")) in test_inproper_region() 124 if (!ASSERT_OK_PTR(skel, "skel_open")) in test_rcuptr_misuse() 128 if (!ASSERT_OK_PTR(prog, "bpf_object__find_program_by_name")) in test_rcuptr_misuse()
|
| 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 | ptr_untrusted.c | 17 if (!ASSERT_OK_PTR(skel, "skel_open")) in serial_test_ptr_untrusted() 22 if (!ASSERT_OK_PTR(skel->links.lsm_run, "lsm_attach")) in serial_test_ptr_untrusted() 28 if (!ASSERT_OK_PTR(skel->links.raw_tp_run, "raw_tp_attach")) in serial_test_ptr_untrusted()
|
| 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 | cgrp_local_storage.c | 44 if (!ASSERT_OK_PTR(skel, "skel_open_and_load")) in test_tp_btf() 95 if (!ASSERT_OK_PTR(skel, "skel_open")) in test_attach_cgroup() 100 if (!ASSERT_OK_PTR(skel->links.set_cookie, "prog_attach")) in test_attach_cgroup() 105 if (!ASSERT_OK_PTR(skel->links.update_cookie_sockops, "prog_attach")) in test_attach_cgroup() 110 if (!ASSERT_OK_PTR(skel->links.update_cookie_tracing, "prog_attach")) in test_attach_cgroup() 147 if (!ASSERT_OK_PTR(skel, "skel_open_and_load")) in test_recursion() 184 if (!ASSERT_OK_PTR(skel, "skel_open")) in test_cgroup_iter_sleepable() 200 if (!ASSERT_OK_PTR(link, "attach_iter")) in test_cgroup_iter_sleepable() 223 if (!ASSERT_OK_PTR(skel, "skel_open")) in test_yes_rcu_lock() 251 if (!ASSERT_OK_PTR(skel, "skel_open")) in test_no_rcu_lock() [all …]
|
| A D | bpf_qdisc.c | 55 if (!ASSERT_OK_PTR(fifo_skel, "bpf_qdisc_fifo__open_and_load")) in test_fifo() 71 if (!ASSERT_OK_PTR(fq_skel, "bpf_qdisc_fq__open_and_load")) in test_fq() 93 if (!ASSERT_OK_PTR(fifo_skel, "bpf_qdisc_fifo__open_and_load")) in test_qdisc_attach_to_mq() 124 if (!ASSERT_OK_PTR(fifo_skel, "bpf_qdisc_fifo__open_and_load")) in test_qdisc_attach_to_non_root() 149 if (!ASSERT_OK_PTR(skel, "bpf_qdisc_fifo__open_and_load")) in test_incompl_ops() 182 if (!ASSERT_OK_PTR(fifo_skel, "bpf_qdisc_fifo__open_and_load")) in test_default_qdisc_attach_to_mq() 197 if (!ASSERT_OK_PTR(netns, "netns_new")) in test_default_qdisc_attach_to_mq()
|
| A D | dummy_st_ops.c | 19 if (!ASSERT_OK_PTR(skel, "dummy_st_ops_load")) in test_dummy_st_ops_attach() 39 if (!ASSERT_OK_PTR(skel, "dummy_st_ops_load")) in test_dummy_init_ret_value() 66 if (!ASSERT_OK_PTR(skel, "dummy_st_ops_load")) in test_dummy_init_ptr_arg() 72 if (!ASSERT_OK_PTR(trace_skel, "trace_dummy_st_ops__open")) in test_dummy_init_ptr_arg() 113 if (!ASSERT_OK_PTR(skel, "dummy_st_ops_load")) in test_dummy_multiple_args() 140 if (!ASSERT_OK_PTR(skel, "dummy_st_ops_load")) in test_dummy_sleepable() 165 if (!ASSERT_OK_PTR(skel, "dummy_st_ops_load")) in test_dummy_sleepable_reject_null()
|
| A D | task_pt_regs.c | 24 if (!ASSERT_OK_PTR(skel, "skel_open")) in test_task_pt_regs() 26 if (!ASSERT_OK_PTR(skel->bss, "check_bss")) in test_task_pt_regs() 34 if (!ASSERT_OK_PTR(uprobe_link, "attach_uprobe")) in test_task_pt_regs()
|