Home
last modified time | relevance | path

Searched refs:ksft_test_result (Results 1 – 22 of 22) sorted by relevance

/Linux-v6.6/tools/testing/selftests/mm/
Dmadv_populate.c63 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 …]
Dsoft-dirty.c45 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()
Dksm_functional_tests.c237 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()
Dgup_longterm.c164 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()
Dcow.c216 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()
Dmkdirty.c58 ksft_test_result(ret == 1 && *mem == orig, in do_test_write_sigsegv()
/Linux-v6.6/tools/testing/selftests/arm64/abi/
Dptrace.c46 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 …]
Dsyscall-abi.c416 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()
Dhwcap.c667 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/
Dresctrl_tests.c92 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/
Dsve-ptrace.c189 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()
Dza-ptrace.c143 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()
Dzt-ptrace.c152 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()
Dza-fork.c88 ksft_test_result(fork_test(), "fork_test"); in main()
Dvec-syscfg.c343 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()
Dfp-stress.c267 ksft_test_result(!fail, "%s\n", child->name); in child_cleanup()
/Linux-v6.6/tools/testing/selftests/alsa/
Dmixer-test.c416 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()
Dpcm-test.c494 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/
Dclocksource-switch.c189 ksft_test_result(!status, "clocksource-switch\n"); in main()
/Linux-v6.6/tools/testing/selftests/
Dkselftest.h191 #define ksft_test_result(condition, fmt, ...) do { \ macro
Dkselftest_harness.h1152 ksft_test_result(t->passed, "%s%s%s.%s\n", in __run_test()
/Linux-v6.6/tools/testing/selftests/x86/
Dlam.c829 ksft_test_result(ret, t->msg); in run_test()