Home
last modified time | relevance | path

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

12

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dringbuf.c168 if (!ASSERT_ERR_PTR(tmp_ptr, "rw_extend")) in ringbuf_subtest()
176 ASSERT_ERR_PTR(mmap_ptr, "wr_prod_pos"); in ringbuf_subtest()
182 ASSERT_ERR_PTR(mmap_ptr, "wr_data_page_one"); in ringbuf_subtest()
185 ASSERT_ERR_PTR(mmap_ptr, "wr_data_page_two"); in ringbuf_subtest()
187 ASSERT_ERR_PTR(mmap_ptr, "wr_data_page_all"); in ringbuf_subtest()
196 ASSERT_ERR_PTR(mremap(mmap_ptr, 0, 4 * page_size, MREMAP_MAYMOVE), "ro_remap"); in ringbuf_subtest()
206 ASSERT_ERR_PTR(mremap(mmap_ptr, 0, 3 * page_size, MREMAP_MAYMOVE), "ro_remap"); in ringbuf_subtest()
Dget_stackid_cannot_attach.c51 ASSERT_ERR_PTR(skel->links.oncpu, "attach_perf_event_no_callchain"); in test_get_stackid_cannot_attach()
84 ASSERT_ERR_PTR(skel->links.oncpu, "attach_perf_event_exclude_callchain_kernel"); in test_get_stackid_cannot_attach()
Dtc_links.c468 if (!ASSERT_ERR_PTR(link, "link_attach_should_fail")) { in test_tc_links_revision_target()
725 if (!ASSERT_ERR_PTR(link, "link_attach_should_fail")) { in test_tc_links_replace_target()
739 if (!ASSERT_ERR_PTR(link, "link_attach_should_fail")) { in test_tc_links_replace_target()
752 if (!ASSERT_ERR_PTR(link, "link_attach_should_fail")) { in test_tc_links_replace_target()
887 if (!ASSERT_ERR_PTR(link, "link_attach_should_fail")) { in test_tc_links_invalid_target()
899 if (!ASSERT_ERR_PTR(link, "link_attach_should_fail")) { in test_tc_links_invalid_target()
911 if (!ASSERT_ERR_PTR(link, "link_attach_should_fail")) { in test_tc_links_invalid_target()
923 if (!ASSERT_ERR_PTR(link, "link_attach_should_fail")) { in test_tc_links_invalid_target()
936 if (!ASSERT_ERR_PTR(link, "link_attach_should_fail")) { in test_tc_links_invalid_target()
948 if (!ASSERT_ERR_PTR(link, "link_attach_should_fail")) { in test_tc_links_invalid_target()
[all …]
Dkprobe_multi_test.c245 if (!ASSERT_ERR_PTR(link, "fail_1")) in test_attach_api_fails()
260 if (!ASSERT_ERR_PTR(link, "fail_2")) in test_attach_api_fails()
275 if (!ASSERT_ERR_PTR(link, "fail_3")) in test_attach_api_fails()
290 if (!ASSERT_ERR_PTR(link, "fail_4")) in test_attach_api_fails()
305 if (!ASSERT_ERR_PTR(link, "fail_5")) in test_attach_api_fails()
320 if (!ASSERT_ERR_PTR(link, "fail_6")) in test_attach_api_fails()
711 if (!ASSERT_ERR_PTR(link, "override_attached_bpf_fentry_test1")) { in test_attach_override()
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()
Dnetfilter_link_attach.c103 ASSERT_ERR_PTR(link2, "attach program with same pf/hook/priority"); in test_netfilter_link_attach()
117 ASSERT_ERR_PTR(link, "program load failure"); in test_netfilter_link_attach()
Dtest_struct_ops_maybe_null.c30 if (ASSERT_ERR_PTR(skel, "struct_ops_module_fail__open_and_load")) in maybe_null_fail()
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()
Dd_path.c183 ASSERT_ERR_PTR(skel, "unexpected_load_overwriting_rdonly_mem"); in test_d_path_check_rdonly_mem()
193 ASSERT_ERR_PTR(skel, "unexpected_load_passing_wrong_type"); in test_d_path_check_types()
Dtoken.c722 if (!ASSERT_ERR_PTR(skel, "obj_tokenless_load")) { in userns_obj_priv_map()
750 if (!ASSERT_ERR_PTR(skel, "obj_tokenless_load")) { in userns_obj_priv_prog()
844 if (!ASSERT_ERR_PTR(skel, "obj_tokenless_load")) { in userns_obj_priv_implicit_token()
863 if (!ASSERT_ERR_PTR(skel, "obj_token_envvar_disabled_load")) { in userns_obj_priv_implicit_token()
903 if (!ASSERT_ERR_PTR(skel, "obj_tokenless_load")) { in userns_obj_priv_implicit_token_envvar()
923 if (!ASSERT_ERR_PTR(skel, "obj_tokenless_load2")) { in userns_obj_priv_implicit_token_envvar()
Duprobe.c66 if (!ASSERT_ERR_PTR(skel->links.test4, "urandlib_api_attach_conflict")) in test_uprobe()
Dtimer_mim.c64 if (!ASSERT_ERR_PTR(timer_reject_skel, "timer_reject_skel_load")) in serial_test_timer_mim()
Dxdp_bonding.c417 if (!ASSERT_ERR_PTR(link2, "attach program to master when slave has program")) in test_xdp_bonding_attach()
430 if (!ASSERT_ERR_PTR(link2, "attach program to slave when master has program")) in test_xdp_bonding_attach()
447 if (!ASSERT_ERR_PTR(link, "attach program to master when slave does not support XDP")) in test_xdp_bonding_attach()
Dcgroup_iter.c108 ASSERT_ERR_PTR(link, "attach_iter"); in test_invalid_cgroup()
126 ASSERT_ERR_PTR(link, "attach_iter"); in test_invalid_cgroup_spec()
Dtrampoline_count.c71 if (!ASSERT_ERR_PTR(link, "attach_prog")) { in serial_test_trampoline_count()
Dtest_lsm.c67 if (!ASSERT_ERR_PTR(link, "attach_link")) in test_lsm()
Dringbuf_multi.c95 ASSERT_ERR_PTR(ring, "ring_buffer__ring_idx_1"); in test_ringbuf_multi()
Dbpf_iter.c42 if (!ASSERT_ERR_PTR(skel, "bpf_iter_test_kern3__open_and_load")) { in test_btf_id_or_null()
806 if (!ASSERT_ERR_PTR(link, "attach_iter")) in test_bpf_hash_map()
811 if (!ASSERT_ERR_PTR(link, "attach_iter")) in test_bpf_hash_map()
833 if (!ASSERT_ERR_PTR(link, "attach_sleepable_prog_to_iter")) in test_bpf_hash_map()
1352 if (!ASSERT_ERR_PTR(link, "attach_iter")) in test_rdonly_buf_out_of_bound()
1363 if (!ASSERT_ERR_PTR(skel, "bpf_iter_test_kern6__open_and_load")) in test_buf_neg_offset()
Drbtree.c168 if (!ASSERT_ERR_PTR(skel, \
Dcustom_sec_handlers.c156 ASSERT_ERR_PTR(skel->links.xyz, "xyz_attach"); in test_custom_sec_handlers()
Dbpf_tcp_ca.c337 ASSERT_ERR_PTR(rel_skel, "rel_skel"); in test_rel_setsockopt()
372 ASSERT_ERR_PTR(link, "attach_struct_ops"); in test_incompl_cong_ops()
Dfor_each.c143 if (!ASSERT_ERR_PTR(skel, "for_each_map_elem_write_key__open_and_load")) in test_write_map_key()
Dcgroup_link.c145 if (!ASSERT_ERR_PTR(tmp_link, "cg_attach_fail")) { in serial_test_cgroup_link()
Dcgrp_local_storage.c168 if (!ASSERT_ERR_PTR(skel, "skel_open_and_load")) { in test_negative()
Dattach_probe.c255 ASSERT_ERR_PTR(skel->links.handle_kprobe_sleepable, "attach_kprobe_sleepable"); in test_kprobe_sleepable()

12