Home
last modified time | relevance | path

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

12345678910>>...45

/linux-6.1.9/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 …]
/linux-6.1.9/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.1.9/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 …]
/linux-6.1.9/tools/testing/selftests/landlock/
Dbase_test.c35 ASSERT_EQ(EINVAL, errno); in TEST()
37 ASSERT_EQ(EINVAL, errno); in TEST()
39 ASSERT_EQ(EINVAL, errno); in TEST()
43 ASSERT_EQ(EFAULT, errno); in TEST()
47 ASSERT_EQ(EFAULT, errno); in TEST()
50 ASSERT_EQ(E2BIG, errno); in TEST()
54 ASSERT_EQ(ENOMSG, errno); in TEST()
58 ASSERT_EQ(ENOMSG, errno); in TEST()
60 ASSERT_EQ(ENOMSG, errno); in TEST()
65 ASSERT_EQ(E2BIG, errno); in TEST()
[all …]
/linux-6.1.9/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.1.9/arch/um/os-Linux/
Dfile.c50 return -errno; in os_stat_fd()
64 return -errno; in os_stat_file()
82 return -errno; in os_access()
94 return -errno; in os_ioctl_generic()
103 return -errno; in os_get_ifname()
114 return -errno; in os_set_slip()
118 return -errno; in os_set_slip()
129 return -errno; in os_mode_fd()
165 if (err && (errno != EACCES)) in os_file_mode()
166 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.1.9/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.1.9/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()
333 ret = -errno; in build_channel_array()
349 ret = -errno; in build_channel_array()
[all …]
/linux-6.1.9/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.1.9/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()
74 strerror(errno)); in __do_binderfs_test()
80 if (errno == ENODEV) in __do_binderfs_test()
82 TH_LOG("%s - Failed to mount binderfs", strerror(errno)); in __do_binderfs_test()
94 strerror(errno)); in __do_binderfs_test()
99 saved_errno = errno; in __do_binderfs_test()
101 errno = saved_errno; in __do_binderfs_test()
[all …]
/linux-6.1.9/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.1.9/fs/hostfs/
Dhostfs_user.c47 return -errno; in stat_file()
49 return -errno; in stat_file()
66 return -errno; in access_file()
86 return -errno; in open_file()
95 *err_out = errno; in open_dir()
130 return -errno; in read_file()
141 return -errno; in write_file()
152 return -errno; in lseek_file()
165 return -errno; in fsync_file()
190 return -errno; in file_create()
[all …]
/linux-6.1.9/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.1.9/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.1.9/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.1.9/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.1.9/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()
/linux-6.1.9/tools/testing/selftests/arm64/fp/
Dvec-syscfg.c91 errno, strerror(errno)); in get_child_rdvl()
100 errno, strerror(errno)); in get_child_rdvl()
114 fprintf(stderr, "dup2() %d\n", errno); in get_child_rdvl()
121 data->rdvl_binary, errno, strerror(errno)); in get_child_rdvl()
133 errno, strerror(errno)); in get_child_rdvl()
177 name, errno, in file_read_integer()
178 strerror(errno)); in file_read_integer()
195 name, errno, in file_write_integer()
196 strerror(errno)); in file_write_integer()
311 data->name, errno, strerror(errno)); in prctl_get()
[all …]
Dfp-stress.c66 strerror(errno), errno); in child_start()
71 strerror(errno), errno); in child_start()
80 fprintf(stderr, "dup2() %d\n", errno); in child_start()
93 program, errno, strerror(errno)); in child_start()
113 child->name, strerror(errno), errno); in child_start()
132 if (errno == EINTR) in child_output_read()
136 child->name, strerror(errno), in child_output_read()
137 errno); in child_output_read()
222 if (ret == -1 && errno == EINTR) in child_cleanup()
227 child->pid, strerror(errno), in child_cleanup()
[all …]
/linux-6.1.9/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 …]
Dfin_ack_lat.c44 error(-1, errno, "socket creation"); in client()
49 error(-1, errno, "setsockopt(linger)"); in client()
53 error(-1, errno, "setsockopt(nodelay)"); in client()
59 error(-1, errno, "inet_pton"); in client()
62 error(-1, errno, "connect"); in client()
66 error(-1, errno, "waiting read"); in client()
76 error(-1, errno, "getsockname"); in client()
96 error(-1, errno, "accept"); in server()
99 error(-1, errno, "read"); in server()
119 error(-1, errno, "signal"); in main()
[all …]
Dreuseport_bpf.c122 error(1, errno, "ebpf error. log:\n%s\n", bpf_log_buf); in attach_ebpf()
126 error(1, errno, "failed to set SO_ATTACH_REUSEPORT_EBPF"); in attach_ebpf()
147 error(1, errno, "failed to set SO_ATTACH_REUSEPORT_CBPF"); in attach_cbpf()
160 error(1, errno, "failed to create recv %d", i); in build_recv_group()
165 error(1, errno, "failed to set SO_REUSEPORT on %d", i); in build_recv_group()
171 error(1, errno, "failed to bind recv socket %d", i); in build_recv_group()
177 error(1, errno, in build_recv_group()
180 error(1, errno, "failed to listen on socket"); in build_recv_group()
195 error(1, errno, "failed to create send socket"); in send_from()
198 error(1, errno, "failed to set reuseaddr"); in send_from()
[all …]
/linux-6.1.9/tools/testing/selftests/kvm/x86_64/
Dsev_migrate_tests.c47 cmd_id, ret, errno, fw_error); in sev_ioctl()
94 TEST_ASSERT(!ret, "Migration failed, ret: %d, errno: %d\n", ret, errno); in sev_migrate_from()
115 TEST_ASSERT(ret == -1 && errno == EIO, in test_sev_migrate_from()
117 errno); in test_sev_migrate_from()
174 TEST_ASSERT(ret == -1 && errno == EINVAL, in test_sev_migrate_parameters()
176 errno); in test_sev_migrate_parameters()
189 ret == -1 && errno == EINVAL, in test_sev_migrate_parameters()
191 ret, errno); in test_sev_migrate_parameters()
195 ret == -1 && errno == EINVAL, in test_sev_migrate_parameters()
197 ret, errno); in test_sev_migrate_parameters()
[all …]
/linux-6.1.9/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()

12345678910>>...45