Home
last modified time | relevance | path

Searched refs:strerror (Results 1 – 25 of 220) sorted by relevance

123456789

/Linux-v5.15/tools/testing/selftests/capabilities/
Dtest_execve.c43 ksft_exit_fail_msg("vsnprintf failed - %s\n", strerror(errno)); 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()
147 strerror(errno)); in chdir_to_tmpfs()
[all …]
/Linux-v5.15/tools/testing/selftests/mount/
Dnosymfollow-test.c50 die("vsnprintf failed: %s\n", strerror(errno)); 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()
125 die("symlink failed: %s\n", strerror(errno)); in setup_symlink()
[all …]
Dunprivileged-remount-test.c67 strerror(errno)); 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()
198 strerror(errno)); in test_unpriv_remount()
[all …]
/Linux-v5.15/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()
82 strerror(errno)); in run_test()
86 strerror(errno)); in run_test()
92 ksft_print_msg("waitpid() failed: $s\n", strerror(errno)); in run_test()
[all …]
Dbreakpoint_test_arm64.c40 strerror(errno)); in child()
46 "raise(SIGSTOP) failed: %s\n", strerror(errno)); in child()
53 strerror(errno)); in child()
104 strerror(errno)); in set_watchpoint()
108 strerror(errno)); in set_watchpoint()
121 "fork() failed: %s\n", strerror(errno)); in run_test()
130 "waitpid() failed: %s\n", strerror(errno)); in run_test()
135 "child did not stop: %s\n", strerror(errno)); in run_test()
149 strerror(errno)); in run_test()
157 "waitpid() failed: %s\n", strerror(errno)); in run_test()
[all …]
/Linux-v5.15/tools/testing/selftests/filesystems/binderfs/
Dbinderfs_test.c46 strerror(errno)); in change_mountns()
52 strerror(errno)); in change_mountns()
73 strerror(errno)); in __do_binderfs_test()
81 TH_LOG("%s - Failed to mount binderfs", 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()
151 strerror(errno)); in __do_binderfs_test()
[all …]
/Linux-v5.15/tools/perf/arch/x86/tests/
Dbp-modify.c84 strerror(errno)); in bp_modify1()
91 strerror(errno)); in bp_modify1()
97 pr_debug("failed to set dr7: %s\n", strerror(errno)); in bp_modify1()
102 pr_debug("failed to PTRACE_CONT: %s\n", strerror(errno)); in bp_modify1()
116 strerror(errno)); in bp_modify1()
124 pr_debug("failed to PTRACE_DETACH: %s", strerror(errno)); in bp_modify1()
161 strerror(errno)); in bp_modify2()
167 pr_debug("failed to set dr7: %s\n", strerror(errno)); in bp_modify2()
178 pr_debug("failed to PTRACE_CONT: %s\n", strerror(errno)); in bp_modify2()
192 strerror(errno)); in bp_modify2()
[all …]
/Linux-v5.15/samples/binderfs/
Dbinderfs_example.c26 strerror(errno)); in main()
33 strerror(errno)); in main()
40 strerror(errno)); in main()
47 strerror(errno)); in main()
56 strerror(errno)); in main()
66 strerror(errno)); in main()
76 strerror(errno)); in main()
/Linux-v5.15/samples/bpf/
Dxdp_redirect_cpu_user.c100 fprintf(stderr, "Create CPU entry failed: %s\n", strerror(errno)); in create_cpu_entry()
109 fprintf(stderr, "Add to avail CPUs failed: %s\n", strerror(errno)); in create_cpu_entry()
117 strerror(errno)); in create_cpu_entry()
126 strerror(errno)); in create_cpu_entry()
151 strerror(errno)); in mark_cpus_unavailable()
201 strerror(errno)); in set_cpumap_prog()
209 strerror(errno)); in set_cpumap_prog()
219 strerror(errno)); in set_cpumap_prog()
240 strerror(errno)); in set_cpumap_prog()
355 strerror(errno)); in main()
[all …]
Dfds_example.c83 printf("bpf: map fd:%d (%s)\n", fd, strerror(errno)); in bpf_do_map()
87 printf("bpf: pin ret:(%d,%s)\n", ret, strerror(errno)); in bpf_do_map()
91 printf("bpf: get fd:%d (%s)\n", fd, strerror(errno)); in bpf_do_map()
98 ret, strerror(errno)); in bpf_do_map()
103 ret, strerror(errno)); in bpf_do_map()
116 printf("bpf: prog fd:%d (%s)\n", fd, strerror(errno)); in bpf_do_prog()
120 printf("bpf: pin ret:(%d,%s)\n", ret, strerror(errno)); in bpf_do_prog()
124 printf("bpf: get fd:%d (%s)\n", fd, strerror(errno)); in bpf_do_prog()
133 ret, strerror(errno)); in bpf_do_prog()
Dxdp_redirect_map_user.c116 strerror(errno)); in main()
123 fprintf(stderr, "Failed to sample_init_pre_load: %s\n", strerror(-ret)); in main()
133 ifindex_out, strerror(-ret)); in main()
145 strerror(errno)); in main()
152 fprintf(stderr, "Failed to initialize sample: %s\n", strerror(-ret)); in main()
185 strerror(errno)); in main()
193 strerror(errno)); in main()
199 strerror(errno)); in main()
210 fprintf(stderr, "Failed during sample run: %s\n", strerror(-ret)); in main()
Dxdp_redirect_user.c105 fprintf(stderr, "Failed to xdp_redirect__open: %s\n", strerror(errno)); in main()
112 fprintf(stderr, "Failed to sample_init_pre_load: %s\n", strerror(-ret)); in main()
123 fprintf(stderr, "Failed to xdp_redirect__load: %s\n", strerror(errno)); in main()
130 fprintf(stderr, "Failed to initialize sample: %s\n", strerror(-ret)); in main()
147 strerror(errno)); in main()
153 strerror(errno)); in main()
164 fprintf(stderr, "Failed during sample run: %s\n", strerror(-ret)); in main()
Dxdp_monitor_user.c79 strerror(errno)); in main()
86 fprintf(stderr, "Failed to sample_init_pre_load: %s\n", strerror(-ret)); in main()
93 fprintf(stderr, "Failed to xdp_monitor__load: %s\n", strerror(errno)); in main()
100 fprintf(stderr, "Failed to initialize sample: %s\n", strerror(-ret)); in main()
110 fprintf(stderr, "Failed during sample run: %s\n", strerror(-ret)); in main()
/Linux-v5.15/tools/testing/selftests/watchdog/
Dwatchdog-test.c120 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()
198 printf("WDIOC_SETPRETIMEOUT error '%s'\n", strerror(errno)); in main()
208 printf("WDIOC_GETPRETIMEOUT error '%s'\n", strerror(errno)); in main()
216 printf("WDIOC_GETTIMELEFT error '%s'\n", strerror(errno)); in main()
/Linux-v5.15/tools/testing/selftests/landlock/
Dcommon.h119 TH_LOG("Failed to cap_get_proc: %s", strerror(errno)); in _init_caps()
122 TH_LOG("Failed to cap_clear: %s", strerror(errno)); in _init_caps()
127 TH_LOG("Failed to cap_set_flag: %s", strerror(errno)); in _init_caps()
131 TH_LOG("Failed to cap_set_proc: %s", strerror(errno)); in _init_caps()
134 TH_LOG("Failed to cap_free: %s", strerror(errno)); in _init_caps()
158 TH_LOG("Failed to cap_get_proc: %s", strerror(errno)); in _effective_cap()
161 TH_LOG("Failed to cap_set_flag: %s", strerror(errno)); in _effective_cap()
164 TH_LOG("Failed to cap_set_proc: %s", strerror(errno)); in _effective_cap()
167 TH_LOG("Failed to cap_free: %s", strerror(errno)); in _effective_cap()
/Linux-v5.15/tools/testing/selftests/pidfd/
Dpidfd_poll_test.c58 strerror(errno)); in main()
71 strerror(errno)); in main()
76 strerror(errno)); in main()
82 strerror(errno)); in main()
91 strerror(errno)); in main()
110 strerror(errno)); in main()
Dpidfd_getfd_test.c48 strerror(errno)); in __child()
55 strerror(errno)); in __child()
74 strerror(errno)); in __child()
85 strerror(errno)); in __child()
91 strerror(errno)); in __child()
105 strerror(errno)); in child()
139 TH_LOG("%s: failed to create socketpair", strerror(errno)); in FIXTURE_SETUP()
228 TH_LOG("%s: getfd did not get EBADF", strerror(errno)); in TEST_F()
/Linux-v5.15/tools/testing/selftests/bpf/map_tests/
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()
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()
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()
175 "error: %s\n", strerror(errno)); in __test_map_lookup_and_delete_batch()
198 "error: %s\n", strerror(errno)); in __test_map_lookup_and_delete_batch()
209 "error: %s\n", strerror(errno)); in __test_map_lookup_and_delete_batch()
[all …]
/Linux-v5.15/tools/testing/selftests/arm64/fp/
Dvec-syscfg.c83 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()
170 strerror(errno)); in file_read_integer()
189 strerror(errno)); in file_write_integer()
309 data->name, errno, strerror(errno)); in prctl_get()
334 data->name, errno, strerror(errno)); in prctl_set_same()
362 errno, strerror(errno)); in prctl_set()
383 errno, strerror(errno)); in prctl_set()
[all …]
/Linux-v5.15/tools/testing/selftests/membarrier/
Dmembarrier_test_impl.h30 test_name, flags, EINVAL, strerror(EINVAL), in test_membarrier_cmd_fail()
31 errno, strerror(errno)); in test_membarrier_cmd_fail()
53 test_name, flags, EINVAL, strerror(EINVAL), in test_membarrier_flags_fail()
54 errno, strerror(errno)); in test_membarrier_flags_fail()
92 test_name, flags, EPERM, strerror(EPERM), in test_membarrier_private_expedited_fail()
93 errno, strerror(errno)); in test_membarrier_private_expedited_fail()
149 test_name, flags, EPERM, strerror(EPERM), in test_membarrier_private_expedited_sync_core_fail()
150 errno, strerror(errno)); in test_membarrier_private_expedited_sync_core_fail()
/Linux-v5.15/tools/hv/
Dhv_vss_daemon.c83 buffer, errno, strerror(errno)); in is_dev_loop()
91 buffer, errno, strerror(errno)); in is_dev_loop()
144 ent->mnt_fsname, errno, strerror(errno)); in vss_operate()
193 errdir, save_errno, strerror(save_errno)); in vss_operate()
196 strerror(save_errno)); in vss_operate()
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()
310 errno, strerror(errno)); in main()
348 strerror(errno)); in main()
Dhv_fcopy_daemon.c77 syslog(LOG_INFO, "Open Failed: %s", strerror(errno)); in hv_start_fcopy()
107 filesize, (long)bytes_written, strerror(errno)); in hv_copy_data()
182 syslog(LOG_ERR, "daemon() failed; error: %s", strerror(errno)); in main()
199 errno, strerror(errno)); in main()
207 syslog(LOG_ERR, "Registration failed: %s", strerror(errno)); in main()
220 syslog(LOG_ERR, "pread failed: %s", strerror(errno)); in main()
262 syslog(LOG_ERR, "pwrite failed: %s", strerror(errno)); in main()
/Linux-v5.15/tools/testing/selftests/uevent/
Duevent_filtering.c95 fprintf(stderr, "%s - Failed to open uevent socket\n", strerror(errno)); in uevent_listener()
102 fprintf(stderr, "%s - Failed to set socket options\n", strerror(errno)); in uevent_listener()
112 fprintf(stderr, "%s - Failed to bind socket\n", strerror(errno)); in uevent_listener()
118 fprintf(stderr, "%s - Failed to retrieve socket name\n", strerror(errno)); in uevent_listener()
132 strerror(errno)); in uevent_listener()
142 strerror(errno)); in uevent_listener()
160 fprintf(stderr, "%s - Failed to receive uevent\n", strerror(errno)); in uevent_listener()
255 fprintf(stderr, "%s- Failed to block SIGCHLD\n", strerror(errno)); in do_test()
261 fprintf(stderr, "%s - Failed to fork() new process\n", strerror(errno)); in do_test()
278 strerror(errno)); in do_test()
[all …]
/Linux-v5.15/tools/testing/selftests/firmware/
Dfw_namespace.c46 strerror(errno)); in trigger_fw()
60 strerror(errno)); in setup_fw()
63 strerror(errno)); in setup_fw()
78 strerror(errno)); in test_fw_in_ns()
87 strerror(errno)); in test_fw_in_ns()
103 strerror(errno)); in test_fw_in_ns()
/Linux-v5.15/arch/arm/vdso/
Dvdsomunge.c140 fail("Cannot open %s: %s\n", infile, strerror(errno)); in main()
143 fail("Failed stat for %s: %s\n", infile, strerror(errno)); in main()
147 fail("Failed to map %s: %s\n", infile, strerror(errno)); in main()
181 fail("Cannot open %s: %s\n", outfile, strerror(errno)); in main()
184 fail("Cannot truncate %s: %s\n", outfile, strerror(errno)); in main()
189 fail("Failed to map %s: %s\n", outfile, strerror(errno)); in main()
204 fail("Failed to sync %s: %s\n", outfile, strerror(errno)); in main()

123456789