Home
last modified time | relevance | path

Searched refs:IS_ERR (Results 1 – 25 of 37) sorted by relevance

12

/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dtest_overhead.c71 if (CHECK(IS_ERR(obj), "obj_open_file", "err %ld\n", PTR_ERR(obj))) in test_test_overhead()
107 if (CHECK(IS_ERR(link), "attach_kprobe", "err %ld\n", PTR_ERR(link))) in test_test_overhead()
115 if (CHECK(IS_ERR(link), "attach kretprobe", "err %ld\n", PTR_ERR(link))) in test_test_overhead()
122 if (CHECK(IS_ERR(link), "attach fentry", "err %ld\n", PTR_ERR(link))) in test_test_overhead()
129 if (CHECK(IS_ERR(link), "attach fentry", "err %ld\n", PTR_ERR(link))) in test_test_overhead()
136 if (CHECK(IS_ERR(link), "attach fexit", "err %ld\n", PTR_ERR(link))) in test_test_overhead()
Dattach_probe.c77 if (CHECK(IS_ERR(obj), "obj_open_mem", "err %ld\n", PTR_ERR(obj))) in test_attach_probe()
116 if (CHECK(IS_ERR(kprobe_link), "attach_kprobe", in test_attach_probe()
124 if (CHECK(IS_ERR(kretprobe_link), "attach_kretprobe", in test_attach_probe()
134 if (CHECK(IS_ERR(uprobe_link), "attach_uprobe", in test_attach_probe()
144 if (CHECK(IS_ERR(uretprobe_link), "attach_uretprobe", in test_attach_probe()
Dkfree_skb.c99 if (CHECK(IS_ERR(link), "attach_raw_tp", "err %ld\n", PTR_ERR(link))) in test_kfree_skb()
102 if (CHECK(IS_ERR(link_fentry), "attach fentry", "err %ld\n", in test_kfree_skb()
106 if (CHECK(IS_ERR(link_fexit), "attach fexit", "err %ld\n", in test_kfree_skb()
118 if (CHECK(IS_ERR(pb), "perf_buf__new", "err %ld\n", PTR_ERR(pb))) in test_kfree_skb()
Dprobe_user.c19 if (CHECK(IS_ERR(obj), "obj_open_file", "err %ld\n", PTR_ERR(obj))) in test_probe_user()
38 if (CHECK(IS_ERR(kprobe_link), "attach_kprobe", in test_probe_user()
Dperf_buffer.c54 if (CHECK(IS_ERR(link), "attach_kprobe", "err %ld\n", PTR_ERR(link))) in test_perf_buffer()
61 if (CHECK(IS_ERR(pb), "perf_buf__new", "err %ld\n", PTR_ERR(pb))) in test_perf_buffer()
Drdonly_maps.c36 if (CHECK(IS_ERR(obj), "obj_open", "err %ld\n", PTR_ERR(obj))) in test_rdonly_maps()
64 if (CHECK(IS_ERR(link), "attach_prog", "prog '%s', err %ld\n", in test_rdonly_maps()
Dbtf_dump.c34 if (IS_ERR(d)) in btf_dump_all_types()
58 if (CHECK(IS_ERR(btf), "btf_parse_elf", in test_btf_dump_case()
Dfentry_fexit.c42 if (CHECK(IS_ERR(link[i]), "attach_trace", "failed to link\n")) in test_fentry_fexit()
55 if (CHECK(IS_ERR(link[i]), "attach_trace", "failed to link\n")) in test_fentry_fexit()
Dget_stack_raw_tp.c119 if (CHECK(IS_ERR(link), "attach_raw_tp", "err %ld\n", PTR_ERR(link))) in test_get_stack_raw_tp()
124 if (CHECK(IS_ERR(pb), "perf_buf__new", "err %ld\n", PTR_ERR(pb))) in test_get_stack_raw_tp()
Dreference_tracking.c18 if (CHECK_FAIL(IS_ERR(obj))) in test_reference_tracking()
Dstacktrace_map_raw_tp.c24 if (CHECK(IS_ERR(link), "attach_raw_tp", "err %ld\n", PTR_ERR(link))) in test_stacktrace_map_raw_tp()
Dmmap.c40 if (CHECK(IS_ERR(obj), "obj_open", "failed to open '%s': %ld\n", in test_mmap()
86 if (CHECK(IS_ERR(link), "attach_raw_tp", "err %ld\n", PTR_ERR(link))) in test_mmap()
Dstacktrace_map.c24 if (CHECK(IS_ERR(link), "attach_tp", "err %ld\n", PTR_ERR(link))) in test_stacktrace_map()
Dfexit_test.c35 if (CHECK(IS_ERR(link[i]), "attach_trace", "failed to link\n")) in test_fexit_test()
Dfentry_test.c35 if (CHECK(IS_ERR(link[i]), "attach_trace", "failed to link\n")) in test_fentry_test()
Dfexit_bpf2bpf.c49 if (CHECK(IS_ERR(link[i]), "attach_trace", "failed to link\n")) in test_fexit_bpf2bpf_common()
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dlinuxkernel-must-check-errs.c8 int __must_check IS_ERR(const void *ptr);
18 IS_ERR((void *)0); in f()
32 if (IS_ERR((void *)0)) { in f2()
/external/erofs-utils/lib/
Dinode.c144 if (IS_ERR(bh)) in __allocate_inode_bh_data()
480 if (IS_ERR(xattrs)) in erofs_bh_flush_write_inode()
520 if (IS_ERR(bh)) in erofs_prepare_tail_block()
571 if (IS_ERR(bh)) in erofs_prepare_inode_buffer()
574 } else if (IS_ERR(bh)) { in erofs_prepare_inode_buffer()
581 if (IS_ERR(ibh)) in erofs_prepare_inode_buffer()
866 if (IS_ERR(inode)) in erofs_iget_from_path()
981 if (IS_ERR(d)) { in erofs_mkfs_build_tree()
1025 if (IS_ERR(d->inode)) { in erofs_mkfs_build_tree()
1057 if (IS_ERR(inode)) in erofs_mkfs_build_tree_from_path()
Dxattr.c337 if (IS_ERR(item)) { in read_xattrs_from_file()
351 if (IS_ERR(item)) in read_xattrs_from_file()
390 if (IS_ERR(item)) in erofs_droid_xattr_set_caps()
572 if (IS_ERR(bh)) { in erofs_build_shared_xattrs_from_path()
Dexclude.c94 if (IS_ERR(r)) { in erofs_parse_exclude_path()
/external/erofs-utils/include/erofs/
Derr.h23 static inline int IS_ERR(const void *ptr) in IS_ERR() function
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_hashmap.c62 if (CHECK(IS_ERR(map), "failed to create map: %ld\n", PTR_ERR(map))) in test_hashmap_generic()
269 if (CHECK(IS_ERR(map), "failed to create map: %ld\n", PTR_ERR(map))) in test_hashmap_multimap()
343 if (CHECK(IS_ERR(map), "failed to create map: %ld\n", PTR_ERR(map))) in test_hashmap_empty()
Dtest_maps.c842 if (IS_ERR(bpf_map_rx)) { in test_sockmap()
854 if (IS_ERR(bpf_map_tx)) { in test_sockmap()
866 if (IS_ERR(bpf_map_msg)) { in test_sockmap()
878 if (IS_ERR(bpf_map_break)) { in test_sockmap()
1160 if (IS_ERR(map)) { in test_map_in_map()
1171 if (IS_ERR(map)) { in test_map_in_map()
1184 if (IS_ERR(map)) { in test_map_in_map()
1201 if (IS_ERR(map)) { in test_map_in_map()
/external/squashfs-tools/kernel/fs/squashfs/
Dsuper.c211 if (IS_ERR(msblk->id_table)) { in squashfs_fill_super()
231 if (IS_ERR(msblk->fragment_index)) { in squashfs_fill_super()
245 if (IS_ERR(msblk->inode_lookup_table)) { in squashfs_fill_super()
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/
Dlinuxkernel-must-use-errs.rst11 ``IS_ERR``, ``IS_ERR_OR_NULL``, ``ERR_CAST``, and ``PTR_ERR_OR_ZERO`` return

12