Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/mm/
A Dmadv_populate.c66 ksft_test_result(ret == -1 && errno == EINVAL, in test_prot_read()
84 ksft_test_result(ret == -1 && errno == EINVAL, 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()
178 ksft_test_result(!ret, "MADV_POPULATE_READ\n"); in test_populate_read()
179 ksft_test_result(range_is_populated(addr, SIZE), in test_populate_read()
[all …]
A Dpagemap_ioctl.c326 ksft_test_result(ret == mem_size/(page_size * 2), in sanity_tests_sd()
368 ksft_test_result(ret == num_pages/2 && ret2 == 1, in sanity_tests_sd()
388 ksft_test_result(ret == 1 && LEN(vec[0]) == 2 && in sanity_tests_sd()
558 ksft_test_result(ret == 0 && walk_end == (long)mem, in sanity_tests_sd()
565 ksft_test_result(ret == 0 && walk_end == (long)mem, in sanity_tests_sd()
572 ksft_test_result(ret == 0 && walk_end == (long)mem, in sanity_tests_sd()
737 ksft_test_result(written == 0, in base_tests()
753 ksft_test_result(written == 1 && LEN(vec[0]) >= 1, in base_tests()
859 ksft_test_result(ret == 1 && LEN(vec[0]) > 0, in hpage_unit_tests()
1282 ksft_test_result(ret == 1 && LEN(vec) == 2, in mprotect_tests()
[all …]
A 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()
A Dmlock2-tests.c191 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: Locked\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_check((unsigned long)map), "%s: Locked\n", __func__); in test_munlockall1()
[all …]
A Dksm_functional_tests.c274 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()
425 ksft_test_result(!range_maps_duplicates(map, size), in test_unmerge_uffd_wp()
618 ksft_test_result(!range_maps_duplicates(map, size), in test_prctl_unmerge()
651 ksft_test_result(!range_maps_duplicates(map, size), in test_prot_none()
A Dgup_longterm.c171 ksft_test_result(!should_work, "Should have failed\n"); in do_test()
186 ksft_test_result(should_work, "Should have worked\n"); in do_test()
218 ksft_test_result(!should_work, "Should have failed\n"); in do_test()
226 ksft_test_result(should_work, "Should have worked\n"); in do_test()
A Dpkey_sighandler_tests.c185 ksft_test_result(siginfo.si_signo == SIGSEGV && in test_sigsegv_handler_with_pkey0_disabled()
225 ksft_test_result(siginfo.si_signo == SIGSEGV && in test_sigsegv_handler_cannot_access_stack()
297 ksft_test_result(siginfo.si_signo == SIGSEGV && in test_sigsegv_handler_with_different_pkey_for_stack()
333 ksft_test_result(pkru == __read_pkey_reg() && in test_pkru_preserved_after_sigusr1()
A Dmap_populate.c70 ksft_test_result(*smap != 0x22222BAD, "MAP_POPULATE COW private page\n"); in child_f()
71 ksft_test_result(*smap == 0xdeadbabe, "The mapping state\n"); in child_f()
A Dthuge-gen.c129 ksft_test_result(size == getpagesize() || (before - after) == NUM_PAGES, in test_mmap()
167 ksft_test_result(size == getpagesize() || (before - after) == NUM_PAGES, in test_shmget()
A Don-fault-limit.c24 ksft_test_result(map == MAP_FAILED, "The map failed respecting mlock limits\n"); in test_limit()
/linux/tools/testing/selftests/arm64/abi/
A 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 …]
A 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()
/linux/tools/testing/selftests/riscv/hwprobe/
A Dhwprobe.c44 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()
A Dwhich-cpus.c118 ksft_test_result(rc == -EINVAL, "no cpusetsize\n"); in main()
122 ksft_test_result(rc == -EINVAL, "NULL cpus\n"); in main()
127 ksft_test_result(rc == 0 && CPU_COUNT(&cpus) == 0, "unknown key\n"); in main()
133 ksft_test_result(rc == 0, "duplicate keys\n"); in main()
139 ksft_test_result(rc == 0 && CPU_COUNT(&cpus) == sysconf(_SC_NPROCESSORS_ONLN), "set all cpus\n"); in main()
145 ksft_test_result(rc == 0 && CPU_EQUAL(&cpus, &cpus_aff), "set all affinity cpus\n"); in main()
151 ksft_test_result(rc == 0 && CPU_COUNT(&cpus) == 0, "clear all cpus\n"); in main()
A Dcbo.c59 ksft_test_result(illegal_insn, "No cbo.clean\n"); in test_no_zicbom()
63 ksft_test_result(illegal_insn, "No cbo.flush\n"); in test_no_zicbom()
67 ksft_test_result(illegal_insn, "No cbo.inval\n"); in test_no_zicbom()
76 ksft_test_result(illegal_insn, "No cbo.zero\n"); in test_no_zicboz()
96 ksft_test_result(rc == 0 && pair.key == RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE && in test_zicboz()
102 ksft_test_result(!illegal_insn, "cbo.zero\n"); in test_zicboz()
/linux/tools/testing/selftests/exec/
A Dload_address.c84 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()
/linux/tools/testing/selftests/kvm/s390x/
A Dshared_zeropage_test.c87 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/
A Ddmabuf-heap.c178 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/
A Dposix_timers.c131 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/x86/
A Dtest_vsyscall.c135 ksft_test_result(!(d1 < 0 || d2 < 0), "%s gettimeofday()'s timeval\n", which); in check_gtod()
412 ksft_test_result(!vsyscall_map_r, in test_process_vm_readv()
418 ksft_test_result(!memcmp(buf, remote.iov_base, sizeof(buf)), "Read data\n"); in test_process_vm_readv()
474 ksft_test_result(!nerrs, "vsyscall map\n"); in init_vsys()
514 ksft_test_result(!is_native, "vsyscalls are %s (%d instructions in vsyscall page)\n", in test_emulation()
/linux/tools/testing/selftests/arm64/fp/
A 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()
A 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()
A 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()
/linux/tools/testing/selftests/alsa/
A Dmixer-test.c436 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/
A Dtags_test.c33 ksft_test_result(!uname(ptr), "Syscall successful with tagged address\n"); in main()

Completed in 51 milliseconds

12