Home
last modified time | relevance | path

Searched refs:KSFT_PASS (Results 1 – 25 of 51) sorted by relevance

123

/linux/tools/testing/selftests/arm64/mte/
H A Dcheck_tags_inclusion.c35 return KSFT_PASS; in verify_mte_pointer_validity()
45 return KSFT_PASS; in verify_mte_pointer_validity()
52 int tag, run, ret, result = KSFT_PASS; in check_single_included_tags()
56 mem_type, false) != KSFT_PASS) in check_single_included_tags()
59 for (tag = 0; (tag < MT_TAG_COUNT) && (result == KSFT_PASS); tag++) { in check_single_included_tags()
64 for (run = 0; (run < RUNS) && (result == KSFT_PASS); run++) { in check_single_included_tags()
84 int tag, run, result = KSFT_PASS; in check_multiple_included_tags()
89 mem_type, false) != KSFT_PASS) in check_multiple_included_tags()
92 for (tag = 0; (tag < MT_TAG_COUNT - 1) && (result == KSFT_PASS); tag++) { in check_multiple_included_tags()
96 for (run = 0; (run < RUNS) && (result == KSFT_PASS); ru in check_multiple_included_tags()
[all...]
H A Dcheck_buffer_fill.c39 if (check_allocated_memory(ptr, sizes[i], mem_type, true) != KSFT_PASS) in check_buffer_by_byte()
58 return KSFT_PASS; in check_buffer_by_byte()
77 underflow_range, 0) != KSFT_PASS) in check_buffer_underflow_by_byte()
155 return (err ? KSFT_FAIL : KSFT_PASS); in check_buffer_underflow_by_byte()
173 0, overflow_range) != KSFT_PASS) in check_buffer_overflow_by_byte()
258 return (err ? KSFT_FAIL : KSFT_PASS); in check_buffer_overflow_by_byte()
264 int j, result = KSFT_PASS; in check_buffer_by_block_iterate()
271 if (check_allocated_memory(src, size, mem_type, false) != KSFT_PASS) in check_buffer_by_block_iterate()
275 if (check_allocated_memory(dst, size, mem_type, true) != KSFT_PASS) { in check_buffer_by_block_iterate()
283 if (check_allocated_memory(dst, size, mem_type, false) != KSFT_PASS) in check_buffer_by_block_iterate()
[all...]
H A Dcheck_hugetlb_options.c132 return (fault) ? KSFT_FAIL : KSFT_PASS; in check_child_tag_inheritance()
143 return KSFT_PASS; in check_mte_memory()
156 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) in check_hugetlb_memory_mapping()
173 return KSFT_PASS; in check_hugetlb_memory_mapping()
188 0, 0) != KSFT_PASS) in check_clear_prot_mte_flag()
199 if (result != KSFT_PASS) in check_clear_prot_mte_flag()
202 return KSFT_PASS; in check_clear_prot_mte_flag()
217 0, 0) != KSFT_PASS) in check_child_hugetlb_memory_mapping()
224 return KSFT_PASS; in check_child_hugetlb_memory_mapping()
297 return ksft_get_fail_cnt() == 0 ? KSFT_PASS in main()
[all...]
H A Dcheck_child_memory.c81 return (fault) ? KSFT_FAIL : KSFT_PASS; in check_child_tag_inheritance()
96 UNDERFLOW, OVERFLOW) != KSFT_PASS) in check_child_memory_mapping()
103 return KSFT_PASS; in check_child_memory_mapping()
109 int run, fd, map_size, result = KSFT_PASS; in check_child_file_mapping()
120 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) { in check_child_file_mapping()
138 if (result != KSFT_PASS) in check_child_file_mapping()
141 return KSFT_PASS; in check_child_file_mapping()
199 return ksft_get_fail_cnt() == 0 ? KSFT_PASS : KSFT_FAIL;
H A Dcheck_gcr_el1_cswitch.c63 return (void *)KSFT_PASS; in execute_thread()
85 return KSFT_PASS; in execute_test()
123 return KSFT_PASS; in mte_gcr_fork_test()
143 return ksft_get_fail_cnt() == 0 ? KSFT_PASS : KSFT_FAIL; in main()
H A Dcheck_mmap_options.c110 return KSFT_PASS; in check_mte_memory()
127 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) in check_anonymous_memory_mapping()
142 if (result != KSFT_PASS) in check_anonymous_memory_mapping()
145 return KSFT_PASS; in check_anonymous_memory_mapping()
154 int result = KSFT_PASS; in check_file_memory_mapping()
167 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) { in check_file_memory_mapping()
185 if (result != KSFT_PASS) in check_file_memory_mapping()
188 return KSFT_PASS; in check_file_memory_mapping()
204 UNDERFLOW, OVERFLOW) != KSFT_PASS) in check_clear_prot_mte_flag()
216 if (result != KSFT_PASS) in check_clear_prot_mte_flag()
[all...]
H A Dmte_common_util.h84 case KSFT_PASS: in evaluate_test()
114 return KSFT_PASS; in check_allocated_memory()
131 return KSFT_PASS; in check_allocated_memory_range()
H A Dcheck_ksm_options.c129 if (check_allocated_memory(ptr, TEST_UNIT * page_sz, mem_type, false) != KSFT_PASS) in check_madvise_options()
143 err = KSFT_PASS; in main()
190 return ksft_get_fail_cnt() == 0 ? KSFT_PASS : KSFT_FAIL;
H A Dcheck_user_mem.c45 err = KSFT_PASS; in check_usermem_access_fault()
56 if (check_allocated_memory(ptr, len, mem_type, true) != KSFT_PASS) { in check_usermem_access_fault()
244 return ksft_get_fail_cnt() == 0 ? KSFT_PASS : KSFT_FAIL;
/linux/tools/testing/selftests/cgroup/
H A Dtest_kill.c83 ret = KSFT_PASS; in test_cgkill_simple()
89 if (ret == KSFT_PASS && in test_cgkill_simple()
187 ret = KSFT_PASS; in test_cgkill_tree()
193 if (ret == KSFT_PASS && in test_cgkill_tree()
249 ret = KSFT_PASS; in test_cgkill_forkbomb()
255 if (ret == KSFT_PASS && in test_cgkill_forkbomb()
307 ret = KSFT_PASS; in test_cgkill_clone_into_killed()
341 case KSFT_PASS: in main()
H A Dtest_freezer.c164 ret = KSFT_PASS; in test_cgfreezer_simple()
326 ret = KSFT_PASS; in test_cgfreezer_tree()
385 ret = KSFT_PASS; in test_cgfreezer_forkbomb()
435 ret = KSFT_PASS; in test_cgfreezer_mkdir()
487 ret = KSFT_PASS; in test_cgfreezer_rmdir()
568 ret = KSFT_PASS; in test_cgfreezer_migrate()
631 ret = KSFT_PASS; in test_cgfreezer_ptrace()
697 ret = KSFT_PASS; in test_cgfreezer_stopped()
754 ret = KSFT_PASS; in test_cgfreezer_ptraced()
798 ret = KSFT_PASS; in test_cgfreezer_vfork()
[all …]
H A Dtest_core.c129 ret = KSFT_PASS; in test_cgcore_destroy()
256 ret = KSFT_PASS; in test_cgcore_populated()
329 ret = KSFT_PASS; in test_cgcore_invalid_domain()
374 ret = KSFT_PASS; in test_cgcore_parent_becomes_threaded()
426 ret = KSFT_PASS; in test_cgcore_no_internal_process_constraint_on_threads()
465 ret = KSFT_PASS; in test_cgcore_top_down_constraint_enable()
509 ret = KSFT_PASS; in test_cgcore_top_down_constraint_disable()
553 ret = KSFT_PASS; in test_cgcore_internal_process_constraint()
603 ret = KSFT_PASS; in test_cgcore_proc_migration()
692 ret = KSFT_PASS; in test_cgcore_thread_migration()
[all …]
H A Dtest_kmem.c87 ret = KSFT_PASS; in test_kmem_basic()
197 ret = KSFT_PASS; in test_kmem_memcg_deletion()
234 ret = KSFT_PASS; in test_kmem_proc_kpagecgroup()
293 ret = KSFT_PASS; in test_kmem_kernel_stacks()
337 ret = KSFT_PASS; in test_kmem_dead_cgroups()
390 ret = KSFT_PASS; in test_percpu_basic()
446 case KSFT_PASS: in main()
H A Dtest_memcontrol.c171 ret = KSFT_PASS; in test_memcg_subtree_control()
387 ret = KSFT_PASS; in test_memcg_current_peak()
613 ret = KSFT_PASS; in test_memcg_protection()
642 ret = KSFT_PASS; in test_memcg_protection()
745 ret = KSFT_PASS; in test_memcg_high()
819 ret = KSFT_PASS; in test_memcg_high_sync()
872 ret = KSFT_PASS; in test_memcg_max()
987 ret = KSFT_PASS; in test_memcg_reclaim()
1209 ret = KSFT_PASS; in test_memcg_swap_max_peak()
1257 ret = KSFT_PASS; in test_memcg_oom_events()
[all …]
H A Dtest_cpu.c84 ret = KSFT_PASS; in test_cpucg_subtree_control()
225 ret = KSFT_PASS; in test_cpucg_stats()
299 ret = KSFT_PASS; in test_cpucg_nice()
366 ret = KSFT_PASS; in run_cpucg_weight_test()
413 ret = KSFT_PASS; in overprovision_validate()
453 ret = KSFT_PASS; in underprovision_validate()
590 ret = KSFT_PASS; in run_cpucg_nested_weight_test()
727 ret = KSFT_PASS; in test_cpucg_max()
801 ret = KSFT_PASS; in test_cpucg_max_nested()
845 case KSFT_PASS: in main()
H A Dtest_pids.c61 ret = KSFT_PASS; in test_pids_max()
120 ret = KSFT_PASS; in test_pids_events()
168 case KSFT_PASS: in main()
H A Dtest_zswap.c178 ret = KSFT_PASS; in test_zswap_usage()
238 ret = KSFT_PASS; in test_swapin_nozswap()
278 ret = KSFT_PASS; in test_zswapin()
425 ret = KSFT_PASS; in test_zswap_writeback()
505 ret = KSFT_PASS; in test_no_invasive_cgroup_shrink()
635 ret = result_ok ? KSFT_PASS : KSFT_FAIL; in test_no_kmem_bypass()
770 ret = KSFT_PASS; in test_zswap_incompressible()
841 case KSFT_PASS: in main()
H A Dtest_cpuset.c135 ret = KSFT_PASS; in test_cpuset_perms_object()
221 ret = KSFT_PASS; in test_cpuset_perms_subtree()
449 ret = KSFT_PASS; in test_cpuset_affinity_on_controller_disable()
510 case KSFT_PASS: in main()
/linux/tools/testing/selftests/vsock/
H A Dvmtest.sh202 if [[ ${rc} -eq ${KSFT_PASS} ]]; then
762 return "${KSFT_PASS}"
815 return "${KSFT_PASS}"
858 return "${KSFT_PASS}"
920 return "${KSFT_PASS}"
969 return "${KSFT_PASS}"
1014 return "${KSFT_PASS}"
1062 return "${KSFT_PASS}"
1102 return "${KSFT_PASS}"
1112 return "${KSFT_PASS}"
[all...]
/linux/tools/testing/selftests/cachestat/
H A Dtest_cachestat.c129 int ret = KSFT_PASS; in test_cachestat()
321 4, O_RDONLY, 0400) == KSFT_PASS) in main()
330 false, 4, O_CREAT | O_RDWR, 0600) == KSFT_PASS) in main()
343 case KSFT_PASS: in main()
/linux/tools/testing/selftests/mm/
H A Dgup_longterm.c97 int result = KSFT_PASS; in do_test()
206 result = KSFT_PASS; in do_test()
225 result = KSFT_PASS; in do_test()
267 result = KSFT_PASS; in do_test()
279 result = KSFT_PASS; in do_test()
H A Dksm_tests.c344 return KSFT_PASS; in check_ksm_merge()
382 return KSFT_PASS; in check_ksm_unmerge()
425 return KSFT_PASS; in check_ksm_zero_page_merge()
509 return KSFT_PASS; in check_ksm_numa_merge()
582 return KSFT_PASS; in ksm_merge_hugepages_time()
622 return KSFT_PASS; in ksm_merge_time()
668 return KSFT_PASS; in ksm_unmerge_time()
738 return KSFT_PASS; in ksm_cow_time()
H A Dmemfd_secret.c144 exit(KSFT_PASS); in try_process_vm_read()
176 exit(KSFT_PASS); in try_ptrace()
192 if ((WIFEXITED(status) && WEXITSTATUS(status) == KSFT_PASS) || in check_child_status()
/linux/tools/testing/selftests/kselftest/
H A Dktap_helpers.sh13 KSFT_PASS=0
114 exit "$KSFT_PASS"
/linux/tools/testing/selftests/
H A Dkselftest.h85 #define KSFT_PASS 0 macro
312 case KSFT_PASS: in ksft_test_result_code()
355 case KSFT_PASS: \
375 exit(KSFT_PASS); in ksft_exit_pass()

123