/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | ringbuf.c | 108 if (!ASSERT_ERR_PTR(tmp_ptr, "rw_extend")) in test_ringbuf() 116 ASSERT_ERR_PTR(mmap_ptr, "wr_prod_pos"); in test_ringbuf() 122 ASSERT_ERR_PTR(mmap_ptr, "wr_data_page_one"); in test_ringbuf() 125 ASSERT_ERR_PTR(mmap_ptr, "wr_data_page_two"); in test_ringbuf() 127 ASSERT_ERR_PTR(mmap_ptr, "wr_data_page_all"); in test_ringbuf() 136 ASSERT_ERR_PTR(mremap(mmap_ptr, 0, 4 * page_size, MREMAP_MAYMOVE), "ro_remap"); in test_ringbuf() 146 ASSERT_ERR_PTR(mremap(mmap_ptr, 0, 3 * page_size, MREMAP_MAYMOVE), "ro_remap"); in test_ringbuf()
|
D | get_stackid_cannot_attach.c | 51 ASSERT_ERR_PTR(skel->links.oncpu, "attach_perf_event_no_callchain"); in test_get_stackid_cannot_attach() 83 ASSERT_ERR_PTR(skel->links.oncpu, "attach_perf_event_exclude_callchain_kernel"); in test_get_stackid_cannot_attach()
|
D | kprobe_multi_test.c | 240 if (!ASSERT_ERR_PTR(link, "fail_1")) in test_attach_api_fails() 254 if (!ASSERT_ERR_PTR(link, "fail_2")) in test_attach_api_fails() 268 if (!ASSERT_ERR_PTR(link, "fail_3")) in test_attach_api_fails() 282 if (!ASSERT_ERR_PTR(link, "fail_4")) in test_attach_api_fails() 296 if (!ASSERT_ERR_PTR(link, "fail_5")) in test_attach_api_fails()
|
D | find_vma.c | 97 if (!ASSERT_ERR_PTR(skel, "find_vma_fail1__open_and_load")) in test_illegal_write_vma() 106 if (!ASSERT_ERR_PTR(skel, "find_vma_fail2__open_and_load")) in test_illegal_write_task()
|
D | d_path.c | 166 ASSERT_ERR_PTR(skel, "unexpected_load_overwriting_rdonly_mem"); in test_d_path_check_rdonly_mem() 176 ASSERT_ERR_PTR(skel, "unexpected_load_passing_wrong_type"); in test_d_path_check_types()
|
D | xdp_link.c | 55 if (!ASSERT_ERR_PTR(link, "link_attach_should_fail")) { in serial_test_xdp_link() 98 if (!ASSERT_ERR_PTR(link, "link_attach_should_fail")) { in serial_test_xdp_link()
|
D | cgroup_iter.c | 107 ASSERT_ERR_PTR(link, "attach_iter"); in test_invalid_cgroup() 125 ASSERT_ERR_PTR(link, "attach_iter"); in test_invalid_cgroup_spec()
|
D | xdp_bonding.c | 424 if (!ASSERT_ERR_PTR(link2, "attach program to master when slave has program")) in test_xdp_bonding_attach() 437 if (!ASSERT_ERR_PTR(link2, "attach program to slave when master has program")) in test_xdp_bonding_attach() 454 if (!ASSERT_ERR_PTR(link, "attach program to master when slave does not support XDP")) in test_xdp_bonding_attach()
|
D | timer_mim.c | 64 if (!ASSERT_ERR_PTR(timer_reject_skel, "timer_reject_skel_load")) in serial_test_timer_mim()
|
D | test_lsm.c | 66 if (!ASSERT_ERR_PTR(link, "attach_link")) in test_lsm()
|
D | trampoline_count.c | 66 if (!ASSERT_ERR_PTR(link, "attach_prog")) { in serial_test_trampoline_count()
|
D | bpf_tcp_ca.c | 326 ASSERT_ERR_PTR(rel_skel, "rel_skel"); in test_rel_setsockopt() 361 ASSERT_ERR_PTR(link, "attach_struct_ops"); in test_incompl_cong_ops()
|
D | bpf_iter.c | 43 if (!ASSERT_ERR_PTR(skel, "bpf_iter_test_kern3__open_and_load")) { in test_btf_id_or_null() 801 if (!ASSERT_ERR_PTR(link, "attach_iter")) in test_bpf_hash_map() 806 if (!ASSERT_ERR_PTR(link, "attach_iter")) in test_bpf_hash_map() 828 if (!ASSERT_ERR_PTR(link, "attach_sleepable_prog_to_iter")) in test_bpf_hash_map() 1334 if (!ASSERT_ERR_PTR(link, "attach_iter")) in test_rdonly_buf_out_of_bound() 1345 if (!ASSERT_ERR_PTR(skel, "bpf_iter_test_kern6__open_and_load")) in test_buf_neg_offset()
|
D | custom_sec_handlers.c | 156 ASSERT_ERR_PTR(skel->links.xyz, "xyz_attach"); in test_custom_sec_handlers()
|
D | for_each.c | 142 if (!ASSERT_ERR_PTR(skel, "for_each_map_elem_write_key__open_and_load")) in test_write_map_key()
|
D | attach_probe.c | 172 if (!ASSERT_ERR_PTR(skel->links.handle_kprobe_sleepable, "attach_kprobe_sleepable")) in test_attach_probe()
|
D | cgroup_link.c | 145 if (!ASSERT_ERR_PTR(tmp_link, "cg_attach_fail")) { in serial_test_cgroup_link()
|
D | usdt.c | 269 if (!ASSERT_ERR_PTR(skel->links.usdt_100, "usdt_300_bad_attach")) in subtest_multispec_usdt()
|
D | user_ringbuf.c | 117 ASSERT_ERR_PTR(mremap(mmap_ptr, 0, 4 * page_size, MREMAP_MAYMOVE), "wr_prod_pos"); in test_user_ringbuf_mappings()
|
/linux-6.1.9/tools/testing/selftests/bpf/ |
D | test_progs.h | 361 #define ASSERT_ERR_PTR(ptr, name) ({ \ macro
|