| /linux/tools/testing/selftests/cachestat/ |
| A D | test_cachestat.c | 30 ksft_print_msg( in print_cachestat() 44 ksft_print_msg("Unable to access urandom.\n"); in write_exactly() 51 ksft_print_msg("Unable to allocate data.\n"); in write_exactly() 63 ksft_print_msg("Unable to read from urandom.\n"); in write_exactly() 132 ksft_print_msg("Unable to create/open file.\n"); in test_cachestat() 136 ksft_print_msg("Create/open %s\n", filename); in test_cachestat() 141 ksft_print_msg("Unable to access urandom.\n"); in test_cachestat() 161 ksft_print_msg( in test_cachestat() 172 ksft_print_msg("fsync fails.\n"); in test_cachestat() 185 ksft_print_msg( in test_cachestat() [all …]
|
| /linux/tools/testing/selftests/breakpoints/ |
| A D | step_after_suspend_test.c | 31 ksft_print_msg("sched_setaffinity() failed: %s\n", in child() 37 ksft_print_msg("ptrace(PTRACE_TRACEME) failed: %s\n", 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() 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() 96 ksft_print_msg("child did not single-step: %s\n", in run_test() 105 ksft_print_msg("child did not stop with SIGTRAP: %s\n", in run_test() [all …]
|
| A D | breakpoint_test_arm64.c | 38 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() 147 ksft_print_msg( in run_test() 156 ksft_print_msg( in run_test() 174 ksft_print_msg( in run_test() [all …]
|
| /linux/tools/testing/selftests/filelock/ |
| A D | ofdlocks.c | 45 ksft_print_msg("[INFO] opened fds %i %i\n", fd, fd2); in main() 53 ksft_print_msg 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() 115 ksft_print_msg in main() [all …]
|
| /linux/tools/testing/selftests/cgroup/ |
| A D | test_hugetlb_memcg.c | 106 ksft_print_msg( 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() 131 ksft_print_msg( 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() 155 ksft_print_msg( in hugetlb_test_program() 176 ksft_print_msg("fail to create cgroup.\n"); in test_hugetlb_memcg() 181 ksft_print_msg("fail to set cgroup memory limit.\n"); in test_hugetlb_memcg() 187 ksft_print_msg("fail to disable swap.\n"); in test_hugetlb_memcg() [all …]
|
| /linux/tools/testing/selftests/filesystems/statmount/ |
| A D | statmount_test_ns.c | 46 ksft_print_msg("waitpid returned -1, errno=%d\n", errno); in wait_for_pid() 51 ksft_print_msg( in wait_for_pid() 66 ksft_print_msg("failed to open for ns %s: %s\n", in get_mnt_ns_id() 73 ksft_print_msg("failed to get the nsid for ns %s: %s\n", in get_mnt_ns_id() 119 ksft_print_msg("short write to %s\n", path); in write_file() 125 ksft_print_msg("closing %s\n", path); in write_file() 158 ksft_print_msg("making mount tree private: %s\n", in setup_namespace() 193 ksft_print_msg("statmount mnt ns id unavailable\n"); in _test_statmount_mnt_ns_id() 244 ksft_print_msg("listmount: %s\n", strerror(errno)); in validate_external_listmount() 266 ksft_print_msg("statmount mnt ns id unavailable\n"); in validate_external_listmount() [all …]
|
| /linux/tools/testing/selftests/x86/ |
| A D | test_vsyscall.c | 73 ksft_print_msg("[WARN] failed to find 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() 145 ksft_print_msg("test gettimeofday()\n"); in test_gtod() 180 ksft_print_msg("test time()\n"); in test_time() 230 ksft_print_msg("getcpu() on CPU %d\n", cpu); in test_getcpu() 235 ksft_print_msg("failed to force CPU %d\n", cpu); in test_getcpu() 450 ksft_print_msg("vsyscall map: %s", line); in init_vsys() 454 ksft_print_msg("address range is nonsense\n"); in init_vsys() [all …]
|
| /linux/tools/testing/selftests/seccomp/ |
| A D | seccomp_benchmark.c | 43 ksft_print_msg("%lu.%09lu - %lu.%09lu = %llu (%.1fs)\n", in timing() 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() 214 ksft_print_msg("Benchmarking %llu syscalls...\n", samples); in main() 218 ksft_print_msg("getpid native: %llu ns\n", native); in main() 242 ksft_print_msg("getpid RET_ALLOW 3 filters (full): %llu ns\n", filter1); in main() 254 ksft_print_msg("Estimated " fmt ": %llu ns\n", var); \ in main() [all …]
|
| /linux/tools/testing/selftests/mm/ |
| A D | compaction_test.c | 36 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() 81 ksft_print_msg("Compaction isn't allowed\n"); in prereq() 103 ksft_print_msg("Failed to open /proc/sys/vm/nr_hugepages: %s\n", in check_compaction() 120 ksft_print_msg("Failed to re-read from /proc/sys/vm/nr_hugepages: %s\n", in check_compaction() 129 ksft_print_msg("ERROR: No memory is available as huge pages\n"); in check_compaction() 143 ksft_print_msg("Number of huge pages allocated = %lu\n", in check_compaction() 147 ksft_print_msg("ERROR: Less than 1/%d of memory is available\n" in check_compaction() 168 ksft_print_msg("Failed to open /proc/sys/vm/nr_hugepages: %s\n", in set_zero_hugepages() 173 ksft_print_msg("Failed to read from /proc/sys/vm/nr_hugepages: %s\n", in set_zero_hugepages() [all …]
|
| A D | hugetlb-soft-offline.c | 56 ksft_print_msg("Allocated %#lx bytes of hugetlb pages\n", len); in do_soft_offline() 60 ksft_print_msg("MADV_SOFT_OFFLINE %p ret=%d, errno=%d\n", in do_soft_offline() 68 ksft_print_msg("MADV_SOFT_OFFLINE should ret %d\n", in do_soft_offline() 93 ksft_print_msg("enable_soft_offline => %d\n", value); in set_enable_soft_offline() 145 ksft_print_msg(EPREFIX "not hugetlbfs file\n"); in create_hugetlbfs_file() 165 ksft_print_msg("Test soft-offline when enabled_soft_offline=%d\n", in test_soft_offline_common() 173 ksft_print_msg("Hugepagesize is %ldkB\n", hugepagesize_kb); in test_soft_offline_common() 185 ksft_print_msg("Before MADV_SOFT_OFFLINE nr_hugepages=%ld\n", in test_soft_offline_common() 195 ksft_print_msg("After MADV_SOFT_OFFLINE nr_hugepages=%ld\n", in test_soft_offline_common()
|
| A D | ksm_functional_tests.c | 172 ksft_print_msg("Still pages merged\n"); in __mmap_and_merge_range() 179 ksft_print_msg("mmap() failed\n"); in __mmap_and_merge_range() 193 ksft_print_msg("mprotect() failed\n"); in __mmap_and_merge_range() 222 ksft_print_msg("Running KSM failed\n"); in __mmap_and_merge_range() 263 ksft_print_msg("[RUN] %s\n", __func__); in test_unmerge() 287 ksft_print_msg("[RUN] %s\n", __func__); in test_unmerge_zero_pages() 349 ksft_print_msg("[RUN] %s\n", __func__); in test_unmerge_discarded() 380 ksft_print_msg("[RUN] %s\n", __func__); in test_unmerge_uffd_wp() 438 ksft_print_msg("[RUN] %s\n", __func__); in test_prctl() 512 ksft_print_msg("[RUN] %s\n", __func__); in test_prctl_fork() [all …]
|
| A D | seal_elf.c | 79 ksft_print_msg("somestr = %s\n", somestr); in test_seal_elf() 80 ksft_print_msg("change protection to rw\n"); in test_seal_elf() 84 ksft_print_msg("somestr is modified to: %s\n", somestr); in test_seal_elf() 104 ksft_print_msg("sealed: %lx-%lx %s %s\n", in test_seal_elf() 108 ksft_print_msg("mapping for somestr found\n"); in test_seal_elf() 117 ksft_print_msg("somestr is sealed, mprotect is rejected\n"); in test_seal_elf() 127 ksft_print_msg("pid=%d\n", getpid()); in main()
|
| /linux/tools/testing/selftests/clone3/ |
| A D | clone3_set_tid.c | 56 ksft_print_msg("%s - Failed to create new process\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() 100 ksft_print_msg( in call_clone3_set_tid() 127 ksft_print_msg( in test_clone3_set_tid() 132 ksft_print_msg( in test_clone3_set_tid() 272 ksft_print_msg("Child has PID %d\n", getpid()); in main() 297 ksft_print_msg("unshare PID namespace\n"); in main() 380 ksft_print_msg( in main() [all …]
|
| A D | clone3.c | 84 ksft_print_msg("%s - Failed to create new process\n", in call_clone3() 90 ksft_print_msg("I am the child, my PID is %d\n", getpid()); in call_clone3() 94 ksft_print_msg("I am the parent (%d). My child's pid is %d\n", in call_clone3() 98 ksft_print_msg("waitpid() returned %s\n", strerror(errno)); in call_clone3() 102 ksft_print_msg("Child did not exit normally, status 0x%x\n", in call_clone3() 117 ksft_print_msg( in test_clone3() 121 ksft_print_msg("[%d] clone3() with flags says: %d expected %d\n", in test_clone3() 124 ksft_print_msg( in test_clone3() 139 ksft_print_msg("Not running as root\n"); in not_root() 154 ksft_print_msg("Time namespaces are not supported\n"); in no_timenamespace() [all …]
|
| /linux/tools/testing/selftests/arm64/fp/ |
| A D | za-fork.c | 33 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()
|
| A D | fp-stress.c | 155 ksft_print_msg("%s: read() failed: %s (%d)\n", in child_output_read() 180 ksft_print_msg("%s: %s\n", child->name, work); in child_output_read() 297 ksft_print_msg("Got signal, exiting...\n"); in handle_exit_signal() 319 ksft_print_msg("Started %s\n", child->name); in start_fpsimd() 332 ksft_print_msg("Started %s\n", child->name); in start_kernel() 349 ksft_print_msg("Started %s\n", child->name); in start_sve() 366 ksft_print_msg("Started %s\n", child->name); in start_ssve() 383 ksft_print_msg("Started %s\n", child->name); in start_za() 396 ksft_print_msg("Started %s\n", child->name); in start_zt() 620 ksft_print_msg("Waiting for %d children\n", in main() [all …]
|
| A D | fp-ptrace.c | 139 ksft_print_msg("Mismatch in %s\n", name); in compare_buffer() 151 ksft_print_msg("%s is zero\n", name); in compare_buffer() 213 ksft_print_msg("Failed to set SVE VL %d: %d\n", in run_child() 221 ksft_print_msg("Failed to set SME VL %d: %d\n", in run_child() 242 ksft_print_msg("%s read failed: %s (%d)\n", in read_one_child_regs() 329 ksft_print_msg("Failed to get PC: %s (%d)\n", in continue_breakpoint() 338 ksft_print_msg("Failed to skip BRK: %s (%d)\n", in continue_breakpoint() 709 ksft_print_msg("Wait for child timed out\n"); in run_parent() 756 ksft_print_msg("kill() failed: %s (%d)\n", in run_parent() 1466 ksft_print_msg("SME2 supported\n"); in main() [all …]
|
| A D | zt-ptrace.c | 134 ksft_print_msg("Failed to disable ZA\n"); in ptrace_za_disabled_read_zt() 141 ksft_print_msg("Failed to read ZT\n"); in ptrace_za_disabled_read_zt() 147 ksft_print_msg("zt[%d]: 0x%x != 0\n", i, zt[i]); in ptrace_za_disabled_read_zt() 167 ksft_print_msg("Failed to set ZT\n"); in ptrace_set_get_zt() 173 ksft_print_msg("Failed to read ZT\n"); in ptrace_set_get_zt() 179 ksft_print_msg("zt[%d]: 0x%x != 0x%x\n", i, in ptrace_set_get_zt() 206 ksft_print_msg("Failed to disable ZA\n"); in ptrace_enable_za_via_zt() 214 ksft_print_msg("Failed to set ZT\n"); in ptrace_enable_za_via_zt() 224 ksft_print_msg("VL changed from %d to %d\n", in ptrace_enable_za_via_zt() 242 ksft_print_msg("ZA byte %d is %x\n", in ptrace_enable_za_via_zt() [all …]
|
| /linux/tools/testing/selftests/capabilities/ |
| A D | test_execve.c | 92 ksft_print_msg("[NOTE]\tUsing global UIDs 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() 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() 373 ksft_print_msg("[RUN]\tRoot +ia, suidroot => eipa\n"); in do_tests() 383 ksft_print_msg("[RUN]\tRoot +ia, sgidroot => eipa\n"); in do_tests() [all …]
|
| A D | validate_cap.c | 50 ksft_print_msg("capng_get_caps_process failed\n"); in main() 55 ksft_print_msg("Wrong effective state%s\n", atsec); in main() 60 ksft_print_msg("Wrong permitted state%s\n", atsec); in main() 65 ksft_print_msg("Wrong inheritable state%s\n", atsec); in main() 70 ksft_print_msg("Wrong ambient state%s\n", atsec); in main() 74 ksft_print_msg("%s: Capabilities after execve were correct\n", in main()
|
| /linux/tools/testing/selftests/vDSO/ |
| A D | vdso_test_abi.c | 56 ksft_print_msg("Couldn't find %s\n", name[0]); in vdso_test_gettimeofday() 65 ksft_print_msg("The time is %lld.%06lld\n", in vdso_test_gettimeofday() 80 ksft_print_msg("Couldn't find %s\n", name[1]); in vdso_test_clock_gettime() 90 ksft_print_msg("The time is %lld.%06lld\n", in vdso_test_clock_gettime() 107 ksft_print_msg("Couldn't find %s\n", name[2]); in vdso_test_time() 132 ksft_print_msg("Couldn't find %s\n", name[3]); in vdso_test_clock_getres() 142 ksft_print_msg("The vdso resolution is %lld %lld\n", in vdso_test_clock_getres() 150 ksft_print_msg("The syscall resolution is %lld %lld\n", in vdso_test_clock_getres() 171 ksft_print_msg("clock_id: %s\n", vdso_clock_name[clock_id]); in vdso_test_clock() 188 ksft_print_msg("AT_SYSINFO_EHDR is not present!\n"); in main() [all …]
|
| /linux/tools/testing/selftests/alsa/ |
| A D | mixer-test.c | 106 ksft_print_msg("Failed to get card ID\n"); 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() 243 ksft_print_msg("No POLLIN\n"); in wait_for_event() 261 ksft_print_msg("Event for unexpected ctl %s\n", in wait_for_event() 267 ksft_print_msg("Removal event for %s\n", in wait_for_event() 411 ksft_print_msg("%s is inactive\n", ctl->name); in test_ctl_get_value() 673 ksft_print_msg("No event generated for %s\n", in write_and_verify() 717 ksft_print_msg("%s is inactive\n", ctl->name); in test_ctl_write_default() [all …]
|
| /linux/tools/testing/selftests/arm64/mte/ |
| A D | mte_common_util.c | 63 ksft_print_msg("Unknown SIGSEGV exception caught!\n"); in mte_default_handler() 103 ksft_print_msg("FAIL: Addr=%lx: invalid\n", ptr); in mte_insert_tags() 115 ksft_print_msg("FAIL: Addr=%lx: invalid\n", ptr); in mte_clear_tags() 138 ksft_print_msg("FAIL: Invalid allocate request\n"); in __mte_allocate_memory_range() 153 ksft_print_msg("FAIL: mmap allocation\n"); in __mte_allocate_memory_range() 159 ksft_print_msg("FAIL: mprotect PROT_MTE property\n"); in __mte_allocate_memory_range() 186 ksft_print_msg("FAIL: Invalid mmap file request\n"); in mte_allocate_file_memory() 213 ksft_print_msg("FAIL: Invalid mmap file request\n"); in mte_allocate_file_memory_tag_range() 246 ksft_print_msg("FAIL: Invalid free request\n"); in __mte_free_memory_range() 323 ksft_print_msg("SKIP: MTE features unavailable\n"); in mte_default_setup() [all …]
|
| /linux/tools/testing/selftests/pidfd/ |
| A D | pidfd_test.c | 119 ksft_print_msg("waitpid WEXITSTATUS=%d\n", ret); in test_pidfd_send_signal_exited_fail() 219 ksft_print_msg("pid to recycle is %d\n", pid2); in test_pidfd_send_signal_recycled_pid_fail() 386 ksft_print_msg("Child Thread: doing exec of sleep\n"); in test_pidfd_poll_exec_thread() 390 ksft_print_msg("Child Thread: DONE. pid %d tid %ld\n", in test_pidfd_poll_exec_thread() 450 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_exec() 461 ksft_print_msg("Parent: error\n"); in test_pidfd_poll_exec() 464 ksft_print_msg("Parent: Child process waited for.\n"); in test_pidfd_poll_exec() 471 ksft_print_msg("Time waited for child: %lu\n", prog_time); in test_pidfd_poll_exec() 523 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_leader_exit() 534 ksft_print_msg("Parent: error\n"); in test_pidfd_poll_leader_exit() [all …]
|
| /linux/tools/testing/selftests/tty/ |
| A D | tty_tstamp_update.c | 57 ksft_print_msg("readlink on /proc/self/fd/0 failed: %m\n"); in main() 62 ksft_print_msg("invalid tty path '%s'\n", tty); in main() 70 ksft_print_msg("stat failed on tty path '%s': %m\n", tty); in main() 80 ksft_print_msg("failed to write to /dev/tty: %s\n", in main() 87 ksft_print_msg("stat failed on tty path '%s': %m\n", tty); in main() 94 ksft_print_msg("tty timestamps not updated\n"); in main() 98 ksft_print_msg( in main()
|