Home
last modified time | relevance | path

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

12345678910>>...50

/linux-6.12.1/tools/testing/selftests/capabilities/
Dtest_execve.c35 ksft_exit_fail_msg("vsnprintf failed - %s\n", strerror(errno)); in vmaybe_write_file()
43 if ((errno == ENOENT) && enoent_ok) in vmaybe_write_file()
46 filename, strerror(errno)); in vmaybe_write_file()
54 filename, strerror(errno)); in vmaybe_write_file()
59 filename, strerror(errno)); in vmaybe_write_file()
95 strerror(errno)); in create_and_enter_ns()
97 ksft_exit_fail_msg("setresuid - %s\n", strerror(errno)); in create_and_enter_ns()
109 "capng_apply - %s\n", strerror(errno)); in create_and_enter_ns()
125 strerror(errno)); in create_and_enter_ns()
134 ksft_exit_fail_msg("getcwd - %s\n", strerror(errno)); in chdir_to_tmpfs()
[all …]
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dpinning.c23 CHECK(err, "get map info", "err %d errno %d", err, errno); in get_map_id()
48 if (CHECK(err != -EINVAL, "invalid open", "err %d errno %d\n", err, errno)) { in test_pinning()
56 if (CHECK(err, "default open", "err %d errno %d\n", err, errno)) { in test_pinning()
62 if (CHECK(err, "default load", "err %d errno %d\n", err, errno)) in test_pinning()
67 if (CHECK(err, "stat pinpath", "err %d errno %d\n", err, errno)) in test_pinning()
72 if (CHECK(!err || errno != ENOENT, "stat nopinpath", in test_pinning()
73 "err %d errno %d\n", err, errno)) in test_pinning()
78 if (CHECK(!err || errno != ENOENT, "stat nopinpath2", in test_pinning()
79 "err %d errno %d\n", err, errno)) in test_pinning()
95 if (CHECK(err, "default load", "err %d errno %d\n", err, errno)) in test_pinning()
[all …]
/linux-6.12.1/tools/testing/selftests/landlock/
Dbase_test.c36 ASSERT_EQ(EINVAL, errno); in TEST()
38 ASSERT_EQ(EINVAL, errno); in TEST()
40 ASSERT_EQ(EINVAL, errno); in TEST()
44 ASSERT_EQ(EFAULT, errno); in TEST()
48 ASSERT_EQ(EFAULT, errno); in TEST()
51 ASSERT_EQ(E2BIG, errno); in TEST()
55 ASSERT_EQ(ENOMSG, errno); in TEST()
59 ASSERT_EQ(ENOMSG, errno); in TEST()
61 ASSERT_EQ(ENOMSG, errno); in TEST()
66 ASSERT_EQ(E2BIG, errno); in TEST()
[all …]
/linux-6.12.1/tools/iio/
Diio_utils.c117 ret = -errno; in iioutils_get_type()
134 ret = -errno; in iioutils_get_type()
147 ret = -errno; in iioutils_get_type()
167 ret = -errno; in iioutils_get_type()
242 ret = -errno; in iioutils_get_param_float()
259 ret = -errno; in iioutils_get_param_float()
263 errno = 0; in iioutils_get_param_float()
265 ret = errno ? -errno : -ENODATA; in iioutils_get_param_float()
334 ret = -errno; in build_channel_array()
351 ret = -errno; in build_channel_array()
[all …]
/linux-6.12.1/tools/testing/selftests/membarrier/
Dmembarrier_test_impl.h31 test_name, flags, errno); in test_membarrier_get_registrations()
54 if (errno != EINVAL) { in test_membarrier_cmd_fail()
58 errno, strerror(errno)); in test_membarrier_cmd_fail()
63 test_name, cmd, flags, errno); in test_membarrier_cmd_fail()
77 if (errno != EINVAL) { in test_membarrier_flags_fail()
81 errno, strerror(errno)); in test_membarrier_flags_fail()
86 test_name, flags, errno); in test_membarrier_flags_fail()
98 test_name, flags, errno); in test_membarrier_global_success()
116 if (errno != EPERM) { in test_membarrier_private_expedited_fail()
120 errno, strerror(errno)); in test_membarrier_private_expedited_fail()
[all …]
/linux-6.12.1/tools/testing/selftests/mincore/
Dmincore_selftest.c44 errno = 0; in TEST()
47 EXPECT_EQ(ENOMEM, errno); in TEST()
49 errno = 0; in TEST()
53 TH_LOG("mmap error: %s", strerror(errno)); in TEST()
57 errno = 0; in TEST()
60 EXPECT_EQ(EINVAL, errno); in TEST()
63 errno = 0; in TEST()
66 EXPECT_EQ(ENOMEM, errno); in TEST()
69 errno = 0; in TEST()
72 EXPECT_EQ(EFAULT, errno); in TEST()
[all …]
/linux-6.12.1/tools/testing/selftests/futex/functional/
Dfutex_waitv.c44 error("gettime64 failed\n", errno); in waiterfn()
51 errno, strerror(errno)); in waiterfn()
98 error("pthread_create failed\n", errno); in main()
105 res ? errno : res, in main()
106 res ? strerror(errno) : ""); in main()
131 error("pthread_create failed\n", errno); in main()
138 res ? errno : res, in main()
139 res ? strerror(errno) : ""); in main()
152 error("gettime64 failed\n", errno); in main()
159 res ? errno : res, in main()
[all …]
/linux-6.12.1/tools/testing/selftests/mount/
Dnosymfollow-test.c50 die("vsnprintf failed: %s\n", strerror(errno)); in vmaybe_write_file()
57 if ((errno == ENOENT) && enoent_ok) in vmaybe_write_file()
59 die("open of %s failed: %s\n", filename, strerror(errno)); in vmaybe_write_file()
68 filename, strerror(errno)); in vmaybe_write_file()
73 die("close of %s failed: %s\n", filename, strerror(errno)); in vmaybe_write_file()
100 die("unshare(CLONE_NEWUSER) failed: %s\n", strerror(errno)); in create_and_enter_ns()
107 die("setgid(0) failed %s\n", strerror(errno)); in create_and_enter_ns()
109 die("setuid(0) failed %s\n", strerror(errno)); in create_and_enter_ns()
112 die("unshare(CLONE_NEWNS) failed: %s\n", strerror(errno)); in create_and_enter_ns()
121 die("creat failed: %s\n", strerror(errno)); in setup_symlink()
[all …]
/linux-6.12.1/arch/um/os-Linux/
Dfile.c51 return -errno; in os_stat_fd()
65 return -errno; in os_stat_file()
83 return -errno; in os_access()
95 return -errno; in os_ioctl_generic()
104 return -errno; in os_get_ifname()
115 return -errno; in os_set_slip()
119 return -errno; in os_set_slip()
130 return -errno; in os_mode_fd()
166 if (err && (errno != EACCES)) in os_file_mode()
167 return -errno; in os_file_mode()
[all …]
Dumid.c55 __func__, errno); in make_uml_dir()
60 if ((mkdir(uml_dir, 0777) < 0) && (errno != EEXIST)) { in make_uml_dir()
62 uml_dir, strerror(errno)); in make_uml_dir()
63 err = -errno; in make_uml_dir()
91 if (errno != ENOENT) in remove_files_and_dir()
92 return -errno; in remove_files_and_dir()
107 if (unlink(file) < 0 && errno != ENOENT) { in remove_files_and_dir()
108 ret = -errno; in remove_files_and_dir()
113 if (rmdir(dir) < 0 && errno != ENOENT) { in remove_files_and_dir()
114 ret = -errno; in remove_files_and_dir()
[all …]
/linux-6.12.1/tools/testing/selftests/filesystems/binderfs/
Dbinderfs_test.c33 int _e_ = errno; \
35 errno = _e_; \
46 strerror(errno)); in change_mountns()
52 strerror(errno)); in change_mountns()
75 strerror(errno)); in __do_binderfs_test()
81 if (errno == ENODEV) in __do_binderfs_test()
83 TH_LOG("%s - Failed to mount binderfs", strerror(errno)); in __do_binderfs_test()
95 strerror(errno)); in __do_binderfs_test()
100 saved_errno = errno; in __do_binderfs_test()
102 errno = saved_errno; in __do_binderfs_test()
[all …]
/linux-6.12.1/tools/testing/selftests/bpf/
Dtest_maps.c44 printf("Failed to create hashmap '%s'!\n", strerror(errno)); in test_hashmap()
57 errno == EEXIST); in test_hashmap()
61 errno == EINVAL); in test_hashmap()
75 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT); in test_hashmap()
80 errno == ENOENT); in test_hashmap()
90 errno == E2BIG); in test_hashmap()
99 errno == E2BIG); in test_hashmap()
103 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap()
114 errno == ENOENT); in test_hashmap()
121 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap()
[all …]
/linux-6.12.1/tools/testing/selftests/mm/
Dmrelease_test.c30 ksft_exit_fail_msg("mmap failed, halting the test: %s\n", strerror(errno)); in alloc_noexit()
37 ksft_exit_fail_msg("write: %s\n", strerror(errno)); in alloc_noexit()
55 errno != EINVAL) { in run_negative_tests()
56 ksft_exit_fail_msg("process_mrelease with wrong flags: %s\n", strerror(errno)); in run_negative_tests()
62 if (!syscall(__NR_process_mrelease, pidfd, 0) || errno != EINVAL) in run_negative_tests()
63 ksft_exit_fail_msg("process_mrelease on a live process: %s\n", strerror(errno)); in run_negative_tests()
90 if (!syscall(__NR_process_mrelease, -1, 0) || errno != EBADF) { in main()
91 if (errno == ENOSYS) { in main()
96 strerror(errno)); in main()
108 ksft_exit_fail_msg("pipe: %s\n", strerror(errno)); in main()
[all …]
Dpagemap_ioctl.c124 ksft_exit_fail_msg("ioctl(UFFDIO_REGISTER) %d %s\n", errno, strerror(errno)); in wp_init()
156 ksft_exit_fail_msg("error %d %d %s\n", 1, errno, strerror(errno)); in wp_addr_range()
216 ksft_exit_fail_msg("error %d %d %s\n", written, errno, strerror(errno)); in userfaultfd_tests()
324 ksft_exit_fail_msg("error %d %d %s\n", ret, errno, strerror(errno)); in sanity_tests_sd()
334 ksft_exit_fail_msg("error %d %d %s\n", ret, errno, strerror(errno)); in sanity_tests_sd()
339 ksft_exit_fail_msg("error %d %d %s\n", ret2, errno, strerror(errno)); in sanity_tests_sd()
345 ksft_exit_fail_msg("error %d %d %s\n", ret3, errno, strerror(errno)); in sanity_tests_sd()
360 ksft_exit_fail_msg("error %d %d %s\n", ret, errno, strerror(errno)); in sanity_tests_sd()
366 ksft_exit_fail_msg("error %d %d %s\n", ret2, errno, strerror(errno)); in sanity_tests_sd()
381 ksft_exit_fail_msg("error %d %d %s\n", ret, errno, strerror(errno)); in sanity_tests_sd()
[all …]
/linux-6.12.1/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c148 btf_fd, errno); in create_sk_storage_map()
155 "bpf_map_create()", "errno:%d\n", errno); in create_sk_storage_map()
185 err = -errno; in insert_close_thread()
186 fprintf(stderr, "socket(): errno:%d\n", errno); in insert_close_thread()
192 err = -errno; in insert_close_thread()
195 errno); in insert_close_thread()
239 err = -errno; in do_sk_storage_map_stress_free()
289 if (err && errno != EAGAIN) { in update_thread()
290 err = -errno; in update_thread()
292 err, errno); in update_thread()
[all …]
/linux-6.12.1/drivers/media/usb/as102/
Das102_fw.c96 int total_read_bytes = 0, errno = 0; in as102_firmware_upload() local
125 errno = bus_adap->ops->upload_fw_pkt(bus_adap, in as102_firmware_upload()
128 if (errno < 0) in as102_firmware_upload()
140 errno = bus_adap->ops->upload_fw_pkt(bus_adap, in as102_firmware_upload()
145 if (errno < 0) in as102_firmware_upload()
152 return (errno == 0) ? total_read_bytes : errno; in as102_firmware_upload()
157 int errno = -EFAULT; in as102_fw_upload() local
175 errno = -ENOMEM; in as102_fw_upload()
180 errno = request_firmware(&firmware, fw1, &dev->dev); in as102_fw_upload()
181 if (errno < 0) { in as102_fw_upload()
[all …]
/linux-6.12.1/tools/testing/selftests/arm64/fp/
Dkernel-test.c79 if (errno == EAFNOSUPPORT) { in create_socket()
85 strerror(errno), errno); in create_socket()
171 addr.salg_name, strerror(errno), errno); in create_socket()
178 addr.salg_name, strerror(errno), errno); in create_socket()
187 strerror(errno), errno); in create_socket()
216 strerror(errno), errno); in compute_digest()
224 strerror(errno), errno); in compute_digest()
240 if (errno == -EAGAIN) in compute_digest()
243 strerror(errno), errno); in compute_digest()
267 strerror(errno), errno); in main()
[all …]
Dfp-stress.c68 strerror(errno), errno); in child_start()
73 strerror(errno), errno); in child_start()
82 fprintf(stderr, "dup2() %d\n", errno); in child_start()
92 fprintf(stderr, "dup2() %d\n", errno); in child_start()
111 strerror(errno), errno); in child_start()
119 program, errno, strerror(errno)); in child_start()
139 child->name, strerror(errno), errno); in child_start()
152 if (errno == EINTR) in child_output_read()
156 child->name, strerror(errno), in child_output_read()
157 errno); in child_output_read()
[all …]
/linux-6.12.1/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()
86 strerror(errno)); in run_test()
[all …]
/linux-6.12.1/fs/hostfs/
Dhostfs_user.c49 return -errno; in stat_file()
51 return -errno; in stat_file()
68 return -errno; in access_file()
88 return -errno; in open_file()
97 *err_out = errno; in open_dir()
132 return -errno; in read_file()
143 return -errno; in write_file()
154 return -errno; in lseek_file()
167 return -errno; in fsync_file()
192 return -errno; in file_create()
[all …]
/linux-6.12.1/tools/hv/
Dhv_vss_daemon.c53 if ((cmd == FIFREEZE && errno == EBUSY) || in vss_do_freeze()
54 (cmd == FITHAW && errno == EINVAL)) { in vss_do_freeze()
81 } else if (errno != ENOENT) { in is_dev_loop()
83 buffer, errno, strerror(errno)); in is_dev_loop()
89 if (errno != ENOENT) in is_dev_loop()
91 buffer, errno, strerror(errno)); in is_dev_loop()
144 ent->mnt_fsname, errno, strerror(errno)); in vss_operate()
183 save_errno = errno; in vss_operate()
253 errno); in main()
262 errno, strerror(errno)); in main()
[all …]
/linux-6.12.1/tools/testing/selftests/powerpc/papr_vpd/
Dpapr_vpd.c20 SKIP_IF_MSG(devfd < 0 && errno == ENOENT, in dev_papr_vpd_open_close()
36 SKIP_IF_MSG(devfd < 0 && errno == ENOENT, in dev_papr_vpd_get_handle_all()
41 errno = 0; in dev_papr_vpd_get_handle_all()
43 FAIL_IF(errno != 0); in dev_papr_vpd_get_handle_all()
74 SKIP_IF_MSG(devfd < 0 && errno == ENOENT, in dev_papr_vpd_get_handle_byte_at_a_time()
79 errno = 0; in dev_papr_vpd_get_handle_byte_at_a_time()
81 FAIL_IF(errno != 0); in dev_papr_vpd_get_handle_byte_at_a_time()
91 errno = 0; in dev_papr_vpd_get_handle_byte_at_a_time()
95 FAIL_IF(errno != 0); in dev_papr_vpd_get_handle_byte_at_a_time()
115 SKIP_IF_MSG(devfd < 0 && errno == ENOENT, in dev_papr_vpd_unterm_loc_code()
[all …]
/linux-6.12.1/tools/testing/selftests/kvm/x86_64/
Dsev_migrate_tests.c70 TEST_ASSERT(!ret, "Migration failed, ret: %d, errno: %d", ret, errno); in sev_migrate_from()
91 TEST_ASSERT(ret == -1 && errno == EIO, in test_sev_migrate_from()
93 errno); in test_sev_migrate_from()
150 TEST_ASSERT(ret == -1 && errno == EINVAL, in test_sev_migrate_parameters()
152 errno); in test_sev_migrate_parameters()
165 ret == -1 && errno == EINVAL, in test_sev_migrate_parameters()
167 ret, errno); in test_sev_migrate_parameters()
171 ret == -1 && errno == EINVAL, in test_sev_migrate_parameters()
173 ret, errno); in test_sev_migrate_parameters()
177 ret == -1 && errno == EINVAL, in test_sev_migrate_parameters()
[all …]
/linux-6.12.1/tools/testing/selftests/
Dkselftest.h161 int saved_errno = errno; in ksft_print_msg()
166 errno = saved_errno; in ksft_print_msg()
173 ksft_print_msg("%s: %s (%d)\n", msg, strerror(errno), errno); in ksft_perror()
178 int saved_errno = errno; in ksft_test_result_pass()
185 errno = saved_errno; in ksft_test_result_pass()
192 int saved_errno = errno; in ksft_test_result_fail()
199 errno = saved_errno; in ksft_test_result_fail()
218 int saved_errno = errno; in ksft_test_result_xfail()
225 errno = saved_errno; in ksft_test_result_xfail()
232 int saved_errno = errno; in ksft_test_result_skip()
[all …]
/linux-6.12.1/tools/testing/selftests/net/
Dreuseport_addr_any.c50 error(1, errno, "inet_pton failed: %s", addr_str); in build_rcv_fd()
60 error(1, errno, "inet_pton failed: %s", addr_str); in build_rcv_fd()
77 error(1, errno, "failed to create receive socket"); in build_rcv_fd()
82 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_fd()
85 error(1, errno, "failed to bind receive socket"); in build_rcv_fd()
88 error(1, errno, "tcp: failed to listen on receive port"); in build_rcv_fd()
93 error(1, errno, "failed to setsockopt"); in build_rcv_fd()
96 error(1, errno, "dccp: failed to listen on receive port"); in build_rcv_fd()
118 error(1, errno, "inet_pton failed: %s", IP4_ADDR); in connect_and_send()
131 error(1, errno, "inet_pton failed: %s", IP6_ADDR); in connect_and_send()
[all …]

12345678910>>...50