| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | pinning.c | 23 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 …]
|
| H A D | tp_attach_query.c | 27 if (CHECK(efd < 0, "open", "err %d errno %d\n", efd, errno)) in serial_test_tp_attach_query() 32 "read", "bytes %d errno %d\n", bytes, errno)) in serial_test_tp_attach_query() 45 if (CHECK(err, "prog_load", "err %d errno %d\n", err, errno)) in serial_test_tp_attach_query() 55 if (CHECK(err, "bpf_prog_get_info_by_fd", "err %d errno %d\n", in serial_test_tp_attach_query() 56 err, errno)) in serial_test_tp_attach_query() 63 if (CHECK(pmu_fd[i] < 0, "perf_event_open", "err %d errno %d\n", in serial_test_tp_attach_query() 64 pmu_fd[i], errno)) in serial_test_tp_attach_query() 67 if (CHECK(err, "perf_event_ioc_enable", "err %d errno %d\n", in serial_test_tp_attach_query() 68 err, errno)) in serial_test_tp_attach_query() 77 "err %d errno %d query->prog_cnt %u\n", in serial_test_tp_attach_query() [all …]
|
| H A D | select_reuseport.c | 8 #include <errno.h> 70 "reuseport_array:%d errno:%d\n", reuseport_array, errno); in create_maps() 77 "outer_map:%d errno:%d\n", outer_map, errno); in create_maps() 161 "sysctl:%s fd:%d errno:%d\n", sysctl, fd, errno); in read_int_sysctl() 165 "sysctl:%s ret:%d errno:%d\n", sysctl, ret, errno); in read_int_sysctl() 178 "sysctl:%s fd:%d errno in write_int_sysctl() [all...] |
| H A D | cgroup_attach_multi.c | 20 printf("failed to create map '%s'\n", strerror(errno)); in prog_load_cnt() 27 printf("failed to create map '%s'\n", strerror(errno)); in prog_load_cnt() 35 printf("failed to create map '%s'\n", strerror(errno)); in prog_load_cnt() 118 "prog0_attach_to_cg1_multi", "errno=%d\n", errno)) in serial_test_cgroup_attach_multi() 128 "prog1_attach_to_cg1_multi", "errno=%d\n", errno)) in serial_test_cgroup_attach_multi() 133 "prog2_attach_to_cg2_override", "errno=%d\n", errno)) in serial_test_cgroup_attach_multi() 138 "prog3_attach_to_cg3_multi", "errno=%d\n", errno)) in serial_test_cgroup_attach_multi() 143 "prog4_attach_to_cg4_override", "errno=%d\n", errno)) in serial_test_cgroup_attach_multi() 147 "prog5_attach_to_cg5_none", "errno=%d\n", errno)) in serial_test_cgroup_attach_multi() 171 CHECK_FAIL(errno != ENOSPC); in serial_test_cgroup_attach_multi() [all …]
|
| H A D | cgroup_attach_override.c | 48 "attach prog to %s failed, errno=%d\n", FOO, errno)) in serial_test_cgroup_attach_override() 66 "attach prog to %s failed, errno=%d\n", BAR, errno)) in serial_test_cgroup_attach_override() 74 "detach prog from %s failed, errno=%d\n", BAR, errno)) in serial_test_cgroup_attach_override() 84 "attach prog to %s failed, errno=%d\n", BAR, errno)) in serial_test_cgroup_attach_override() 89 "detach prog from %s failed, errno=%d\n", FOO, errno)) in serial_test_cgroup_attach_override() 98 "attach prog to %s failed, errno=%d\n", BAR, errno)) in serial_test_cgroup_attach_override() 108 "detach prog from %s failed, errno=%d\n", BAR, errno)) in serial_test_cgroup_attach_override() 118 "attach prog to %s failed, errno=%d\n", FOO, errno)) in serial_test_cgroup_attach_override() 140 "attach prog to %s failed, errno=%d\n", FOO, errno)) in serial_test_cgroup_attach_override()
|
| H A D | xdp_info.c | 19 if (CHECK(err, "get_xdp_none", "errno=%d\n", errno)) in serial_test_xdp_info() 25 if (CHECK(err, "get_xdp_none_skb", "errno=%d\n", errno)) in serial_test_xdp_info() 38 if (CHECK(err, "get_prog_info", "errno=%d\n", errno)) in serial_test_xdp_info() 42 if (CHECK(err, "set_xdp_skb", "errno=%d\n", errno)) in serial_test_xdp_info() 48 if (CHECK(err, "get_xdp", "errno=%d\n", errno)) in serial_test_xdp_info() 54 if (CHECK(err, "get_xdp_skb", "errno=%d\n", errno)) in serial_test_xdp_info() 60 if (CHECK(err, "get_xdp_drv", "errno=%d\n", errno)) in serial_test_xdp_info()
|
| H A D | task_fd_query_tp.c | 17 if (CHECK(err, "bpf_prog_test_load", "err %d errno %d\n", err, errno)) in test_task_fd_query_tp_core() 28 if (CHECK(efd < 0, "open", "err %d errno %d\n", efd, errno)) in test_task_fd_query_tp_core() 33 "bytes %d errno %d\n", bytes, errno)) in test_task_fd_query_tp_core() 44 if (CHECK(err, "perf_event_open", "err %d errno %d\n", err, errno)) in test_task_fd_query_tp_core() 48 if (CHECK(err, "perf_event_ioc_enable", "err %d errno %d\n", err, in test_task_fd_query_tp_core() 49 errno)) in test_task_fd_query_tp_core() 53 if (CHECK(err, "perf_event_ioc_set_bpf", "err %d errno %d\n", err, in test_task_fd_query_tp_core() 54 errno)) in test_task_fd_query_tp_core() 61 if (CHECK(err < 0, "bpf_task_fd_query", "err %d errno %d\n", err, in test_task_fd_query_tp_core() 62 errno)) in test_task_fd_query_tp_core()
|
| /linux/tools/testing/selftests/bpf/map_tests/ |
| H A D | sk_storage_map.c | 12 #include <errno.h> 147 CHECK(btf_fd == -1, "bpf_load_btf", "btf_fd:%d errno:%d\n", in create_sk_storage_map() 148 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() 194 "bpf_map_update_elem(): errno:%d\n", in insert_close_thread() 195 errno); in insert_close_thread() 239 err = -errno; in do_sk_storage_map_stress_free() [all …]
|
| /linux/tools/testing/selftests/membarrier/ |
| H A D | membarrier_test_impl.h | 6 #include <errno.h> 30 "%s test: flags = %d, errno = %d\n", in test_membarrier_get_registrations() 31 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() 62 "%s test: command = %d, flags = %d, errno = %d. Failed as expected\n", 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() 85 "%s test: flags = %d, errno = %d. Failed as expected\n", in test_membarrier_flags_fail() [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_maps.c | 11 #include <errno.h> 40 printf("Failed to create hashmap '%s'!\n", strerror(errno)); in test_hashmap() 53 errno == EEXIST); in test_hashmap() 57 errno == EINVAL); in test_hashmap() 71 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT); in test_hashmap() 76 errno == ENOENT); in test_hashmap() 86 errno == E2BIG); in test_hashmap() 95 errno == E2BIG); in test_hashmap() 99 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap() 110 errno in test_hashmap() [all...] |
| /linux/arch/um/os-Linux/ |
| H A D | file.c | 10 #include <errno.h> 51 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_mode_fd() 151 if (err && (errno != EACCES)) in os_file_mode() 152 return -errno; in os_file_mode() 157 if (err && (errno != EACCES)) in os_file_mode() [all …]
|
| H A D | sigio.c | 7 #include <errno.h> 44 if (errno == EINTR) in write_sigio_thread() 46 printk(UM_KERN_ERR "%s: epoll_wait failed, errno = %d\n", in write_sigio_thread() 47 __func__, errno); in write_sigio_thread() 52 printk(UM_KERN_ERR "%s: tgkill failed, errno = %d\n", in write_sigio_thread() 53 __func__, errno); in write_sigio_thread() 68 return r < 0 ? -errno : 0; in __add_sigio_fd() 88 return r < 0 ? -errno : 0; in __ignore_sigio_fd() 112 printk(UM_KERN_ERR "%s: epoll_create failed, errno = %d\n", in write_sigio_workaround() 113 __func__, errno); in write_sigio_workaround() [all …]
|
| /linux/tools/testing/selftests/landlock/ |
| H A D | base_test.c | 10 #include <errno.h> 36 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() [all...] |
| /linux/tools/testing/selftests/capabilities/ |
| H A D | test_execve.c | 10 #include <errno.h> 35 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() [all …]
|
| /linux/tools/iio/ |
| H A D | iio_utils.c | 11 #include <errno.h> 117 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() [all …]
|
| /linux/tools/testing/selftests/mincore/ |
| H A D | mincore_selftest.c | 11 #include <errno.h> 44 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() [all …]
|
| /linux/tools/testing/selftests/mm/ |
| H A D | pagemap_ioctl.c | 8 #include <errno.h> 125 ksft_exit_fail_msg("ioctl(UFFDIO_REGISTER) %d %s\n", errno, strerror(errno)); in wp_init() 157 ksft_exit_fail_msg("error %d %d %s\n", 1, errno, strerror(errno)); in wp_addr_range() 217 ksft_exit_fail_msg("error %ld %d %s\n", written, errno, strerror(errno)); in userfaultfd_tests() 327 ksft_exit_fail_msg("error %ld %d %s\n", ret, errno, strerror(errno)); in sanity_tests_sd() 337 ksft_exit_fail_msg("error %ld %d %s\n", ret, errno, strerror(errno)); in sanity_tests_sd() 342 ksft_exit_fail_msg("error %ld %d %s\n", ret2, errno, strerror(errno)); in sanity_tests_sd() 348 ksft_exit_fail_msg("error %ld %d %s\n", ret3, errno, strerror(errno)); in sanity_tests_sd() 363 ksft_exit_fail_msg("error %ld %d %s\n", ret, errno, strerror(errno)); in sanity_tests_sd() 369 ksft_exit_fail_msg("error %ld %d %s\n", ret2, errno, strerror(errno)); in sanity_tests_sd() [all …]
|
| /linux/tools/testing/selftests/filesystems/binderfs/ |
| H A D | binderfs_test.c | 4 #include <errno.h> 33 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() [all …]
|
| /linux/tools/testing/selftests/mount/ |
| H A D | nosymfollow-test.c | 3 #include <errno.h> 50 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() [all …]
|
| /linux/fs/nfs/ |
| H A D | mount_clnt.c | 11 #include <linux/errno.h> 83 int errno; member 85 { .status = MNT_OK, .errno = 0, }, 86 { .status = MNT_EPERM, .errno = -EPERM, }, 87 { .status = MNT_ENOENT, .errno = -ENOENT, }, 88 { .status = MNT_EACCES, .errno = -EACCES, }, 89 { .status = MNT_EINVAL, .errno = -EINVAL, }, 110 int errno; member 112 { .status = MNT3_OK, .errno = 0, }, 113 { .status = MNT3ERR_PERM, .errno = -EPERM, }, [all …]
|
| /linux/tools/testing/selftests/powerpc/papr_vpd/ |
| H A D | papr_vpd.c | 3 #include <errno.h> 20 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() [all …]
|
| /linux/tools/testing/selftests/arm64/fp/ |
| H A D | kernel-test.c | 11 #include <errno.h> 77 if (errno == EAFNOSUPPORT) { in create_socket() 83 strerror(errno), errno); in create_socket() 169 addr.salg_name, strerror(errno), errno); in create_socket() 176 addr.salg_name, strerror(errno), errno); in create_socket() 185 strerror(errno), errno); in create_socket() 214 strerror(errno), errno); in compute_digest() 222 strerror(errno), errno); in compute_digest() 238 if (errno == -EAGAIN) in compute_digest() 241 strerror(errno), errno); in compute_digest() [all …]
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | irqfd_test.c | 2 #include <errno.h> 42 TEST_ASSERT(!r || errno == EBUSY || errno == EBADF, in juggle_eventfd_secondary() 43 "Wanted success, EBUSY, or EBADF, r = %d, errno = %d", in juggle_eventfd_secondary() 44 r, errno); in juggle_eventfd_secondary() 48 TEST_ASSERT(!r || errno == EBADF, in juggle_eventfd_secondary() 73 TEST_ASSERT(!r1 || errno == EBUSY, in juggle_eventfd_primary() 74 "Wanted success or EBUSY, r = %d, errno = %d", r1, errno); in juggle_eventfd_primary() 77 TEST_ASSERT(r1 || (r2 && errno == EBUSY), in juggle_eventfd_primary() 78 "Wanted failure (EBUSY), r1 = %d, r2 = %d, errno = %d", in juggle_eventfd_primary() 79 r1, r2, errno); in juggle_eventfd_primary() [all …]
|
| /linux/drivers/media/usb/as102/ |
| H A D | as102_fw.c | 8 #include <linux/errno.h> 96 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() [all …]
|
| /linux/fs/nfs_common/ |
| H A D | common.c | 9 * the local errno values which may not be the same. 13 int errno; member 50 * nfs_stat_to_errno - convert an NFS status code to a local errno 53 * Returns a local errno value, or -EIO if the NFS status code is 62 return nfs_errtbl[i].errno; in nfs_stat_to_errno() 70 * the local errno values which may not be the same. 77 int errno; member 109 int errno; member 129 return nfs4_errtbl_common[i].errno; in nfs4_stat_to_errno() 134 return nfs4_errtbl[i].errno; in nfs4_stat_to_errno() [all …]
|