/openbmc/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> 76 "reuseport_array:%d errno:%d\n", reuseport_array, errno); in create_maps() 83 "outer_map:%d errno:%d\n", outer_map, errno); in create_maps() 167 "sysctl:%s fd:%d errno:%d\n", sysctl, fd, errno); in read_int_sysctl() 171 "sysctl:%s ret:%d errno:%d\n", sysctl, ret, errno); in read_int_sysctl() 184 "sysctl:%s fd:%d errno:%d\n", sysctl, fd, errno); in write_int_sysctl() 189 "sysctl:%s ret:%d size:%d errno:%d\n", in write_int_sysctl() 190 sysctl, ret, size, errno); in write_int_sysctl() 231 RET_ERR(err < 0, "lookup_elem(linum_map)", "err:%d errno:%d\n", in get_linum() 232 err, errno); in get_linum() [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 | 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 …]
|
/openbmc/phosphor-debug-collector/ |
H A D | dump_offload.cpp | 59 lg2::error("writeOnUnixSocket: select() failed, errno: {ERRNO}", in writeOnUnixSocket() 60 "ERRNO", errno); in writeOnUnixSocket() 61 std::string msg = "select() failed " + std::string(strerror(errno)); in writeOnUnixSocket() 69 if (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR) in writeOnUnixSocket() 74 lg2::error("writeOnUnixSocket: write() failed, errno: {ERRNO}", in writeOnUnixSocket() 75 "ERRNO", errno); in writeOnUnixSocket() 77 "write() on socket failed " + std::string(strerror(errno)); in writeOnUnixSocket() 103 "UNIX socket path is too long " + std::string(strerror(errno)); in socketInit() 114 lg2::error("socketInit: socket() failed, errno: {ERRNO}", "ERRNO", in socketInit() 115 errno); in socketInit() [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 026.out.nocache | 6 Event: l1_update; errno: 5; imm: off; once: on; write 11 Event: l1_update; errno: 5; imm: off; once: on; write -b 16 Event: l1_update; errno: 5; imm: off; once: off; write 23 Event: l1_update; errno: 5; imm: off; once: off; write -b 30 Event: l1_update; errno: 28; imm: off; once: on; write 35 Event: l1_update; errno: 28; imm: off; once: on; write -b 40 Event: l1_update; errno: 28; imm: off; once: off; write 47 Event: l1_update; errno: 28; imm: off; once: off; write -b 54 Event: l2_load; errno: 5; imm: off; once: on; write 62 Event: l2_load; errno: 5; imm: off; once: on; write -b [all …]
|
H A D | 026.out | 6 Event: l1_update; errno: 5; imm: off; once: on; write 11 Event: l1_update; errno: 5; imm: off; once: on; write -b 16 Event: l1_update; errno: 5; imm: off; once: off; write 23 Event: l1_update; errno: 5; imm: off; once: off; write -b 30 Event: l1_update; errno: 28; imm: off; once: on; write 35 Event: l1_update; errno: 28; imm: off; once: on; write -b 40 Event: l1_update; errno: 28; imm: off; once: off; write 47 Event: l1_update; errno: 28; imm: off; once: off; write -b 54 Event: l2_load; errno: 5; imm: off; once: on; write 62 Event: l2_load; errno: 5; imm: off; once: on; write -b [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | sev_migrate_tests.c | 7 #include <errno.h> 46 "%d failed: return code: %d, errno: %d, fw error: %d", in sev_ioctl() 47 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() 116 "VM that was migrated from should be dead. ret %d, errno: %d\n", ret, in test_sev_migrate_from() 117 errno); in test_sev_migrate_from() 174 TEST_ASSERT(ret == -1 && errno == EINVAL, in test_sev_migrate_parameters() 175 "Migrations require SEV enabled. ret %d, errno: %d\n", ret, in test_sev_migrate_parameters() 176 errno); in test_sev_migrate_parameters() [all …]
|
/openbmc/linux/arch/um/os-Linux/ |
H A D | file.c | 10 #include <errno.h> 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() 165 if (err && (errno != EACCES)) in os_file_mode() [all …]
|
/openbmc/linux/tools/testing/selftests/exec/ |
H A D | recursion-depth.c | 17 #include <errno.h> 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()
|
/openbmc/u-boot/arch/sandbox/cpu/ |
H A D | eth-raw-os.c | 8 #include <errno.h> 46 return -errno; in sandbox_eth_raw_os_is_local() 51 ret = -errno; in sandbox_eth_raw_os_is_local() 63 return -errno; in sandbox_eth_raw_os_idx_to_name() 91 printf("Failed to open socket: %d %s\n", errno, in _raw_packet_start() 92 strerror(errno)); in _raw_packet_start() 93 return -errno; in _raw_packet_start() 100 errno, strerror(errno)); in _raw_packet_start() 101 return -errno; in _raw_packet_start() 118 errno, strerror(errno)); in _raw_packet_start() [all …]
|
/openbmc/linux/tools/testing/selftests/tmpfs/ |
H A D | bug-link-o-tmpfile.c | 17 #include <errno.h> 31 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()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_maps.c | 11 #include <errno.h> 44 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() [all …]
|
H A D | get_cgroup_id_user.c | 7 #include <errno.h> 66 if (CHECK(cgroup_fd < 0, "cgroup_setup_and_join", "err %d errno %d\n", cgroup_fd, errno)) in main() 73 if (CHECK(err, "bpf_prog_test_load", "err %d errno %d\n", err, errno)) in main() 77 if (CHECK(cgidmap_fd < 0, "bpf_find_map", "err %d errno %d\n", in main() 78 cgidmap_fd, errno)) in main() 82 if (CHECK(pidmap_fd < 0, "bpf_find_map", "err %d errno %d\n", in main() 83 pidmap_fd, errno)) in main() 97 if (CHECK(efd < 0, "open", "err %d errno %d\n", efd, errno)) in main() 102 "bytes %d errno %d\n", bytes, errno)) in main() 115 if (CHECK(pmu_fd < 0, "perf_event_open", "err %d errno %d\n", pmu_fd, in main() [all …]
|
/openbmc/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 …]
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-connectivity/ez-ipupdate/files/ |
H A D | cache_file.c.patch | 3 Dont assume errno type 11 -extern int errno; 12 +# include <errno.h> 13 # define error_string strerror(errno) 16 -extern int errno; 17 +# include <errno.h> 18 # define error_string (sys_errlist[errno]) 25 -extern int errno; 26 +# include <errno.h> 27 # define error_string strerror(errno) [all …]
|
/openbmc/linux/arch/um/os-Linux/skas/ |
H A D | process.c | 11 #include <errno.h> 86 return -errno; in ptrace_dump_regs() 121 printk(UM_KERN_ERR "%s : continue failed, errno = %d\n", in wait_stub_done() 122 __func__, errno); in wait_stub_done() 133 printk(UM_KERN_ERR "Failed to get registers from stub, errno = %d\n", in wait_stub_done() 135 …printk(UM_KERN_ERR "%s : failed to wait for SIGTRAP, pid = %d, n = %d, errno = %d, status = 0x%x\n… in wait_stub_done() 136 __func__, pid, n, errno, status); in wait_stub_done() 155 "errno = %d\n", pid, errno); in get_skas_faultinfo() 197 printk(UM_KERN_ERR "%s - nullifying syscall failed, errno = %d\n", in handle_trap() 198 __func__, errno); in handle_trap() [all …]
|
/openbmc/linux/fs/hostfs/ |
H A D | hostfs_user.c | 10 #include <errno.h> 49 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() [all …]
|
/openbmc/linux/tools/testing/selftests/futex/functional/ |
H A D | futex_waitv.c | 8 #include <errno.h> 44 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() [all …]
|
/openbmc/linux/tools/testing/selftests/capabilities/ |
H A D | test_execve.c | 10 #include <errno.h> 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() [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|