Home
last modified time | relevance | path

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

12345678910>>...20

/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 …]
Dbpf_tcp_ca.c24 errno)) in settimeo()
30 errno)) in settimeo()
42 errno)) in settcpca()
56 if (errno == EINTR) in server()
58 err = -errno; in server()
63 err = -errno; in server()
70 if (nr_sent == -1 && errno == EINTR) in server()
73 err = -errno; in server()
80 bytes, total_bytes, nr_sent, errno); in server()
106 if (CHECK(lfd == -1, "socket", "errno:%d\n", errno)) in do_test()
[all …]
Dtest_bpffs.c35 if (CHECK(err, "unshare", "failed: %d\n", errno)) in fn()
39 if (CHECK(err, "mount /", "failed: %d\n", errno)) in fn()
43 if (CHECK(err, "umount " TDIR, "failed: %d\n", errno)) in fn()
47 if (CHECK(err, "mount", "mount root failed: %d\n", errno)) in fn()
51 if (CHECK(err, "mkdir "TDIR"/fs1", "failed: %d\n", errno)) in fn()
54 if (CHECK(err, "mkdir "TDIR"/fs2", "failed: %d\n", errno)) in fn()
58 if (CHECK(err, "mount bpffs "TDIR"/fs1", "failed: %d\n", errno)) in fn()
61 if (CHECK(err, "mount bpffs " TDIR "/fs2", "failed: %d\n", errno)) in fn()
85 if (CHECK(pid == -1, "clone", "clone failed %d", errno)) in test_test_bpffs()
90 if (CHECK(err == -1 && errno != ECHILD, "waitpid", "failed %d", errno)) in test_test_bpffs()
Dsend_signal.c26 "pipe pipe_c2p error: %s\n", strerror(errno))) in test_send_signal_common()
30 "pipe pipe_p2c error: %s\n", strerror(errno))) { in test_send_signal_common()
37 if (CHECK(pid < 0, test_name, "fork error: %s\n", strerror(errno))) { in test_send_signal_common()
58 errno = 0; in test_send_signal_common()
60 ASSERT_OK(errno, "getpriority"); in test_send_signal_common()
64 CHECK(write(pipe_c2p[1], buf, 1) != 1, "pipe_write", "err %d\n", -errno); in test_send_signal_common()
67 CHECK(read(pipe_p2c[0], buf, 1) != 1, "pipe_read", "err %d\n", -errno); in test_send_signal_common()
73 CHECK(write(pipe_c2p[1], buf, 1) != 1, "pipe_write", "err %d\n", -errno); in test_send_signal_common()
76 CHECK(read(pipe_p2c[0], buf, 1) != 1, "pipe_read", "err %d\n", -errno); in test_send_signal_common()
103 strerror(errno))) { in test_send_signal_common()
[all …]
Dtp_attach_query.c22 if (CHECK(efd < 0, "open", "err %d errno %d\n", efd, errno)) in test_tp_attach_query()
27 "read", "bytes %d errno %d\n", bytes, errno)) in test_tp_attach_query()
40 if (CHECK(err, "prog_load", "err %d errno %d\n", err, errno)) in test_tp_attach_query()
50 err, errno)) in test_tp_attach_query()
58 pmu_fd[i], errno)) in test_tp_attach_query()
62 err, errno)) in test_tp_attach_query()
72 err, errno, query->prog_cnt)) in test_tp_attach_query()
78 err, errno)) in test_tp_attach_query()
88 err, errno, query->prog_cnt)) in test_tp_attach_query()
95 if (CHECK(!err || errno != EFAULT, in test_tp_attach_query()
[all …]
/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 …]
/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 …]
/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()
/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()
/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 …]
Dunprivileged-remount-test.c67 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 …]
/tools/testing/selftests/mincore/
Dmincore_selftest.c45 errno = 0; in TEST()
48 EXPECT_EQ(ENOMEM, errno); in TEST()
50 errno = 0; in TEST()
54 TH_LOG("mmap error: %s", strerror(errno)); in TEST()
58 errno = 0; in TEST()
61 EXPECT_EQ(EINVAL, errno); in TEST()
64 errno = 0; in TEST()
67 EXPECT_EQ(ENOMEM, errno); in TEST()
70 errno = 0; in TEST()
73 EXPECT_EQ(EFAULT, errno); in TEST()
[all …]
/tools/iio/
Diio_utils.c115 ret = -errno; in iioutils_get_type()
132 ret = -errno; in iioutils_get_type()
145 ret = -errno; in iioutils_get_type()
165 ret = -errno; in iioutils_get_type()
240 ret = -errno; in iioutils_get_param_float()
257 ret = -errno; in iioutils_get_param_float()
261 errno = 0; in iioutils_get_param_float()
263 ret = errno ? -errno : -ENODATA; in iioutils_get_param_float()
331 ret = -errno; in build_channel_array()
348 ret = -errno; in build_channel_array()
[all …]
/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 …]
/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()
70 strerror(errno)); in __do_binderfs_test()
76 if (errno == ENODEV) in __do_binderfs_test()
78 TH_LOG("%s - Failed to mount binderfs", strerror(errno)); in __do_binderfs_test()
90 strerror(errno)); in __do_binderfs_test()
95 saved_errno = errno; in __do_binderfs_test()
97 errno = saved_errno; in __do_binderfs_test()
[all …]
/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c152 btf_fd, errno); in create_sk_storage_map()
159 "bpf_create_map_xattr()", "errno:%d\n", errno); in create_sk_storage_map()
189 err = -errno; in insert_close_thread()
190 fprintf(stderr, "socket(): errno:%d\n", 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()
293 if (err && errno != EAGAIN) { in update_thread()
294 err = -errno; in update_thread()
296 err, errno); in update_thread()
[all …]
Dhtab_map_batch_ops.c37 CHECK(err, "bpf_map_update_batch()", "error:%s\n", strerror(errno)); in map_batch_update()
101 "bpf_create_map_xattr()", "error:%s\n", strerror(errno)); in __test_map_lookup_and_delete_batch()
111 "error:%s\n", strerror(errno)); in __test_map_lookup_and_delete_batch()
117 CHECK((err && errno != ENOENT), "empty map", in __test_map_lookup_and_delete_batch()
118 "error: %s\n", strerror(errno)); in __test_map_lookup_and_delete_batch()
127 CHECK(err, "count = 0", "error: %s\n", strerror(errno)); in __test_map_lookup_and_delete_batch()
135 CHECK((err && errno != ENOENT), "count = max_entries", in __test_map_lookup_and_delete_batch()
136 "error: %s\n", strerror(errno)); in __test_map_lookup_and_delete_batch()
143 CHECK(!err, "bpf_map_get_next_key()", "error: %s\n", strerror(errno)); in __test_map_lookup_and_delete_batch()
169 if (err && errno == ENOSPC) { in __test_map_lookup_and_delete_batch()
[all …]
/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 …]
/tools/testing/selftests/net/
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_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 …]
/tools/testing/selftests/
Dkselftest.h117 int saved_errno = errno; in ksft_print_msg()
122 errno = saved_errno; in ksft_print_msg()
129 int saved_errno = errno; in ksft_test_result_pass()
136 errno = saved_errno; in ksft_test_result_pass()
143 int saved_errno = errno; in ksft_test_result_fail()
150 errno = saved_errno; in ksft_test_result_fail()
169 int saved_errno = errno; in ksft_test_result_xfail()
176 errno = saved_errno; in ksft_test_result_xfail()
183 int saved_errno = errno; in ksft_test_result_skip()
190 errno = saved_errno; in ksft_test_result_skip()
[all …]
/tools/testing/selftests/bpf/
Dtest_maps.c45 printf("Failed to create hashmap '%s'!\n", strerror(errno)); in test_hashmap()
58 errno == EEXIST); in test_hashmap()
62 errno == EINVAL); in test_hashmap()
69 assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == ENOENT); in test_hashmap()
74 errno == ENOENT); in test_hashmap()
84 errno == E2BIG); in test_hashmap()
93 errno == E2BIG); in test_hashmap()
97 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap()
108 errno == ENOENT); in test_hashmap()
115 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap()
[all …]
/tools/testing/selftests/ipc/
Dmsgque.c43 return -errno; in restore_queue()
50 return -errno; in restore_queue()
56 return -errno; in restore_queue()
70 ret = -errno; in restore_queue()
78 printf("Failed to destroy queue: %d\n", -errno); in restore_queue()
91 if (errno == ENOMSG) in check_and_destroy_queue()
94 ret = -errno; in check_and_destroy_queue()
125 printf("Failed to destroy queue: %d\n", -errno); in check_and_destroy_queue()
126 return -errno; in check_and_destroy_queue()
140 if (errno == EINVAL) in dump_queue()
[all …]
/tools/testing/selftests/kvm/lib/
Dio.c58 TEST_ASSERT(errno == EAGAIN || errno == EINTR, in test_write()
60 " rc: %zi errno: %i", rc, errno); in test_write()
71 " rc: %zi errno: %i", rc, errno); in test_write()
135 TEST_ASSERT(errno == EAGAIN || errno == EINTR, in test_read()
137 " rc: %zi errno: %i", rc, errno); in test_read()
148 " rc: %zi errno: %i", rc, errno); in test_read()
/tools/testing/selftests/watchdog/
Dwatchdog-test.c65 printf("\nStopping watchdog ticks failed (%d)...\n", errno); in term()
114 if (errno == ENOENT) in main()
116 else if (errno == EACCES) in main()
120 strerror(errno)); in main()
129 printf("WDIOC_GETSUPPORT error '%s'\n", strerror(errno)); in main()
146 printf("WDIOC_GETBOOTSTATUS error '%s'\n", strerror(errno)); in main()
154 printf("WDIOS_DISABLECARD error '%s'\n", strerror(errno)); in main()
164 printf("WDIOS_ENABLECARD error '%s'\n", strerror(errno)); in main()
180 printf("WDIOC_SETTIMEOUT error '%s'\n", strerror(errno)); in main()
190 printf("WDIOC_GETTIMEOUT error '%s'\n", strerror(errno)); in main()
[all …]

12345678910>>...20