Home
last modified time | relevance | path

Searched refs:ksft_print_msg (Results 1 – 25 of 124) sorted by relevance

12345

/linux/tools/testing/selftests/arm64/gcs/
H A Dbasic-gcs.c47 ksft_print_msg("Mode set to %lx not %lx\n", in gcs_set_status()
52 ksft_print_msg("Failed to validate mode: %d\n", ret); in gcs_set_status()
56 ksft_print_msg("%senabled by prctl but %senabled in CHKFEAT\n", in gcs_set_status()
75 ksft_print_msg("Failed to read state: %d\n", ret); in read_status()
89 ksft_print_msg("PR_SHADOW_STACK_ENABLE failed %d\n", ret); in base_enable()
101 ksft_print_msg("GET GCSPR\n"); in read_gcspr_el0()
103 ksft_print_msg("GCSPR_EL0 is %p\n", gcspr_el0); in read_gcspr_el0()
115 ksft_print_msg("PR_SHADOW_STACK_ENABLE writeable failed: %d\n", ret); in enable_writeable()
121 ksft_print_msg("failed to restore plain enable %d\n", ret); in enable_writeable()
135 ksft_print_msg("PR_SHADOW_STACK_ENABLE with push failed: %d\n", in enable_push_pop()
[all …]
H A Dgcs-stress.c146 ksft_print_msg("Started %s\n", child->name); in start_thread()
161 ksft_print_msg("%s: read() failed: %s (%d)\n", in child_output_read()
186 ksft_print_msg("%s: %s\n", child->name, work); in child_output_read()
221 ksft_print_msg("%s: %s<EOF>\n", child->name, child->output); in child_output()
252 ksft_print_msg("waitpid(%d) failed: %s (%d)\n", in child_cleanup()
266 ksft_print_msg("%s: Exited due to signal %d\n", in child_cleanup()
275 ksft_print_msg("%s no output seen\n", child->name); in child_cleanup()
280 ksft_print_msg("%s exited with error code %d\n", in child_cleanup()
303 ksft_print_msg("SIGCHLD for unknown PID %d with status %d\n", in handle_child_signal()
315 ksft_print_msg("Got signal, exiting...\n"); in handle_exit_signal()
[all …]
/linux/tools/testing/selftests/arm64/abi/
H A Dtpidr2.c75 ksft_print_msg("TPIDR2 changed in child: %llx\n", in write_fork_read()
84 ksft_print_msg("Failed to set TPIDR2 in child\n"); in write_fork_read()
89 ksft_print_msg("fork() failed: %d\n", newpid); in write_fork_read()
99 ksft_print_msg("waitpid() failed: %d\n", errno); in write_fork_read()
103 ksft_print_msg("waitpid() returned wrong PID: %d != %d\n", in write_fork_read()
109 ksft_print_msg("child did not exit\n"); in write_fork_read()
114 ksft_print_msg("TPIDR2 corrupted in parent\n"); in write_fork_read()
154 ksft_print_msg("malloc() failed\n"); in write_clone_read()
161 ksft_print_msg("clone() failed: %d\n", errno); in write_clone_read()
168 ksft_print_msg("TPIDR in write_clone_read()
[all...]
/linux/tools/testing/selftests/cachestat/
H A Dtest_cachestat.c30 ksft_print_msg( in print_cachestat()
49 ksft_print_msg("Unable to access urandom.\n"); in write_exactly()
56 ksft_print_msg("Unable to allocate data.\n"); in write_exactly()
68 ksft_print_msg("Unable to read from urandom.\n"); in write_exactly()
84 ksft_print_msg("Unable write random data to file.\n"); in write_exactly()
137 ksft_print_msg("Unable to create/open file.\n"); in test_cachestat()
141 ksft_print_msg("Create/open %s\n", filename); in test_cachestat()
146 ksft_print_msg("Unable to access urandom.\n"); in test_cachestat()
154 ksft_print_msg("Cachestat call returned %ld\n", syscall_ret); in test_cachestat()
157 ksft_print_msg("Cachestat returned non-zero.\n"); in test_cachestat()
[all …]
/linux/tools/testing/selftests/breakpoints/
H A Dstep_after_suspend_test.c31 ksft_print_msg("sched_setaffinity() failed: %s\n", in child()
37 ksft_print_msg("ptrace(PTRACE_TRACEME) failed: %s\n", 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()
73 ksft_print_msg("child did not stop with SIGSTOP: %s\n", in run_test()
80 ksft_print_msg( in run_test()
85 ksft_print_msg("ptrace(PTRACE_SINGLESTEP) failed: %s\n", in run_test()
92 ksft_print_msg("waitpid() failed: %s\n", strerror(errno)); in run_test()
[all …]
H A Dbreakpoint_test_arm64.c38 ksft_print_msg( in child()
45 ksft_print_msg( in child()
51 ksft_print_msg( in child()
102 ksft_print_msg( in set_watchpoint()
106 ksft_print_msg( in set_watchpoint()
129 ksft_print_msg( in run_test()
134 ksft_print_msg( in run_test()
139 ksft_print_msg("child did not stop with SIGSTOP\n"); in run_test()
147 ksft_print_msg( in run_test()
156 ksft_print_msg( in run_test()
[all …]
/linux/tools/testing/selftests/filelock/
H A Dofdlocks.c45 ksft_print_msg("[INFO] opened fds %i %i\n", fd, fd2); in main()
53 ksft_print_msg in main()
56 ksft_print_msg("[FAIL] to set OFD read lock on first fd\n"); in main()
67 ksft_print_msg("[FAIL] read locks conflicted\n"); in main()
78 ksft_print_msg in main()
81 ksft_print_msg in main()
91 ksft_print_msg in main()
96 ksft_print_msg in main()
100 ksft_print_msg in main()
110 ksft_print_msg in main()
[all …]
/linux/tools/testing/selftests/liveupdate/
H A Dluo_kexec_simple.c26 ksft_print_msg("[STAGE 1] Starting pre-kexec setup...\n"); in run_stage_1()
28 ksft_print_msg("[STAGE 1] Creating state file for next stage (2)...\n"); in run_stage_1()
31 ksft_print_msg("[STAGE 1] Creating session '%s' and preserving memfd...\n", in run_stage_1()
52 ksft_print_msg("[STAGE 2] Starting post-kexec verification...\n"); in run_stage_2()
58 ksft_print_msg("[STAGE 2] Retrieving session '%s'...\n", TEST_SESSION_NAME); in run_stage_2()
63 ksft_print_msg("[STAGE 2] Restoring and verifying memfd (token %#x)...\n", in run_stage_2()
71 ksft_print_msg("[STAGE 2] Test data verified successfully.\n"); in run_stage_2()
72 ksft_print_msg("[STAGE 2] Finalizing test session...\n"); in run_stage_2()
77 ksft_print_msg("[STAGE 2] Finalizing state session...\n"); in run_stage_2()
82 ksft_print_msg("\n--- SIMPLE KEXEC TEST PASSED ---\n"); in run_stage_2()
H A Dluo_multi_session.c35 ksft_print_msg("[STAGE 1] Starting pre-kexec setup for multi-session test...\n"); in run_stage_1()
37 ksft_print_msg("[STAGE 1] Creating state file for next stage (2)...\n"); in run_stage_1()
40 ksft_print_msg("[STAGE 1] Creating empty sessions '%s' and '%s'...\n", in run_stage_1()
50 ksft_print_msg("[STAGE 1] Creating session '%s' with one memfd...\n", in run_stage_1()
61 ksft_print_msg("[STAGE 1] Creating session '%s' with two memfds...\n", in run_stage_1()
86 ksft_print_msg("[STAGE 2] Starting post-kexec verification...\n"); in run_stage_2()
94 ksft_print_msg("[STAGE 2] Retrieving all sessions...\n"); in run_stage_2()
111 ksft_print_msg("[STAGE 2] Verifying contents of session '%s'...\n", in run_stage_2()
118 ksft_print_msg("[STAGE 2] Verifying contents of session '%s'...\n", in run_stage_2()
131 ksft_print_msg("[STAGE 2] Test data verified successfully.\n"); in run_stage_2()
[all …]
/linux/tools/testing/selftests/cgroup/
H A Dtest_hugetlb_memcg.c106 ksft_print_msg( in hugetlb_test_program()
108 ksft_print_msg("before: %ld, after: %ld\n", old_current, current); in hugetlb_test_program()
114 ksft_print_msg("fail to mmap.\n"); in hugetlb_test_program()
119 ksft_print_msg("mmap should not increase hugepage usage.\n"); in hugetlb_test_program()
120 ksft_print_msg("before: %ld, after: %ld\n", old_current, current); in hugetlb_test_program()
130 ksft_print_msg("memory usage should increase by around 2MB.\n"); in hugetlb_test_program()
131 ksft_print_msg( in hugetlb_test_program()
142 ksft_print_msg("memory usage should increase by around 8MB.\n"); in hugetlb_test_program()
143 ksft_print_msg( in hugetlb_test_program()
154 ksft_print_msg("memory usage should go back down.\n"); in hugetlb_test_program()
[all …]
/linux/tools/testing/selftests/x86/
H A Dtest_vsyscall.c73 ksft_print_msg("[WARN] failed to find vDSO\n"); in init_vdso()
79 ksft_print_msg("[WARN] failed to find gettimeofday in vDSO\n"); in init_vdso()
83 ksft_print_msg("[WARN] failed to find clock_gettime in vDSO\n"); in init_vdso()
87 ksft_print_msg("[WARN] failed to find time in vDSO\n"); in init_vdso()
91 ksft_print_msg("[WARN] failed to find getcpu in vDSO\n"); in init_vdso()
128 ksft_print_msg("%s tz mismatch\n", which); in check_gtod()
133 ksft_print_msg("%s time offsets: %lf %lf\n", which, d1, d2); in check_gtod()
145 ksft_print_msg("test gettimeofday()\n"); in test_gtod()
180 ksft_print_msg("test time()\n"); in test_time()
188 ksft_print_msg("syscall failed (ret1:%ld output1:%ld ret2:%ld output2:%ld)\n", in test_time()
[all …]
/linux/tools/testing/selftests/mm/
H A Dgup_longterm.c108 ksft_print_msg("ftruncate() failed (%s)\n", in do_test()
123 ksft_print_msg("fallocate() not supported by filesystem\n"); in do_test()
126 ksft_print_msg("fallocate() failed (%s)\n", strerror(errno)); in do_test()
129 ksft_print_msg("need more free huge pages\n"); in do_test()
139 ksft_print_msg("mmap() failed (%s)\n", strerror(errno)); in do_test()
142 ksft_print_msg("need more free huge pages\n"); in do_test()
160 ksft_print_msg("mprotect() failed (%s)\n", strerror(errno)); in do_test()
174 ksft_print_msg("gup_test not available\n"); in do_test()
180 ksft_print_msg("Unknown filesystem\n"); in do_test()
198 ksft_print_msg("PIN_LONGTERM_TEST_START failed (EINVAL)n"); in do_test()
[all …]
H A Dcompaction_test.c36 ksft_print_msg("Failed to read meminfo: %s\n", strerror(errno)); in read_memory_info()
47 ksft_print_msg("Failed to read meminfo: %s\n", strerror(errno)); in read_memory_info()
65 ksft_print_msg("Failed to open /proc/sys/vm/compact_unevictable_allowed: %s\n", in prereq()
71 ksft_print_msg("Failed to read from /proc/sys/vm/compact_unevictable_allowed: %s\n", in prereq()
81 ksft_print_msg("Compaction isn't allowed\n"); in prereq()
105 ksft_print_msg("Failed to open /proc/sys/vm/nr_hugepages: %s\n", in check_compaction()
121 ksft_print_msg("Failed to write %lu to /proc/sys/vm/nr_hugepages: %s\n", in check_compaction()
129 ksft_print_msg("Failed to re-read from /proc/sys/vm/nr_hugepages: %s\n", in check_compaction()
138 ksft_print_msg("ERROR: No memory is available as huge pages\n"); in check_compaction()
147 ksft_print_msg("Failed to write value to /proc/sys/vm/nr_hugepages: %s\n", in check_compaction()
[all …]
H A Dthuge-gen.c71 ksft_print_msg("%luMB: ", ps >> 20); in show()
89 ksft_print_msg("missing %s\n", buf); in read_free()
166 ksft_print_msg("Found %luMB\n", page_sizes[i] >> 20); in find_pagesizes()
174 ksft_print_msg("SKIP for size %lu MB as not enough huge pages, need %u\n", in find_pagesizes()
181 ksft_print_msg("WARNING: shmmax is too small to run this test.\n"); in find_pagesizes()
182 ksft_print_msg("Please run the following command to increase shmmax:\n"); in find_pagesizes()
183 ksft_print_msg("echo %lu > /proc/sys/kernel/shmmax\n", largest * NUM_PAGES); in find_pagesizes()
213 ksft_print_msg("Testing %luMB mmap with shift %x\n", ps >> 20, arg); in main()
217 ksft_print_msg("Testing default huge mmap\n"); in main()
220 ksft_print_msg("Testing non-huge shmget\n"); in main()
[all …]
/linux/tools/testing/selftests/seccomp/
H A Dseccomp_benchmark.c43 ksft_print_msg("%lu.%09lu - %lu.%09lu = %llu (%.1fs)\n", in timing()
58 ksft_print_msg("Calibrating sample size for %d seconds worth of syscalls ...\n", seconds); in calibrate()
118 ksft_print_msg("\t%s %s %s (%lld %s %lld): ", name_one, name_eval, name_two, in compare()
121 ksft_print_msg("Miscalculation! Measurement went negative: %lld\n", (long long)one); in compare()
126 ksft_print_msg("Miscalculation! Measurement went negative: %lld\n", (long long)two); in compare()
196 ksft_print_msg("Running on:\n"); in main()
197 ksft_print_msg("%s", ""); in main()
200 ksft_print_msg("Current BPF sysctl settings:\n"); in main()
202 ksft_print_msg("%s", ""); in main()
204 ksft_print_msg("%s", ""); in main()
[all …]
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_open_test.c134 ksft_print_msg( in main()
143 ksft_print_msg( in main()
152 ksft_print_msg("%s - failed to open pidfd\n", strerror(errno)); in main()
158 ksft_print_msg("pidfd %d refers to process with pid %d\n", pidfd, pid); in main()
161 ksft_print_msg("%s - failed to get info from pidfd\n", strerror(errno)); in main()
165 ksft_print_msg("pid from fdinfo file %d does not match pid from ioctl %d\n", in main()
170 ksft_print_msg("ppid %d does not match ppid from ioctl %d\n", in main()
175 ksft_print_msg("uid %d does not match uid from ioctl %d\n", in main()
180 ksft_print_msg("gid %d does not match gid from ioctl %d\n", in main()
185 ksft_print_msg("euid %d does not match euid from ioctl %d\n", in main()
[all …]
/linux/tools/testing/selftests/clone3/
H A Dclone3_set_tid.c56 ksft_print_msg("%s - Failed to create new process\n", in call_clone3_set_tid()
66 ksft_print_msg("I am the child, my PID is %d (expected %d)\n", in call_clone3_set_tid()
69 ksft_print_msg("[%d] Child is ready and waiting\n", in call_clone3_set_tid()
76 ksft_print_msg( in call_clone3_set_tid()
84 ksft_print_msg( in call_clone3_set_tid()
97 ksft_print_msg("I am the parent (%d). My child's pid is %d\n", in call_clone3_set_tid()
100 ksft_print_msg( in call_clone3_set_tid()
107 ksft_print_msg("Child returned %s\n", strerror(errno)); in call_clone3_set_tid()
127 ksft_print_msg( in test_clone3_set_tid()
132 ksft_print_msg( in test_clone3_set_tid()
[all …]
/linux/tools/testing/selftests/arm64/fp/
H A Dza-fork.c33 ksft_print_msg("ZA state invalid in child\n"); in fork_test_c()
40 ksft_print_msg("fork() failed: %d\n", newpid); in fork_test_c()
47 ksft_print_msg("ZA state invalid in parent\n"); in fork_test_c()
55 ksft_print_msg("waitpid() failed: %d\n", errno); in fork_test_c()
59 ksft_print_msg("waitpid() returned wrong PID\n"); in fork_test_c()
64 ksft_print_msg("child did not exit\n"); in fork_test_c()
79 ksft_print_msg("PID: %d\n", getpid()); in main()
91 ksft_print_msg("SME not supported\n"); in main()
H A Dfp-stress.c157 ksft_print_msg("%s: read() failed: %s (%d)\n", in child_output_read()
182 ksft_print_msg("%s: %s\n", child->name, work); in child_output_read()
217 ksft_print_msg("%s: %s<EOF>\n", child->name, child->output); in child_output()
248 ksft_print_msg("waitpid(%d) failed: %s (%d)\n", in child_cleanup()
259 ksft_print_msg("%s no output seen\n", child->name); in child_cleanup()
264 ksft_print_msg("%s exited with error code %d\n", in child_cleanup()
287 ksft_print_msg("SIGCHLD for unknown PID %d with status %d\n", in handle_child_signal()
299 ksft_print_msg("Got signal, exiting...\n"); in handle_exit_signal()
321 ksft_print_msg("Started %s\n", child->name); in start_fpsimd()
334 ksft_print_msg("Started %s\n", child->name); in start_kernel()
[all …]
H A Dfp-ptrace.c165 ksft_print_msg("Mismatch in %s\n", name); in compare_buffer()
170 ksft_print_msg("OOM allocating %lu bytes for %s\n", in compare_buffer()
177 ksft_print_msg("%s is zero\n", name); in compare_buffer()
239 ksft_print_msg("Failed to set SVE VL %d: %d\n", in run_child()
247 ksft_print_msg("Failed to set SME VL %d: %d\n", in run_child()
279 ksft_print_msg("%s read failed: %s (%d)\n", in read_one_child_regs()
282 ksft_print_msg("Short read of %s: %d\n", name, ret); in read_one_child_regs()
374 ksft_print_msg("Failed to get PC: %s (%d)\n", in continue_breakpoint()
383 ksft_print_msg("Failed to skip BRK: %s (%d)\n", in continue_breakpoint()
391 ksft_print_msg("Failed to restart child: %s (%d)\n", in continue_breakpoint()
[all …]
/linux/tools/testing/selftests/capabilities/
H A Dtest_execve.c92 ksft_print_msg("[NOTE]\tUsing global UIDs for tests\n"); in create_and_enter_ns()
113 ksft_print_msg("[NOTE]\tUsing a user namespace for tests\n"); in create_and_enter_ns()
180 ksft_print_msg("Child died\n"); in fork_wait()
183 ksft_print_msg("Child failed\n"); in fork_wait()
267 ksft_print_msg("[RUN]\tRoot => ep\n"); in do_tests()
271 ksft_print_msg("[RUN]\tNon-root => no caps\n"); in do_tests()
276 ksft_print_msg("Check cap_ambient manipulation rules\n"); in do_tests()
348 ksft_print_msg("[RUN]\tRoot +i => eip\n"); in do_tests()
352 ksft_print_msg("[RUN]\tNon-root +i => i\n"); in do_tests()
361 ksft_print_msg("[RUN]\tUID %d +ia => eipa\n", uid); in do_tests()
[all …]
/linux/tools/testing/selftests/vDSO/
H A Dvdso_test_abi.c63 ksft_print_msg("Couldn't find %s\n", name[0]); in vdso_test_gettimeofday()
72 ksft_print_msg("The time is %lld.%06lld\n", in vdso_test_gettimeofday()
87 ksft_print_msg("Couldn't find %s\n", name[5]); in vdso_test_clock_gettime64()
97 ksft_print_msg("The time is %lld.%06lld\n", in vdso_test_clock_gettime64()
114 ksft_print_msg("Couldn't find %s\n", name[1]); in vdso_test_clock_gettime()
124 ksft_print_msg("The time is %lld.%06lld\n", in vdso_test_clock_gettime()
141 ksft_print_msg("Couldn't find %s\n", name[2]); in vdso_test_time()
149 ksft_print_msg("The time in hours since January 1, 1970 is %lld\n", in vdso_test_time()
166 ksft_print_msg("Couldn't find %s\n", name[3]); in vdso_test_clock_getres()
176 ksft_print_msg("The vdso resolution is %lld %lld\n", in vdso_test_clock_getres()
[all …]
/linux/tools/testing/selftests/alsa/
H A Dmixer-test.c85 ksft_print_msg("Failed to get hctl for card %d: %s\n", in find_controls()
106 ksft_print_msg("Failed to get card ID\n"); in find_controls()
108 ksft_print_msg("Failed to get card info: %d\n", err); in find_controls()
114 ksft_print_msg("Card %d/%s - %s (%s)\n", card, in find_controls()
161 ksft_print_msg("%s getting info for %s\n", in find_controls()
195 ksft_print_msg("snd_card_next"); in find_controls()
220 ksft_print_msg("poll() failed for %s: %s (%d)\n", in wait_for_event()
232 ksft_print_msg("snd_ctl_poll_descriptors_revents() failed for %s: %d\n", in wait_for_event()
237 ksft_print_msg("snd_ctl_poll_descriptors_revents() reported POLLERR for %s\n", in wait_for_event()
243 ksft_print_msg("No POLLIN\n"); in wait_for_event()
[all …]
/linux/tools/testing/selftests/filesystems/statmount/
H A Dstatmount_test_ns.c47 ksft_print_msg("waitpid returned -1, errno=%d\n", errno); in wait_for_pid()
52 ksft_print_msg( in wait_for_pid()
67 ksft_print_msg("failed to open for ns %s: %s\n", in get_mnt_ns_id()
74 ksft_print_msg("failed to get the nsid for ns %s: %s\n", in get_mnt_ns_id()
107 ksft_print_msg("statmount mnt ns id: %s\n", strerror(errno)); in _test_statmount_mnt_ns_id()
112 ksft_print_msg("unexpected size: %u != %u\n", sm.size, in _test_statmount_mnt_ns_id()
117 ksft_print_msg("statmount mnt ns id unavailable\n"); in _test_statmount_mnt_ns_id()
122 ksft_print_msg("unexpected mnt ns ID: 0x%llx != 0x%llx\n", in _test_statmount_mnt_ns_id()
168 ksft_print_msg("listmount: %s\n", strerror(errno)); in validate_external_listmount()
173 ksft_print_msg("listmount results is %zi != %zi\n", nr_mounts, in validate_external_listmount()
[all …]
/linux/tools/testing/selftests/kvm/arm64/
H A Dsea_to_user.c94 ksft_print_msg("echo %#lx > %s - done\n", val, einj_path); in write_einj_entry()
123 ksft_print_msg("SIGBUS (%d) received, dumping siginfo...\n", sig); in sigbus_signal_handler()
124 ksft_print_msg("si_signo=%d, si_errno=%d, si_code=%d, si_addr=%p\n", in sigbus_signal_handler()
198 ksft_print_msg("Dump kvm_run info about KVM_EXIT_%s\n", in run_vm()
200 ksft_print_msg("kvm_run.arm_sea: esr=%#llx, flags=%#llx\n", in run_vm()
202 ksft_print_msg("kvm_run.arm_sea: gva=%#llx, gpa=%#llx\n", in run_vm()
215 ksft_print_msg("Expect gva to match given FnV bit is 0\n"); in run_vm()
220 ksft_print_msg("Expect gpa to match given KVM_EXIT_ARM_SEA_FLAG_GPA_VALID is set\n"); in run_vm()
234 ksft_print_msg("From guest: %s", uc.buffer); in run_vm()
237 ksft_print_msg("Guest done gracefully!\n"); in run_vm()
[all …]

12345