/Linux-v6.6/tools/testing/selftests/mm/ |
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(ret == -1 && errno == ENOMEM, in test_holes() [all …]
|
D | soft-dirty.c | 45 ksft_test_result(i == TEST_ITERATIONS, "Test %s\n", __func__); in test_simple() 57 ksft_test_result(pagemap_is_softdirty(pagemap_fd, map) == 1, in test_vma_reuse() 69 ksft_test_result(pagemap_is_softdirty(pagemap_fd, map2) == 1, in test_vma_reuse() 118 ksft_test_result(i == TEST_ITERATIONS, "Test %s huge page dirty bit\n", __func__); in test_hugepage() 154 ksft_test_result(pagemap_is_softdirty(pagemap_fd, map) == 1, in test_mprotect() 158 ksft_test_result(pagemap_is_softdirty(pagemap_fd, map) == 0, in test_mprotect() 162 ksft_test_result(pagemap_is_softdirty(pagemap_fd, map) == 0, in test_mprotect() 166 ksft_test_result(pagemap_is_softdirty(pagemap_fd, map) == 0, in test_mprotect() 170 ksft_test_result(pagemap_is_softdirty(pagemap_fd, map) == 1, in test_mprotect()
|
D | ksm_functional_tests.c | 237 ksft_test_result(!range_maps_duplicates(map, size), in test_unmerge() 301 ksft_test_result(!range_maps_duplicates(map, size), in test_unmerge_zero_pages() 329 ksft_test_result(!range_maps_duplicates(map, size), in test_unmerge_discarded() 389 ksft_test_result(!range_maps_duplicates(map, size), in test_unmerge_uffd_wp() 498 ksft_test_result(!range_maps_duplicates(map, size), in test_prctl_unmerge() 531 ksft_test_result(!range_maps_duplicates(map, size), in test_prot_none()
|
D | gup_longterm.c | 164 ksft_test_result(!should_work, "Should have failed\n"); in do_test() 179 ksft_test_result(should_work, "Should have worked\n"); in do_test() 211 ksft_test_result(!should_work, "Should have failed\n"); in do_test() 219 ksft_test_result(should_work, "Should have worked\n"); in do_test()
|
D | cow.c | 216 ksft_test_result(!ret, "No leak from parent into child\n"); in do_test_cow_in_parent() 324 ksft_test_result(!memcmp(old, new, transferred), in do_test_vmsplice_in_parent() 478 ksft_test_result(!memcmp(mem, tmp, size), in do_test_iouring() 624 ksft_test_result(!memcmp(mem, tmp, size), in do_test_ro_pin() 1263 ksft_test_result(!ret, "No leak from parent into child\n"); in do_test_anon_thp_collapse() 1363 ksft_test_result(!memcmp(smem, old, size), in test_cow()
|
D | mkdirty.c | 58 ksft_test_result(ret == 1 && *mem == orig, in do_test_write_sigsegv()
|
/Linux-v6.6/tools/testing/selftests/arm64/abi/ |
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(ret == 0, "read_%s\n", type_name); in test_hw_debug() [all …]
|
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()
|
D | hwcap.c | 667 ksft_test_result(!seen_##SIG, \ 671 ksft_test_result(seen_##SIG, \ 707 ksft_test_result(have_hwcap == have_cpuinfo, in main()
|
/Linux-v6.6/tools/testing/selftests/resctrl/ |
D | resctrl_tests.c | 92 ksft_test_result(!res, "MBM: bw change\n"); in run_mbm_test() 118 ksft_test_result(!res, "MBA: schemata change\n"); in run_mba_test() 142 ksft_test_result(!res, "CMT: test\n"); in run_cmt_test() 168 ksft_test_result(!res, "CAT: test\n"); in run_cat_test()
|
/Linux-v6.6/tools/testing/selftests/arm64/fp/ |
D | sve-ptrace.c | 189 ksft_test_result(new_sve->flags & SVE_PT_VL_INHERIT, in ptrace_set_get_inherit() 207 ksft_test_result(!(new_sve->flags & SVE_PT_VL_INHERIT), in ptrace_set_get_inherit() 254 ksft_test_result(new_sve->vl = prctl_vl, "Set %s VL %u\n", in ptrace_set_get_vl() 303 ksft_test_result(ret == 0, "%s FPSIMD set via SVE: %d\n", in ptrace_sve_fpsimd() 414 ksft_test_result(errors == 0, "Set and get %s data for VL %u\n", in ptrace_set_sve_get_sve_data() 499 ksft_test_result(errors == 0, "Set and get FPSIMD data for %s VL %u\n", in ptrace_set_sve_get_fpsimd_data() 608 ksft_test_result(errors == 0, "Set FPSIMD, read via SVE for %s VL %u\n", in ptrace_set_fpsimd_get_sve_data()
|
D | za-ptrace.c | 143 ksft_test_result(new_za->vl = prctl_vl, "Set VL %u\n", vl); in ptrace_set_get_vl() 182 ksft_test_result(read_za->size == write_za.size, in ptrace_set_no_data() 237 ksft_test_result(memcmp(write_buf + ZA_PT_ZA_OFFSET, in ptrace_set_get_data()
|
D | zt-ptrace.c | 152 ksft_test_result(!fail, "ptrace_za_disabled_read_zt\n"); in ptrace_za_disabled_read_zt() 185 ksft_test_result(!fail, "ptrace_set_get_zt\n"); in ptrace_set_get_zt() 252 ksft_test_result(!fail, "ptrace_enable_za_via_zt\n"); in ptrace_enable_za_via_zt()
|
D | za-fork.c | 88 ksft_test_result(fork_test(), "fork_test"); in main()
|
D | vec-syscfg.c | 343 ksft_test_result(cur_vl == data->rdvl(), in prctl_set_same() 646 ksft_test_result(errors == 0, "%s prctl() set all VLs, %d errors\n", in prctl_set_all_vqs() 743 ksft_test_result(pass, "change_sve_with_za\n"); in change_sve_with_za()
|
D | fp-stress.c | 267 ksft_test_result(!fail, "%s\n", child->name); in child_cleanup()
|
/Linux-v6.6/tools/testing/selftests/alsa/ |
D | mixer-test.c | 416 ksft_test_result(err >= 0, "get_value.%d.%d\n", in test_ctl_get_value() 456 ksft_test_result(name_ok, "name.%d.%d\n", in test_ctl_name() 707 ksft_test_result(err >= 0, "write_default.%d.%d\n", in test_ctl_write_default() 857 ksft_test_result(pass, "write_valid.%d.%d\n", in test_ctl_write_valid() 1069 ksft_test_result(pass, "write_invalid.%d.%d\n", in test_ctl_write_invalid() 1075 ksft_test_result(!ctl->event_missing, "event_missing.%d.%d\n", in test_ctl_event_missing() 1081 ksft_test_result(!ctl->event_spurious, "event_spurious.%d.%d\n", in test_ctl_event_spurious()
|
D | pcm-test.c | 494 ksft_test_result(!skip, "%s.%s.%d.%d.%d.%s.params\n", in test_pcm_time() 504 ksft_test_result(pass, "%s.%s.%d.%d.%d.%s\n", in test_pcm_time() 602 ksft_test_result(false, "test.missing.%d.%d.%d.%s\n", in main()
|
/Linux-v6.6/tools/testing/selftests/timers/ |
D | clocksource-switch.c | 189 ksft_test_result(!status, "clocksource-switch\n"); in main()
|
/Linux-v6.6/tools/testing/selftests/ |
D | kselftest.h | 191 #define ksft_test_result(condition, fmt, ...) do { \ macro
|
D | kselftest_harness.h | 1152 ksft_test_result(t->passed, "%s%s%s.%s\n", in __run_test()
|
/Linux-v6.6/tools/testing/selftests/x86/ |
D | lam.c | 829 ksft_test_result(ret, t->msg); in run_test()
|