/linux/tools/testing/selftests/capabilities/ |
A D | test_execve.c | 54 filename, strerror(errno)); in vmaybe_write_file() 107 strerror(errno)); in create_and_enter_ns() 134 strerror(errno)); in create_and_enter_ns() 147 strerror(errno)); in chdir_to_tmpfs() 151 strerror(errno)); in chdir_to_tmpfs() 286 if (errno == EINVAL) in do_tests() 327 strerror(errno)); in do_tests() 337 strerror(errno)); in do_tests() 365 strerror(errno)); in do_tests() 399 strerror(errno)); in do_tests() [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | pinning.c | 23 CHECK(err, "get map info", "err %d errno %d", err, errno); in get_map_id() 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() 110 if (CHECK(err, "re-pin map", "err %d errno %d\n", err, errno)) in test_pinning() 120 if (CHECK(err, "unpin maps", "err %d errno %d\n", err, errno)) in test_pinning() 125 if (CHECK(err, "pin maps", "err %d errno %d\n", err, errno)) in test_pinning() 148 if (CHECK(err, "pin maps", "err %d errno %d\n", err, errno)) in test_pinning() 198 if (CHECK(!err || errno != ENOENT, "stat nopinpath2", in test_pinning() [all …]
|
/linux/tools/testing/selftests/membarrier/ |
A D | membarrier_test_impl.h | 27 if (errno != EINVAL) { in test_membarrier_cmd_fail() 31 errno, strerror(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() 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() 146 if (errno != EPERM) { in test_membarrier_private_expedited_sync_core_fail() 150 errno, strerror(errno)); in test_membarrier_private_expedited_sync_core_fail() [all …]
|
/linux/tools/iio/ |
A D | iio_utils.c | 265 ret = errno ? -errno : -ENODATA; in iioutils_get_param_float() 356 ret = errno ? -errno : -ENODATA; in build_channel_array() 407 ret = errno ? -errno : -ENODATA; in build_channel_array() 469 ret = errno ? -errno : -ENODATA; in build_channel_array() 629 ret = errno ? -errno : -ENODATA; in find_type_by_name() 703 ret = errno ? -errno : -ENODATA; in _write_sysfs_int() 801 ret = errno ? -errno : -ENODATA; in _write_sysfs_string() 885 errno = 0; in read_sysfs_posint() 887 ret = errno ? -errno : -ENODATA; in read_sysfs_posint() 934 ret = errno ? -errno : -ENODATA; in read_sysfs_float() [all …]
|
/linux/arch/um/os-Linux/ |
A D | file.c | 50 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() 207 err = -errno; in os_open_file() 225 err = -errno; in os_connect_socket() [all …]
|
A D | umid.c | 63 err = -errno; in make_uml_dir() 92 return -errno; in remove_files_and_dir() 108 ret = -errno; in remove_files_and_dir() 114 ret = -errno; in remove_files_and_dir() 151 fd = -errno; in is_umdir_used() 235 errno); in create_pid_file() 272 err = -errno; in make_umid() 286 err = -errno; in make_umid() 294 err = -errno; in make_umid() 304 err = -errno; in make_umid() [all …]
|
/linux/tools/testing/selftests/bpf/ |
A D | test_maps.c | 58 errno == EEXIST); in test_hashmap() 62 errno == EINVAL); in test_hashmap() 81 errno == ENOENT); in test_hashmap() 91 errno == E2BIG); in test_hashmap() 100 errno == E2BIG); in test_hashmap() 1287 errno); in test_map_in_map() 1408 if (!attempts || (errno != EAGAIN && errno != EBUSY)) in map_update_retriable() 1409 return -errno; in map_update_retriable() 1426 if (!attempts || (errno != EAGAIN && errno != EBUSY)) in map_delete_retriable() 1427 return -errno; in map_delete_retriable() [all …]
|
/linux/tools/testing/selftests/futex/functional/ |
A D | futex_waitv.c | 44 error("gettime64 failed\n", errno); in waiterfn() 51 errno, strerror(errno)); in waiterfn() 105 res ? errno : res, in main() 106 res ? strerror(errno) : ""); in main() 138 res ? errno : res, in main() 152 error("gettime64 failed\n", errno); in main() 159 res ? errno : res, in main() 178 res ? errno : res, in main() 196 res ? errno : res, in main() 212 res ? errno : res, in main() [all …]
|
/linux/tools/testing/selftests/bpf/map_tests/ |
A D | sk_storage_map.c | 189 err = -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() 294 err = -errno; in update_thread() 296 err, errno); in update_thread() 318 err = -errno; in delete_thread() 320 err, errno); in delete_thread() 347 err = -errno; in do_sk_storage_map_stress_change() 362 err = -errno; in do_sk_storage_map_stress_change() [all …]
|
/linux/tools/testing/selftests/mincore/ |
A D | mincore_selftest.c | 44 errno = 0; in TEST() 49 errno = 0; in TEST() 57 errno = 0; in TEST() 63 errno = 0; in TEST() 69 errno = 0; in TEST() 93 errno = 0; in TEST() 148 errno = 0; in TEST() 208 errno = 0; in TEST() 214 errno = 0; in TEST() 224 errno = 0; in TEST() [all …]
|
/linux/tools/testing/selftests/filesystems/binderfs/ |
A D | binderfs_test.c | 33 int _e_ = errno; \ 35 errno = _e_; \ 46 strerror(errno)); in change_mountns() 52 strerror(errno)); in change_mountns() 73 strerror(errno)); in __do_binderfs_test() 93 strerror(errno)); in __do_binderfs_test() 103 strerror(errno)); in __do_binderfs_test() 116 strerror(errno)); in __do_binderfs_test() 126 strerror(errno)); in __do_binderfs_test() 137 strerror(errno)); in __do_binderfs_test() [all …]
|
/linux/tools/testing/selftests/mount/ |
A D | nosymfollow-test.c | 50 die("vsnprintf failed: %s\n", strerror(errno)); in vmaybe_write_file() 57 if ((errno == ENOENT) && enoent_ok) in vmaybe_write_file() 68 filename, strerror(errno)); in vmaybe_write_file() 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() 121 die("creat failed: %s\n", strerror(errno)); in setup_symlink() 125 die("symlink failed: %s\n", strerror(errno)); in setup_symlink() 137 if ((link != -1 || errno != ELOOP)) { in test_link_traversal() 139 link, strerror(errno)); in test_link_traversal() 183 die("statfs failed: %s\n", strerror(errno)); in test_statfs() [all …]
|
/linux/fs/hostfs/ |
A D | hostfs_user.c | 47 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/tools/testing/selftests/kvm/x86_64/ |
A D | sev_migrate_tests.c | 111 errno); in test_sev_migrate_from() 177 ret, errno); in test_sev_migrate_parameters() 183 ret, errno); in test_sev_migrate_parameters() 189 ret, errno); in test_sev_migrate_parameters() 195 ret, errno); in test_sev_migrate_parameters() 200 errno); in test_sev_migrate_parameters() 266 ret, errno); in test_sev_mirror_parameters() 272 ret, errno); in test_sev_mirror_parameters() 283 errno); in test_sev_mirror_parameters() 311 errno); in test_sev_move_copy() [all …]
|
/linux/drivers/media/usb/as102/ |
A D | as102_fw.c | 96 int total_read_bytes = 0, errno = 0; in as102_firmware_upload() local 128 if (errno < 0) 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() 181 if (errno < 0) { in as102_fw_upload() 189 if (errno < 0) { in as102_fw_upload() 205 if (errno < 0) { in as102_fw_upload() 213 if (errno < 0) { in as102_fw_upload() [all …]
|
/linux/tools/testing/selftests/breakpoints/ |
A D | step_after_suspend_test.c | 32 strerror(errno)); in child() 38 strerror(errno)); in child() 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() 97 strerror(errno)); in run_test() 106 strerror(errno)); in run_test() 112 strerror(errno)); in run_test() 123 strerror(errno)); in run_test() [all …]
|
/linux/tools/hv/ |
A D | hv_vss_daemon.c | 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() 273 errno, strerror(errno)); in main() 285 syslog(LOG_ERR, "poll failed; error:%d %s", errno, strerror(errno)); in main() 286 if (errno == EINVAL) { in main() [all …]
|
/linux/tools/testing/selftests/arm64/fp/ |
A D | vec-syscfg.c | 83 errno, strerror(errno)); in get_child_rdvl() 92 errno, strerror(errno)); in get_child_rdvl() 113 data->rdvl_binary, errno, strerror(errno)); in get_child_rdvl() 125 errno, strerror(errno)); in get_child_rdvl() 353 errno, strerror(errno)); in prctl_set() 374 errno, strerror(errno)); in prctl_set() 416 errno, strerror(errno)); in prctl_set_no_child() 454 errno, strerror(errno)); in prctl_set_for_child() 510 errno, strerror(errno)); in prctl_set_onexec() 519 errno, strerror(errno)); in prctl_set_onexec() [all …]
|
/linux/tools/testing/selftests/landlock/ |
A D | base_test.c | 34 ASSERT_EQ(EINVAL, errno); in TEST() 36 ASSERT_EQ(EINVAL, errno); in TEST() 40 ASSERT_EQ(EFAULT, errno); in TEST() 44 ASSERT_EQ(EFAULT, errno); in TEST() 47 ASSERT_EQ(E2BIG, errno); in TEST() 51 ASSERT_EQ(ENOMSG, errno); in TEST() 53 ASSERT_EQ(ENOMSG, errno); in TEST() 58 ASSERT_EQ(E2BIG, errno); in TEST() 61 ASSERT_EQ(E2BIG, errno); in TEST() 75 ASSERT_EQ(EINVAL, errno); in TEST() [all …]
|
/linux/tools/testing/selftests/net/ |
A D | reuseport_bpf.c | 179 error(1, errno, in build_recv_group() 206 error(1, errno, "failed to send message"); in send_from() 224 error(1, errno, "failed to create epoll"); in test_recv_order() 244 error(1, errno, "epoll wait failed"); in test_recv_order() 249 error(1, errno, "error accepting"); in test_recv_order() 256 error(1, errno, "recvmsg error"); in test_recv_order() 369 error(1, errno, "ebpf error"); in test_filter_no_reuseport() 377 errno = 0; in test_filter_no_reuseport() 379 sizeof(bpf_fd)) || errno != EINVAL) in test_filter_no_reuseport() 382 errno = 0; in test_filter_no_reuseport() [all …]
|
A D | reuseport_addr_any.c | 50 error(1, errno, "inet_pton failed: %s", addr_str); in build_rcv_fd() 82 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_fd() 93 error(1, errno, "failed to setsockopt"); in build_rcv_fd() 154 error(1, errno, "failed to setsockopt"); in connect_and_send() 157 error(1, errno, "failed to bind send socket"); in connect_and_send() 163 error(1, errno, "failed to send message"); in connect_and_send() 176 error(1, errno, "epoll_wait failed"); in receive_once() 181 error(1, errno, "failed to accept"); in receive_once() 189 error(1, errno, "failed to recv"); in receive_once() 201 error(1, errno, "failed to create epoll"); in test() [all …]
|
A D | fin_ack_lat.c | 59 error(-1, errno, "inet_pton"); in client() 62 error(-1, errno, "connect"); 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() 123 error(-1, errno, "socket"); in main() 127 error(-1, errno, "setsockopt"); in main() 135 error(-1, errno, "bind"); in main() 138 error(-1, errno, "listen"); in main() [all …]
|
/linux/fs/nfs/ |
A D | mount_clnt.c | 83 int errno; member 85 { .status = MNT_OK, .errno = 0, }, 110 int errno; member 125 int errno; member 198 if (result.errno != 0) in nfs_mount() 227 status = result.errno; in nfs_mount() 340 res->errno = mnt_errtbl[i].errno; in decode_status() 346 res->errno = -EACCES; in decode_status() 390 res->errno = mnt3_errtbl[i].errno; in decode_fhs_status() 396 res->errno = -EACCES; in decode_fhs_status() [all …]
|
/linux/tools/testing/selftests/exec/ |
A D | recursion-depth.c | 30 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/tools/testing/selftests/ipc/ |
A D | msgque.c | 43 return -errno; in restore_queue() 50 return -errno; in restore_queue() 56 return -errno; in restore_queue() 70 ret = -errno; in restore_queue() 94 ret = -errno; in check_and_destroy_queue() 126 return -errno; in check_and_destroy_queue() 144 return -errno; in dump_queue() 166 return -errno; in dump_queue() 182 return -errno; in fill_msgque() 190 return -errno; in fill_msgque() [all …]
|