/linux/tools/testing/selftests/mm/ |
H A D | madv_populate.c | 63 ksft_test_result(!ret, "MADV_POPULATE_READ with PROT_READ\n"); in test_prot_read() 66 ksft_test_result(ret == -1 && errno == EINVAL, in test_prot_read() 84 ksft_test_result(ret == -1 && errno == EINVAL, in test_prot_write() 88 ksft_test_result(!ret, "MADV_POPULATE_WRITE with PROT_WRITE\n"); in test_prot_write() 110 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes() 113 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes() 118 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes() 121 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes() 126 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes() 129 ksft_test_result(re in test_holes() [all...] |
H A D | pagemap_ioctl.c | 219 ksft_test_result(written == 0, "%s all new pages must not be written (dirty)\n", __func__); in userfaultfd_tests() 266 ksft_test_result(pagemap_ioctl(mem, 0, vec, vec_size, 0, in sanity_tests_sd() 270 ksft_test_result(pagemap_ioctl(mem, mem_size, NULL, vec_size, 0, in sanity_tests_sd() 274 ksft_test_result(pagemap_ioctl(mem, mem_size, vec, 0, 0, in sanity_tests_sd() 278 ksft_test_result(pagemap_ioctl(mem, mem_size, 0, 0, 0, in sanity_tests_sd() 282 ksft_test_result(pagemap_ioctl(mem, mem_size, vec, vec_size, -1, in sanity_tests_sd() 286 ksft_test_result(pagemap_ioctl(mem, mem_size, vec, vec_size, in sanity_tests_sd() 291 ksft_test_result(pagemap_ioctl(mem, mem_size, vec, vec_size, 0, in sanity_tests_sd() 295 ksft_test_result(pagemap_ioctl(mem, mem_size, vec, vec_size, 0, in sanity_tests_sd() 299 ksft_test_result(pagemap_ioct in sanity_tests_sd() [all...] |
H A D | mlock2-tests.c | 191 ksft_test_result(lock_check((unsigned long)map), "%s: Locked\n", __func__); in test_mlock_lock() 199 ksft_test_result(!unlock_lock_check(map), "%s: Unlocked\n", __func__); in test_mlock_lock() 242 ksft_test_result(!onfault_check(map), "%s: VMA marked for lock on fault\n", __func__); in test_mlock_onfault() 250 ksft_test_result(!unlock_onfault_check(map), "VMA open lock after fault\n"); in test_mlock_onfault() 271 ksft_test_result(is_vma_lock_on_fault((unsigned long)map) || in test_lock_onfault_of_present() 292 ksft_test_result(lock_check((unsigned long)map), "%s: Locked memory area\n", __func__); in test_munlockall0() 299 ksft_test_result(!unlock_lock_check(map), "%s: No locked memory\n", __func__); in test_munlockall0() 318 ksft_test_result(!onfault_check(map), "%s: VMA marked for lock on fault\n", __func__); in test_munlockall1() 325 ksft_test_result(!unlock_onfault_check(map), "%s: Unlocked\n", __func__); in test_munlockall1() 332 ksft_test_result(lock_chec in test_munlockall1() [all...] |
H A D | ksm_functional_tests.c | 274 ksft_test_result(!range_maps_duplicates(map, size), in test_unmerge() 338 ksft_test_result(!range_maps_duplicates(map, size), in test_unmerge_zero_pages() 366 ksft_test_result(!range_maps_duplicates(map, size), in test_unmerge_discarded() 450 ksft_test_result(!range_maps_duplicates(map, size), in test_unmerge_uffd_wp() 644 ksft_test_result(!range_maps_duplicates(map, size), in test_prctl_unmerge() 677 ksft_test_result(!range_maps_duplicates(map, size), in test_prot_none()
|
H A D | pkey_sighandler_tests.c | 232 ksft_test_result(siginfo.si_signo == SIGSEGV && in test_sigsegv_handler_with_pkey0_disabled() 272 ksft_test_result(siginfo.si_signo == SIGSEGV && in test_sigsegv_handler_cannot_access_stack() 347 ksft_test_result(siginfo.si_signo == SIGSEGV && in test_sigsegv_handler_with_different_pkey_for_stack() 389 ksft_test_result(pkey_reg == __read_pkey_reg() && in test_pkru_preserved_after_sigusr1()
|
H A D | thuge-gen.c | 109 ksft_test_result(size == getpagesize() || (before - after) == NUM_PAGES, in test_mmap() 147 ksft_test_result(size == getpagesize() || (before - after) == NUM_PAGES, in test_shmget()
|
H A D | on-fault-limit.c | 24 ksft_test_result(map == MAP_FAILED, "The map failed respecting mlock limits\n"); in test_limit()
|
/linux/tools/testing/selftests/arm64/abi/ |
H A D | ptrace.c | 46 ksft_test_result(ret == 0, "read_tpidr_one\n"); in test_tpidr() 52 ksft_test_result(ret == 0, "write_tpidr_one\n"); in test_tpidr() 56 ksft_test_result(ret == 0 && write_val[0] == read_val[0], in test_tpidr() 68 ksft_test_result(test_tpidr2, "count_tpidrs\n"); in test_tpidr() 70 ksft_test_result(read_iov.iov_len % sizeof(uint64_t) == 0, in test_tpidr() 84 ksft_test_result(ret == 0 && in test_tpidr() 94 ksft_test_result(ret == 0 && in test_tpidr() 101 ksft_test_result(ret == 0 && in test_tpidr() 120 ksft_test_result(ret == 0 && in test_tpidr() 146 ksft_test_result(re in test_hw_debug() [all...] |
H A D | tpidr2.c | 229 ksft_test_result(default_value(), "default_value\n"); in main() 230 ksft_test_result(write_read, "write_read\n"); in main() 231 ksft_test_result(write_sleep_read, "write_sleep_read\n"); in main() 232 ksft_test_result(write_fork_read, "write_fork_read\n"); in main() 233 ksft_test_result(write_clone_read, "write_clone_read\n"); in main()
|
H A D | syscall-abi.c | 416 ksft_test_result(do_test(cfg, 0, default_sme_vl, 0), in test_one_syscall() 425 ksft_test_result(do_test(cfg, sve_vls[sve], default_sme_vl, 0), in test_one_syscall() 434 ksft_test_result(do_test(cfg, sve_vls[sve], in test_one_syscall() 440 ksft_test_result(do_test(cfg, sve_vls[sve], in test_one_syscall() 445 ksft_test_result(do_test(cfg, sve_vls[sve], in test_one_syscall() 459 ksft_test_result(do_test(cfg, 0, sme_vls[sme], in test_one_syscall() 463 ksft_test_result(do_test(cfg, 0, sme_vls[sme], SVCR_SM_MASK), in test_one_syscall() 466 ksft_test_result(do_test(cfg, 0, sme_vls[sme], SVCR_ZA_MASK), in test_one_syscall()
|
/linux/tools/testing/selftests/signal/ |
H A D | mangle_uc_sigmask.c | 50 ksft_test_result(ret == 1, "USR2 blocked in ucontext\n"); in handler_verify_ucontext() 99 ksft_test_result(cnt == 1, in handler_usr() 108 ksft_test_result(ret == 0, "SEGV not blocked in ucontext\n"); in handler_usr() 112 ksft_test_result(ret == 0, "USR1 not blocked in ucontext\n"); in handler_usr() 152 ksft_test_result(cnt == 2, "handler invoked only twice\n"); in main() 180 ksft_test_result(sigismember(&oldset, SIGUSR2) == 1, in main()
|
/linux/tools/testing/selftests/riscv/hwprobe/ |
H A D | hwprobe.c | 44 ksft_test_result(out == 0, "NULL CPU set\n"); in main() 47 ksft_test_result(out != 0, "Bad CPU set\n"); in main() 50 ksft_test_result(out != 0, "NULL CPU set with non-zero size\n"); in main() 54 ksft_test_result(out == 0 && pairs[0].key == RISCV_HWPROBE_KEY_BASE_BEHAVIOR, in main() 61 ksft_test_result(out == 0 && pairs[0].key == -1 && in main()
|
H A D | cbo.c | 58 ksft_test_result(illegal_insn, "No cbo.inval\n"); in test_no_cbo_inval() 67 ksft_test_result(illegal_insn, "No cbo.clean\n"); in test_no_zicbom() 71 ksft_test_result(illegal_insn, "No cbo.flush\n"); in test_no_zicbom() 80 ksft_test_result(illegal_insn, "No cbo.zero\n"); in test_no_zicboz() 99 ksft_test_result(rc == 0 && pair.key == RISCV_HWPROBE_KEY_ZICBOM_BLOCK_SIZE && in test_zicbom() 105 ksft_test_result(!illegal_insn, "cbo.clean\n"); in test_zicbom() 109 ksft_test_result(!illegal_insn, "cbo.flush\n"); in test_zicbom() 124 ksft_test_result(rc == 0 && pair.key == RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE && in test_zicboz() 130 ksft_test_result(!illegal_insn, "cbo.zero\n"); in test_zicboz()
|
/linux/tools/testing/selftests/exec/ |
H A D | load_address.c | 84 ksft_test_result(interp_needed == extracted.interp, in main() 90 ksft_test_result(extracted.alignment != 0, in main() 95 ksft_test_result(pow2 == 0, in main() 101 ksft_test_result(misalign == 0, "Load Address is %saligned (%#llx)\n", in main()
|
H A D | recursion-depth.c | 63 ksft_test_result(rv == -1 && errno == ELOOP, in main()
|
/linux/tools/testing/selftests/futex/functional/ |
H A D | futex_priv_hash.c | 65 ksft_test_result(ret < 0, "futex_hash_slots_set(%d)\n", in futex_hash_slots_set_must_fail() 256 ksft_test_result(ret < 0, "Use 15 slots\n"); in main() 260 ksft_test_result(counter == MAX_THREADS, "Created of waited for %d of %d threads\n", in main() 270 ksft_test_result(ret == 2, "No more auto-resize after manaul setting, got %d\n", in main() 281 ksft_test_result(ret == 0, "Global hash request\n"); in main() 300 ksft_test_result(ret == 0, "Continue to use global hash\n"); in main()
|
/linux/tools/testing/selftests/riscv/abi/ |
H A D | pointer_masking.c | 52 ksft_test_result(ret >= 0, "PMLEN=%d PR_GET_TAGGED_ADDR_CTRL\n", request); in test_pmlen() 57 ksft_test_result(pmlen >= request, "PMLEN=%d constraint\n", request); in test_pmlen() 58 ksft_test_result(valid_pmlen(pmlen), "PMLEN=%d validity\n", request); in test_pmlen() 166 ksft_test_result(WIFEXITED(status) && WEXITSTATUS(status) == 42, in test_fork_exec() 180 ksft_test_result(WIFEXITED(status) && WEXITSTATUS(status) == 42, in test_fork_exec() 218 ksft_test_result(set_tagged_addr_ctrl(min_pmlen, true) == -EINVAL, in test_tagged_addr_abi_sysctl() 225 ksft_test_result(set_tagged_addr_ctrl(min_pmlen, true) == 0, in test_tagged_addr_abi_sysctl()
|
/linux/tools/testing/selftests/kvm/s390/ |
H A D | shared_zeropage_test.c | 87 ksft_test_result(maps_shared_zeropage(pagemap_fd, page1) == 1, in main() 99 ksft_test_result(!maps_shared_zeropage(pagemap_fd, page1), in main() 105 ksft_test_result(!maps_shared_zeropage(pagemap_fd, page2), in main()
|
/linux/tools/testing/selftests/dmabuf-heaps/ |
H A D | dmabuf-heap.c | 178 ksft_test_result(ret >= 0, "Import buffer %d\n", ret); in test_alloc_and_import() 273 ksft_test_result(i == 32, "Allocate and validate all buffers are zeroed\n"); in test_alloc_zeroed() 359 ksft_test_result(!ret, "dmabuf_heap_alloc_older\n"); in test_alloc_compat() 365 ksft_test_result(!ret, "dmabuf_heap_alloc_newer\n"); in test_alloc_compat() 379 ksft_test_result(ret, "Error expected on invalid fd %d\n", ret); in test_alloc_errors() 382 ksft_test_result(ret, "Error expected on invalid heap flags %d\n", ret); in test_alloc_errors() 386 ksft_test_result(ret, "Error expected on invalid heap flags %d\n", ret); in test_alloc_errors()
|
/linux/tools/testing/selftests/timers/ |
H A D | posix_timers.c | 131 ksft_test_result(check_diff(start, end) == 0, "%s\n", name); in check_itimer() 161 ksft_test_result(check_diff(start, end) == 0, in check_timer_create() 335 ksft_test_result(tsig.signals == 1 && tsig.overruns == 29, in check_sig_ign() 338 ksft_test_result(tsig.signals == 0 && tsig.overruns == 0, in check_sig_ign() 396 ksft_test_result(!tsig.signals, "check_rearm\n"); in check_rearm() 444 ksft_test_result(!tsig.signals, "check_delete\n"); in check_delete() 490 ksft_test_result(its.it_value.tv_sec || its.it_value.tv_nsec, in check_sigev_none() 544 ksft_test_result(wraps > 1, "check_gettime %s\n", name); in check_gettime() 599 ksft_test_result(tsig.signals == 1 && tsig.overruns == 9, in check_overrun()
|
/linux/tools/testing/selftests/arm64/fp/ |
H A D | sve-ptrace.c | 191 ksft_test_result(new_sve->flags & SVE_PT_VL_INHERIT, in ptrace_set_get_inherit() 209 ksft_test_result(!(new_sve->flags & SVE_PT_VL_INHERIT), in ptrace_set_get_inherit() 257 ksft_test_result(new_sve->vl == prctl_vl, "Set %s VL %u\n", in ptrace_set_get_vl() 307 ksft_test_result((type->regset == NT_ARM_SVE) == (ret == 0), in ptrace_sve_fpsimd() 419 ksft_test_result(errors == 0, "Set and get %s data for VL %u\n", in ptrace_set_sve_get_sve_data() 504 ksft_test_result(errors == 0, "Set and get FPSIMD data for %s VL %u\n", in ptrace_set_sve_get_fpsimd_data() 613 ksft_test_result(errors == 0, "Set FPSIMD, read via SVE for %s VL %u\n", in ptrace_set_fpsimd_get_sve_data()
|
H A D | za-ptrace.c | 145 ksft_test_result(new_za->vl = prctl_vl, "Set VL %u\n", vl); in ptrace_set_get_vl() 184 ksft_test_result(read_za->size == write_za.size, in ptrace_set_no_data() 239 ksft_test_result(memcmp(write_buf + ZA_PT_ZA_OFFSET, in ptrace_set_get_data()
|
H A D | zt-ptrace.c | 154 ksft_test_result(!fail, "ptrace_za_disabled_read_zt\n"); in ptrace_za_disabled_read_zt() 187 ksft_test_result(!fail, "ptrace_set_get_zt\n"); in ptrace_set_get_zt() 254 ksft_test_result(!fail, "ptrace_enable_za_via_zt\n"); in ptrace_enable_za_via_zt()
|
/linux/tools/testing/selftests/alsa/ |
H A D | mixer-test.c | 436 ksft_test_result(err >= 0, "get_value.%s.%d\n", in test_ctl_get_value() 476 ksft_test_result(name_ok, "name.%s.%d\n", in test_ctl_name() 740 ksft_test_result(err >= 0, "write_default.%s.%d\n", in test_ctl_write_default() 890 ksft_test_result(pass, "write_valid.%s.%d\n", in test_ctl_write_valid() 1102 ksft_test_result(pass, "write_invalid.%s.%d\n", in test_ctl_write_invalid() 1108 ksft_test_result(!ctl->event_missing, "event_missing.%s.%d\n", in test_ctl_event_missing() 1114 ksft_test_result(!ctl->event_spurious, "event_spurious.%s.%d\n", in test_ctl_event_spurious()
|
/linux/tools/testing/selftests/arm64/tags/ |
H A D | tags_test.c | 33 ksft_test_result(!uname(ptr), "Syscall successful with tagged address\n"); in main()
|