Home
last modified time | relevance | path

Searched refs:errno (Results 1 – 25 of 350) sorted by relevance

12345678910>>...14

/tools/testing/selftests/filesystems/binderfs/
Dbinderfs_test.c25 if (ret < 0 && errno == EINTR) in write_nointr()
40 strerror(errno), filename); in write_to_file()
44 if (allowed_errno && (errno == allowed_errno)) { in write_to_file()
59 saved_errno = errno; in write_to_file()
61 errno = saved_errno; in write_to_file()
65 strerror(errno), filename); in write_to_file()
84 strerror(errno)); in change_to_userns()
91 strerror(errno)); in change_to_userns()
98 strerror(errno)); in change_to_userns()
105 strerror(errno)); in change_to_userns()
[all …]
/tools/testing/selftests/capabilities/
Dtest_execve.c43 ksft_exit_fail_msg("vsnprintf failed - %s\n", strerror(errno)); in vmaybe_write_file()
51 if ((errno == ENOENT) && enoent_ok) in vmaybe_write_file()
54 filename, strerror(errno)); in vmaybe_write_file()
62 filename, strerror(errno)); in vmaybe_write_file()
67 filename, strerror(errno)); in vmaybe_write_file()
107 strerror(errno)); in create_and_enter_ns()
109 ksft_exit_fail_msg("setresuid - %s\n", strerror(errno)); in create_and_enter_ns()
118 "capng_apply - %s\n", strerror(errno)); in create_and_enter_ns()
134 strerror(errno)); in create_and_enter_ns()
143 ksft_exit_fail_msg("getcwd - %s\n", strerror(errno)); in chdir_to_tmpfs()
[all …]
/tools/testing/selftests/membarrier/
Dmembarrier_test_impl.h27 if (errno != EINVAL) { in test_membarrier_cmd_fail()
31 errno, strerror(errno)); in test_membarrier_cmd_fail()
36 test_name, cmd, flags, errno); in test_membarrier_cmd_fail()
50 if (errno != EINVAL) { in test_membarrier_flags_fail()
54 errno, strerror(errno)); in test_membarrier_flags_fail()
59 test_name, flags, errno); in test_membarrier_flags_fail()
71 test_name, flags, errno); in test_membarrier_global_success()
89 if (errno != EPERM) { in test_membarrier_private_expedited_fail()
93 errno, strerror(errno)); in test_membarrier_private_expedited_fail()
98 test_name, flags, errno); in test_membarrier_private_expedited_fail()
[all …]
/tools/testing/selftests/exec/
Drecursion-depth.c30 if (errno == ENOSYS || errno == EPERM) { in main()
31 fprintf(stderr, "error: unshare, errno %d\n", errno); in main()
34 fprintf(stderr, "error: unshare, errno %d\n", errno); in main()
38 fprintf(stderr, "error: mount '/', errno %d\n", errno); in main()
43 fprintf(stderr, "error: mount ramfs, errno %d\n", errno); in main()
51 fprintf(stderr, "error: creat, errno %d\n", errno); in main()
56 fprintf(stderr, "error: write, errno %d\n", errno); in main()
62 if (rv == -1 && errno == ELOOP) { in main()
65 fprintf(stderr, "error: execve, rv %d, errno %d\n", rv, errno); in main()
/tools/testing/selftests/tmpfs/
Dbug-link-o-tmpfile.c31 if (errno == ENOSYS || errno == EPERM) { in main()
32 fprintf(stderr, "error: unshare, errno %d\n", errno); in main()
35 fprintf(stderr, "error: unshare, errno %d\n", errno); in main()
39 fprintf(stderr, "error: mount '/', errno %d\n", errno); in main()
45 fprintf(stderr, "error: mount tmpfs, errno %d\n", errno); in main()
51 fprintf(stderr, "error: open 1, errno %d\n", errno); in main()
55 fprintf(stderr, "error: linkat, errno %d\n", errno); in main()
62 fprintf(stderr, "error: open 2, errno %d\n", errno); in main()
/tools/testing/selftests/breakpoints/
Dstep_after_suspend_test.c32 strerror(errno)); in child()
38 strerror(errno)); in child()
43 ksft_print_msg("raise(SIGSTOP) failed: %s\n", strerror(errno)); in child()
57 ksft_print_msg("fork() failed: %s\n", strerror(errno)); in run_test()
65 ksft_print_msg("waitpid() failed: %s\n", strerror(errno)); in run_test()
69 ksft_print_msg("child did not stop: %s\n", strerror(errno)); in run_test()
74 strerror(errno)); in run_test()
79 if (errno == EIO) { in run_test()
82 strerror(errno)); in run_test()
85 strerror(errno)); in run_test()
[all …]
/tools/testing/selftests/pidfd/
Dpidfd_wait.c55 test_name, strerror(errno)); in test_pidfd_wait_simple()
61 test_name, strerror(errno)); in test_pidfd_wait_simple()
68 test_name, strerror(errno)); in test_pidfd_wait_simple()
74 test_name, strerror(errno)); in test_pidfd_wait_simple()
81 test_name, strerror(errno)); in test_pidfd_wait_simple()
90 test_name, parent_tid, pidfd, strerror(errno)); in test_pidfd_wait_simple()
95 test_name, parent_tid, pidfd, strerror(errno)); in test_pidfd_wait_simple()
102 strerror(errno)); in test_pidfd_wait_simple()
108 strerror(errno)); in test_pidfd_wait_simple()
114 strerror(errno)); in test_pidfd_wait_simple()
[all …]
Dpidfd_poll_test.c53 if (errno == EAGAIN) { in main()
59 strerror(errno)); in main()
72 strerror(errno)); in main()
77 strerror(errno)); in main()
83 strerror(errno)); in main()
92 strerror(errno)); in main()
111 strerror(errno)); in main()
/tools/iio/
Diio_utils.c115 ret = -errno; in iioutils_get_type()
132 ret = -errno; in iioutils_get_type()
145 ret = -errno; in iioutils_get_type()
165 ret = -errno; in iioutils_get_type()
240 ret = -errno; in iioutils_get_param_float()
257 ret = -errno; in iioutils_get_param_float()
261 errno = 0; in iioutils_get_param_float()
263 ret = errno ? -errno : -ENODATA; in iioutils_get_param_float()
330 ret = -errno; in build_channel_array()
346 ret = -errno; in build_channel_array()
[all …]
/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c152 btf_fd, errno); in create_sk_storage_map()
159 "bpf_create_map_xattr()", "errno:%d\n", errno); in create_sk_storage_map()
189 err = -errno; in insert_close_thread()
190 fprintf(stderr, "socket(): errno:%d\n", errno); in insert_close_thread()
196 err = -errno; in insert_close_thread()
199 errno); in insert_close_thread()
243 err = -errno; in do_sk_storage_map_stress_free()
293 if (err && errno != EAGAIN) { in update_thread()
294 err = -errno; in update_thread()
296 err, errno); in update_thread()
[all …]
/tools/hv/
Dhv_vss_daemon.c51 if ((cmd == FIFREEZE && errno == EBUSY) || in vss_do_freeze()
52 (cmd == FITHAW && errno == EINVAL)) { in vss_do_freeze()
79 } else if (errno != ENOENT) { in is_dev_loop()
81 buffer, errno, strerror(errno)); in is_dev_loop()
87 if (errno != ENOENT) in is_dev_loop()
89 buffer, errno, strerror(errno)); in is_dev_loop()
142 ent->mnt_fsname, errno, strerror(errno)); in vss_operate()
172 save_errno = errno; in vss_operate()
238 errno, strerror(errno)); in main()
249 errno, strerror(errno)); in main()
[all …]
/tools/testing/selftests/net/
Dreuseport_addr_any.c46 error(1, errno, "inet_pton failed: %s", addr_str); in build_rcv_fd()
56 error(1, errno, "inet_pton failed: %s", addr_str); in build_rcv_fd()
73 error(1, errno, "failed to create receive socket"); in build_rcv_fd()
78 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_fd()
81 error(1, errno, "failed to bind receive socket"); in build_rcv_fd()
84 error(1, errno, "tcp: failed to listen on receive port"); in build_rcv_fd()
89 error(1, errno, "failed to setsockopt"); in build_rcv_fd()
92 error(1, errno, "dccp: failed to listen on receive port"); in build_rcv_fd()
114 error(1, errno, "inet_pton failed: %s", IP4_ADDR); in connect_and_send()
127 error(1, errno, "inet_pton failed: %s", IP6_ADDR); in connect_and_send()
[all …]
Dreuseport_bpf.c124 error(1, errno, "ebpf error. log:\n%s\n", bpf_log_buf); in attach_ebpf()
128 error(1, errno, "failed to set SO_ATTACH_REUSEPORT_EBPF"); in attach_ebpf()
149 error(1, errno, "failed to set SO_ATTACH_REUSEPORT_CBPF"); in attach_cbpf()
162 error(1, errno, "failed to create recv %d", i); in build_recv_group()
167 error(1, errno, "failed to set SO_REUSEPORT on %d", i); in build_recv_group()
173 error(1, errno, "failed to bind recv socket %d", i); in build_recv_group()
179 error(1, errno, in build_recv_group()
182 error(1, errno, "failed to listen on socket"); in build_recv_group()
197 error(1, errno, "failed to create send socket"); in send_from()
200 error(1, errno, "failed to set reuseaddr"); in send_from()
[all …]
Dtcp_fastopen_backup_key.c58 error(1, errno, "Unable to get key"); in get_keys()
63 error(1, errno, "Unable to read %s", PROC_FASTOPEN_KEY); in get_keys()
76 error(1, errno, "Unable to set key"); in set_keys()
88 error(1, errno, "Unable to write %s", PROC_FASTOPEN_KEY); in set_keys()
128 error(1, errno, "failed to create receive socket"); in build_rcv_fd()
131 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_fd()
133 error(1, errno, "failed to bind receive socket"); in build_rcv_fd()
136 error(1, errno, "failed to set TCP_FASTOPEN"); in build_rcv_fd()
139 error(1, errno, "failed to listen on receive port"); in build_rcv_fd()
161 error(1, errno, "inet_pton failed: %s", IP4_ADDR); in connect_and_send()
[all …]
/tools/testing/selftests/kvm/lib/
Dio.c58 TEST_ASSERT(errno == EAGAIN || errno == EINTR, in test_write()
60 " rc: %zi errno: %i", rc, errno); in test_write()
71 " rc: %zi errno: %i", rc, errno); in test_write()
135 TEST_ASSERT(errno == EAGAIN || errno == EINTR, in test_read()
137 " rc: %zi errno: %i", rc, errno); in test_read()
148 " rc: %zi errno: %i", rc, errno); in test_read()
/tools/testing/selftests/ipc/
Dmsgque.c43 return -errno; in restore_queue()
50 return -errno; in restore_queue()
56 return -errno; in restore_queue()
70 ret = -errno; in restore_queue()
78 printf("Failed to destroy queue: %d\n", -errno); in restore_queue()
91 if (errno == ENOMSG) in check_and_destroy_queue()
94 ret = -errno; in check_and_destroy_queue()
125 printf("Failed to destroy queue: %d\n", -errno); in check_and_destroy_queue()
126 return -errno; in check_and_destroy_queue()
140 if (errno == -EINVAL) in dump_queue()
[all …]
/tools/testing/selftests/
Dkselftest.h85 int saved_errno = errno; in ksft_print_msg()
90 errno = saved_errno; in ksft_print_msg()
97 int saved_errno = errno; in ksft_test_result_pass()
104 errno = saved_errno; in ksft_test_result_pass()
111 int saved_errno = errno; in ksft_test_result_fail()
118 errno = saved_errno; in ksft_test_result_fail()
125 int saved_errno = errno; in ksft_test_result_skip()
132 errno = saved_errno; in ksft_test_result_skip()
139 int saved_errno = errno; in ksft_test_result_error()
146 errno = saved_errno; in ksft_test_result_error()
[all …]
/tools/testing/selftests/bpf/
Dtest_maps.c45 printf("Failed to create hashmap '%s'!\n", strerror(errno)); in test_hashmap()
58 errno == EEXIST); in test_hashmap()
62 errno == EINVAL); in test_hashmap()
69 assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == ENOENT); in test_hashmap()
74 errno == ENOENT); in test_hashmap()
84 errno == E2BIG); in test_hashmap()
93 errno == E2BIG); in test_hashmap()
97 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap()
108 errno == ENOENT); in test_hashmap()
115 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap()
[all …]
Dget_cgroup_id_user.c63 errno)) in main()
68 cgroup_fd, errno)) in main()
72 if (CHECK(err, "join_cgroup", "err %d errno %d\n", err, errno)) in main()
76 if (CHECK(err, "bpf_prog_load", "err %d errno %d\n", err, errno)) in main()
81 cgidmap_fd, errno)) in main()
86 pidmap_fd, errno)) in main()
95 if (CHECK(efd < 0, "open", "err %d errno %d\n", efd, errno)) in main()
100 "bytes %d errno %d\n", bytes, errno)) in main()
114 errno)) in main()
119 errno)) in main()
[all …]
Dtest_sock_fields.c132 "err:%d errno:%d", err, errno); in check_result()
137 "err:%d errno:%d", err, errno); in check_result()
141 "err:%d errno:%d", err, errno); in check_result()
144 "err:%d errno:%d", err, errno); in check_result()
148 "err:%d errno:%d", err, errno); in check_result()
151 "err:%d errno:%d", err, errno); in check_result()
155 "err:%d errno:%d", err, errno); in check_result()
158 "err:%d errno:%d", err, errno); in check_result()
269 err, errno, pkt_out_cnt.cnt, pkt_out_cnt10.cnt); in check_sk_pkt_out_cnt()
287 err, errno, pkt_out_cnt.cnt, pkt_out_cnt10.cnt); in check_sk_pkt_out_cnt()
[all …]
/tools/testing/selftests/mount/
Dunprivileged-remount-test.c67 strerror(errno)); in vmaybe_write_file()
75 if ((errno == ENOENT) && enoent_ok) in vmaybe_write_file()
78 filename, strerror(errno)); in vmaybe_write_file()
86 filename, strerror(errno)); in vmaybe_write_file()
91 filename, strerror(errno)); in vmaybe_write_file()
124 path, strerror(errno)); in read_mnt_flags()
164 strerror(errno)); in create_and_enter_userns()
173 strerror(errno)); in create_and_enter_userns()
177 strerror(errno)); in create_and_enter_userns()
190 strerror(errno)); in test_unpriv_remount()
[all …]
/tools/testing/selftests/watchdog/
Dwatchdog-test.c65 printf("\nStopping watchdog ticks failed (%d)...\n", errno); in term()
114 if (errno == ENOENT) in main()
116 else if (errno == EACCES) in main()
120 strerror(errno)); in main()
129 printf("WDIOC_GETSUPPORT error '%s'\n", strerror(errno)); in main()
146 printf("WDIOC_GETBOOTSTATUS error '%s'\n", strerror(errno)); in main()
154 printf("WDIOS_DISABLECARD error '%s'\n", strerror(errno)); in main()
164 printf("WDIOS_ENABLECARD error '%s'\n", strerror(errno)); in main()
180 printf("WDIOC_SETTIMEOUT error '%s'\n", strerror(errno)); in main()
190 printf("WDIOC_GETTIMEOUT error '%s'\n", strerror(errno)); in main()
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dtp_attach_query.c22 if (CHECK(efd < 0, "open", "err %d errno %d\n", efd, errno)) in test_tp_attach_query()
27 "read", "bytes %d errno %d\n", bytes, errno)) in test_tp_attach_query()
40 if (CHECK(err, "prog_load", "err %d errno %d\n", err, errno)) in test_tp_attach_query()
50 err, errno)) in test_tp_attach_query()
58 pmu_fd[i], errno)) in test_tp_attach_query()
62 err, errno)) in test_tp_attach_query()
72 err, errno, query->prog_cnt)) in test_tp_attach_query()
78 err, errno)) in test_tp_attach_query()
88 err, errno, query->prog_cnt)) in test_tp_attach_query()
95 if (CHECK(!err || errno != EFAULT, in test_tp_attach_query()
[all …]
Dstacktrace_build_id.c22 if (CHECK(err, "prog_load", "err %d errno %d\n", err, errno)) in test_stacktrace_build_id()
36 "err %d errno %d\n", err, errno)) in test_stacktrace_build_id()
41 "err %d errno %d\n", err, errno)) in test_stacktrace_build_id()
46 err, errno)) in test_stacktrace_build_id()
51 "err %d errno %d\n", err, errno)) in test_stacktrace_build_id()
68 "err %d errno %d\n", err, errno)) in test_stacktrace_build_id()
73 "err %d errno %d\n", err, errno)) in test_stacktrace_build_id()
79 "err %d errno %d\n", err, errno)) in test_stacktrace_build_id()
84 "err %d, errno %d\n", err, errno)) in test_stacktrace_build_id()
92 "err %d, errno %d\n", err, errno)) in test_stacktrace_build_id()
[all …]
/tools/perf/arch/x86/tests/
Dbp-modify.c84 strerror(errno)); in bp_modify1()
91 strerror(errno)); in bp_modify1()
97 pr_debug("failed to set dr7: %s\n", strerror(errno)); in bp_modify1()
102 pr_debug("failed to PTRACE_CONT: %s\n", strerror(errno)); in bp_modify1()
116 strerror(errno)); in bp_modify1()
124 pr_debug("failed to PTRACE_DETACH: %s", strerror(errno)); in bp_modify1()
161 strerror(errno)); in bp_modify2()
167 pr_debug("failed to set dr7: %s\n", strerror(errno)); in bp_modify2()
178 pr_debug("failed to PTRACE_CONT: %s\n", strerror(errno)); in bp_modify2()
192 strerror(errno)); in bp_modify2()
[all …]

12345678910>>...14