/Linux-v4.19/tools/testing/selftests/capabilities/ |
D | test_execve.c | 43 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-v4.19/tools/testing/selftests/membarrier/ |
D | membarrier_test.c | 26 if (errno != EINVAL) { in test_membarrier_cmd_fail() 30 errno, strerror(errno)); in test_membarrier_cmd_fail() 35 test_name, cmd, flags, errno); in test_membarrier_cmd_fail() 49 if (errno != EINVAL) { in test_membarrier_flags_fail() 53 errno, strerror(errno)); in test_membarrier_flags_fail() 58 test_name, flags, errno); in test_membarrier_flags_fail() 70 test_name, flags, errno); in test_membarrier_global_success() 88 if (errno != EPERM) { in test_membarrier_private_expedited_fail() 92 errno, strerror(errno)); in test_membarrier_private_expedited_fail() 97 test_name, flags, errno); in test_membarrier_private_expedited_fail() [all …]
|
/Linux-v4.19/tools/iio/ |
D | iio_utils.c | 118 ret = -errno; in iioutils_get_type() 135 ret = -errno; in iioutils_get_type() 148 ret = -errno; in iioutils_get_type() 168 ret = -errno; in iioutils_get_type() 243 ret = -errno; in iioutils_get_param_float() 260 ret = -errno; in iioutils_get_param_float() 264 errno = 0; in iioutils_get_param_float() 266 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-v4.19/arch/um/os-Linux/ |
D | file.c | 45 return -errno; in os_stat_fd() 59 return -errno; in os_stat_file() 77 return -errno; in os_access() 89 return -errno; in os_ioctl_generic() 98 return -errno; in os_get_ifname() 109 return -errno; in os_set_slip() 113 return -errno; in os_set_slip() 124 return -errno; in os_mode_fd() 160 if (err && (errno != EACCES)) in os_file_mode() 161 return -errno; in os_file_mode() [all …]
|
D | umid.c | 55 __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 …]
|
D | process.c | 37 "errno = %d\n", proc_stat, errno); in os_process_pc() 43 "err = %d\n", proc_stat, errno); in os_process_pc() 72 errno); in os_process_parent() 81 errno); in os_process_parent() 150 return -errno; in os_map_memory() 160 return -errno; in os_protect_memory() 171 return -errno; in os_unmap_memory() 185 err = -errno; in os_drop_memory() 206 "err = %d\n", -errno); in can_drop_memory() 211 printk(UM_KERN_ERR "MADV_REMOVE failed, err = %d\n", -errno); in can_drop_memory() [all …]
|
/Linux-v4.19/tools/testing/selftests/breakpoints/ |
D | step_after_suspend_test.c | 41 strerror(errno)); in child() 47 strerror(errno)); in child() 52 ksft_print_msg("raise(SIGSTOP) failed: %s\n", strerror(errno)); in child() 66 ksft_print_msg("fork() failed: %s\n", strerror(errno)); in run_test() 74 ksft_print_msg("waitpid() failed: %s\n", strerror(errno)); in run_test() 78 ksft_print_msg("child did not stop: %s\n", strerror(errno)); in run_test() 83 strerror(errno)); in run_test() 88 if (errno == EIO) { in run_test() 91 strerror(errno)); in run_test() 94 strerror(errno)); in run_test() [all …]
|
D | breakpoint_test_arm64.c | 49 strerror(errno)); in child() 55 "raise(SIGSTOP) failed: %s\n", strerror(errno)); in child() 62 strerror(errno)); in child() 110 if (errno == EIO) in set_watchpoint() 113 strerror(errno)); in set_watchpoint() 117 strerror(errno)); in set_watchpoint() 130 "fork() failed: %s\n", strerror(errno)); in run_test() 139 "waitpid() failed: %s\n", strerror(errno)); in run_test() 144 "child did not stop: %s\n", strerror(errno)); in run_test() 158 strerror(errno)); in run_test() [all …]
|
/Linux-v4.19/fs/hostfs/ |
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-v4.19/drivers/media/usb/as102/ |
D | as102_fw.c | 105 int total_read_bytes = 0, errno = 0; in as102_firmware_upload() local 134 errno = bus_adap->ops->upload_fw_pkt(bus_adap, in as102_firmware_upload() 137 if (errno < 0) in as102_firmware_upload() 149 errno = bus_adap->ops->upload_fw_pkt(bus_adap, in as102_firmware_upload() 154 if (errno < 0) in as102_firmware_upload() 161 return (errno == 0) ? total_read_bytes : errno; in as102_firmware_upload() 166 int errno = -EFAULT; in as102_fw_upload() local 184 errno = -ENOMEM; in as102_fw_upload() 189 errno = request_firmware(&firmware, fw1, &dev->dev); in as102_fw_upload() 190 if (errno < 0) { in as102_fw_upload() [all …]
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_maps.c | 53 printf("Failed to create hashmap '%s'!\n", strerror(errno)); in test_hashmap() 66 errno == EEXIST); in test_hashmap() 70 errno == EINVAL); in test_hashmap() 77 assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == ENOENT); in test_hashmap() 82 errno == ENOENT); in test_hashmap() 92 errno == E2BIG); in test_hashmap() 101 errno == E2BIG); in test_hashmap() 105 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap() 116 errno == ENOENT); in test_hashmap() 123 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap() [all …]
|
D | test_progs.c | 115 CHECK(err || errno || retval, "ipv4", in test_pkt_access() 117 err, errno, retval, duration); in test_pkt_access() 121 CHECK(err || errno || retval, "ipv6", in test_pkt_access() 123 err, errno, retval, duration); in test_pkt_access() 156 CHECK(err || errno || retval != XDP_TX || size != 74 || in test_xdp() 159 err, errno, retval, size); in test_xdp() 163 CHECK(err || errno || retval != XDP_TX || size != 114 || in test_xdp() 166 err, errno, retval, size); in test_xdp() 188 CHECK(err || errno || retval != XDP_DROP, in test_xdp_adjust_tail() 190 err, errno, retval, size); in test_xdp_adjust_tail() [all …]
|
D | get_cgroup_id_user.c | 63 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 …]
|
/Linux-v4.19/tools/hv/ |
D | hv_vss_daemon.c | 62 if ((cmd == FIFREEZE && errno == EBUSY) || in vss_do_freeze() 63 (cmd == FITHAW && errno == EINVAL)) { in vss_do_freeze() 90 } else if (errno != ENOENT) { in is_dev_loop() 92 buffer, errno, strerror(errno)); in is_dev_loop() 98 if (errno != ENOENT) in is_dev_loop() 100 buffer, errno, strerror(errno)); in is_dev_loop() 153 ent->mnt_fsname, errno, strerror(errno)); in vss_operate() 183 save_errno = errno; in vss_operate() 247 errno, strerror(errno)); in main() 258 errno, strerror(errno)); in main() [all …]
|
/Linux-v4.19/arch/um/os-Linux/skas/ |
D | process.c | 37 return -errno; in ptrace_dump_regs() 70 "errno = %d\n", errno); in wait_stub_done() 84 "pid = %d, n = %d, errno = %d, status = 0x%x\n", pid, n, errno, in wait_stub_done() 104 "errno = %d\n", pid, errno); in get_skas_faultinfo() 147 "failed, errno = %d\n", errno); in handle_trap() 154 "syscall failed, errno = %d\n", errno); in handle_trap() 167 errno, status); in handle_trap() 212 "errno = %d\n", STUB_CODE, errno); in userspace_tramp() 224 STUB_DATA, errno); in userspace_tramp() 242 "handler failed - errno = %d\n", errno); in userspace_tramp() [all …]
|
/Linux-v4.19/tools/testing/selftests/net/ |
D | reuseport_bpf.c | 124 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 …]
|
D | udpgso_bench_rx.c | 67 error(1, errno, "poll"); in do_poll() 71 error(1, errno, "poll: 0x%x expected 0x%x\n", in do_poll() 83 error(1, errno, "socket"); in do_socket() 87 error(1, errno, "setsockopt rcvbuf"); in do_socket() 90 error(1, errno, "setsockopt reuseport"); in do_socket() 96 error(1, errno, "bind"); in do_socket() 102 error(1, errno, "listen"); in do_socket() 108 error(1, errno, "accept"); in do_socket() 110 error(1, errno, "close accept fd"); in do_socket() 124 if (ret == -1 && errno == EAGAIN) in do_flush_tcp() [all …]
|
D | reuseport_bpf_numa.c | 58 error(1, errno, "failed to create receive socket"); in build_rcv_group() 63 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_group() 66 error(1, errno, "failed to bind receive socket"); in build_rcv_group() 69 error(1, errno, "failed to listen on receive port"); in build_rcv_group() 98 error(1, errno, "ebpf error. log:\n%s\n", bpf_log_buf); in attach_bpf() 102 error(1, errno, "failed to set SO_ATTACH_REUSEPORT_EBPF"); in attach_bpf() 142 error(1, errno, "failed to pin to node"); in send_from_node() 146 error(1, errno, "failed to create send socket"); in send_from_node() 149 error(1, errno, "failed to bind send socket"); in send_from_node() 152 error(1, errno, "failed to connect send socket"); in send_from_node() [all …]
|
/Linux-v4.19/tools/testing/selftests/ipc/ |
D | msgque.c | 42 return -errno; in restore_queue() 49 return -errno; in restore_queue() 55 return -errno; in restore_queue() 69 ret = -errno; in restore_queue() 77 printf("Failed to destroy queue: %d\n", -errno); in restore_queue() 90 if (errno == ENOMSG) in check_and_destroy_queue() 93 ret = -errno; in check_and_destroy_queue() 124 printf("Failed to destroy queue: %d\n", -errno); in check_and_destroy_queue() 125 return -errno; in check_and_destroy_queue() 139 if (errno == -EINVAL) in dump_queue() [all …]
|
/Linux-v4.19/fs/nfs/ |
D | mount_clnt.c | 84 int errno; member 86 { .status = MNT_OK, .errno = 0, }, 87 { .status = MNT_EPERM, .errno = -EPERM, }, 88 { .status = MNT_ENOENT, .errno = -ENOENT, }, 89 { .status = MNT_EACCES, .errno = -EACCES, }, 90 { .status = MNT_EINVAL, .errno = -EINVAL, }, 111 int errno; member 113 { .status = MNT3_OK, .errno = 0, }, 114 { .status = MNT3ERR_PERM, .errno = -EPERM, }, 115 { .status = MNT3ERR_NOENT, .errno = -ENOENT, }, [all …]
|
/Linux-v4.19/tools/testing/selftests/mount/ |
D | unprivileged-remount-test.c | 67 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 …]
|
/Linux-v4.19/arch/um/drivers/ |
D | umcast_user.c | 81 err = -errno; in umcast_open() 83 "errno = %d\n", errno); in umcast_open() 88 err = -errno; in umcast_open() 90 "errno = %d\n", errno); in umcast_open() 98 err = -errno; in umcast_open() 100 "failed, error = %d\n", errno); in umcast_open() 107 err = -errno; in umcast_open() 109 "failed, error = %d\n", errno); in umcast_open() 116 err = -errno; in umcast_open() 118 "errno = %d\n", errno); in umcast_open() [all …]
|
D | chan_user.c | 29 else if (errno == EAGAIN) in generic_read() 33 return -errno; in generic_read() 45 else if (errno == EAGAIN) in generic_write() 49 return -errno; in generic_write() 59 return -errno; in generic_window_size() 112 return -errno; in generic_console_write() 170 "errno = %d\n", errno); in winch_thread() 178 errno); in winch_thread() 184 "fd %d err = %d\n", pty_fd, errno); in winch_thread() 190 "fd %d err = %d\n", pty_fd, errno); in winch_thread() [all …]
|
/Linux-v4.19/samples/bpf/ |
D | test_cgrp2_array_pin.c | 65 cg2, strerror(errno), errno); in main() 76 strerror(errno), errno); in main() 83 pinned_file, strerror(errno), errno); in main() 98 pinned_file, strerror(errno), errno); in main()
|
/Linux-v4.19/tools/testing/selftests/kvm/lib/ |
D | io.c | 59 TEST_ASSERT(errno == EAGAIN || errno == EINTR, in test_write() 61 " rc: %zi errno: %i", rc, errno); in test_write() 72 " rc: %zi errno: %i", rc, errno); in test_write() 136 TEST_ASSERT(errno == EAGAIN || errno == EINTR, in test_read() 138 " rc: %zi errno: %i", rc, errno); in test_read() 149 " rc: %zi errno: %i", rc, errno); in test_read()
|