Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/bpf/prog_tests/
H A 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()
H A 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 …]
H A Dkprobe_multi_test.c246 if (!ASSERT_ERR_PTR(link, "fail_1")) in test_attach_api_fails()
261 if (!ASSERT_ERR_PTR(link, "fail_2")) in test_attach_api_fails()
276 if (!ASSERT_ERR_PTR(link, "fail_3")) in test_attach_api_fails()
291 if (!ASSERT_ERR_PTR(link, "fail_4")) in test_attach_api_fails()
306 if (!ASSERT_ERR_PTR(link, "fail_5")) in test_attach_api_fails()
321 if (!ASSERT_ERR_PTR(link, "fail_6")) in test_attach_api_fails()
712 if (!ASSERT_ERR_PTR(link, "override_attached_bpf_fentry_test1")) { in test_attach_override()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
848 if (!ASSERT_ERR_PTR(skel, "obj_tokenless_load")) { in userns_obj_priv_implicit_token()
867 if (!ASSERT_ERR_PTR(skel, "obj_token_envvar_disabled_load")) { in userns_obj_priv_implicit_token()
908 if (!ASSERT_ERR_PTR(skel, "obj_tokenless_load")) { in userns_obj_priv_implicit_token_envvar()
928 if (!ASSERT_ERR_PTR(skel, "obj_tokenless_load2")) { in userns_obj_priv_implicit_token_envvar()
H A 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()
H A Dtest_struct_ops_maybe_null.c30 if (ASSERT_ERR_PTR(skel, "struct_ops_module_fail__open_and_load")) in maybe_null_fail()
H A 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()
H A Duprobe.c66 if (!ASSERT_ERR_PTR(skel->links.test4, "urandlib_api_attach_conflict")) in test_uprobe()
H A 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()
H A Dtimer_mim.c64 if (!ASSERT_ERR_PTR(timer_reject_skel, "timer_reject_skel_load")) in serial_test_timer_mim()
H A Dtrampoline_count.c71 if (!ASSERT_ERR_PTR(link, "attach_prog")) { in serial_test_trampoline_count()
H A Dtest_lsm.c67 if (!ASSERT_ERR_PTR(link, "attach_link")) in test_lsm()
H A 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()
H A Dringbuf_multi.c95 ASSERT_ERR_PTR(ring, "ring_buffer__ring_idx_1"); in test_ringbuf_multi()
H A Drbtree.c168 if (!ASSERT_ERR_PTR(skel, \
H A Dcustom_sec_handlers.c156 ASSERT_ERR_PTR(skel->links.xyz, "xyz_attach"); in test_custom_sec_handlers()
H A Dbpf_tcp_ca.c333 ASSERT_ERR_PTR(rel_skel, "rel_skel"); in test_rel_setsockopt()
368 ASSERT_ERR_PTR(link, "attach_struct_ops"); in test_incompl_cong_ops()
H A Dfor_each.c143 if (!ASSERT_ERR_PTR(skel, "for_each_map_elem_write_key__open_and_load")) in test_write_map_key()
H A Dcgroup_link.c145 if (!ASSERT_ERR_PTR(tmp_link, "cg_attach_fail")) { in serial_test_cgroup_link()
H A Dcgrp_local_storage.c168 if (!ASSERT_ERR_PTR(skel, "skel_open_and_load")) { in test_negative()
H A Dattach_probe.c255 ASSERT_ERR_PTR(skel->links.handle_kprobe_sleepable, "attach_kprobe_sleepable"); in test_kprobe_sleepable()

12