Home
last modified time | relevance | path

Searched refs:ASSERT_ERR_PTR (Results 1 – 20 of 20) sorted by relevance

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dringbuf.c108 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()
Dget_stackid_cannot_attach.c51 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()
Dkprobe_multi_test.c240 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()
Dfind_vma.c97 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()
Dd_path.c166 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()
Dxdp_link.c55 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()
Dcgroup_iter.c107 ASSERT_ERR_PTR(link, "attach_iter"); in test_invalid_cgroup()
125 ASSERT_ERR_PTR(link, "attach_iter"); in test_invalid_cgroup_spec()
Dxdp_bonding.c424 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()
Dtimer_mim.c64 if (!ASSERT_ERR_PTR(timer_reject_skel, "timer_reject_skel_load")) in serial_test_timer_mim()
Dtest_lsm.c66 if (!ASSERT_ERR_PTR(link, "attach_link")) in test_lsm()
Dtrampoline_count.c66 if (!ASSERT_ERR_PTR(link, "attach_prog")) { in serial_test_trampoline_count()
Dbpf_tcp_ca.c326 ASSERT_ERR_PTR(rel_skel, "rel_skel"); in test_rel_setsockopt()
361 ASSERT_ERR_PTR(link, "attach_struct_ops"); in test_incompl_cong_ops()
Dbpf_iter.c43 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()
Dcustom_sec_handlers.c156 ASSERT_ERR_PTR(skel->links.xyz, "xyz_attach"); in test_custom_sec_handlers()
Dfor_each.c142 if (!ASSERT_ERR_PTR(skel, "for_each_map_elem_write_key__open_and_load")) in test_write_map_key()
Dattach_probe.c172 if (!ASSERT_ERR_PTR(skel->links.handle_kprobe_sleepable, "attach_kprobe_sleepable")) in test_attach_probe()
Dcgroup_link.c145 if (!ASSERT_ERR_PTR(tmp_link, "cg_attach_fail")) { in serial_test_cgroup_link()
Dusdt.c269 if (!ASSERT_ERR_PTR(skel->links.usdt_100, "usdt_300_bad_attach")) in subtest_multispec_usdt()
Duser_ringbuf.c117 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/
Dtest_progs.h361 #define ASSERT_ERR_PTR(ptr, name) ({ \ macro