| /linux/tools/testing/selftests/arm64/mte/ |
| H A D | check_tags_inclusion.c | 35 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); run++) { in check_multiple_included_tags() [all …]
|
| H A D | check_buffer_fill.c | 39 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 D | check_hugetlb_options.c | 132 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() 295 return ksft_get_fail_cnt() == 0 ? KSFT_PASS : KSFT_FAIL; in main()
|
| H A D | check_child_memory.c | 81 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() 197 return ksft_get_fail_cnt() == 0 ? KSFT_PASS : KSFT_FAIL; in main()
|
| H A D | check_gcr_el1_cswitch.c | 63 return (void *)KSFT_PASS; in execute_thread() 85 return KSFT_PASS; in execute_test() 123 return KSFT_PASS; in mte_gcr_fork_test() 142 return ksft_get_fail_cnt() == 0 ? KSFT_PASS : KSFT_FAIL; in main()
|
| H A D | check_mmap_options.c | 110 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 D | mte_common_util.h | 84 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 D | check_ksm_options.c | 111 if (check_allocated_memory(ptr, TEST_UNIT * page_sz, mem_type, false) != KSFT_PASS) in check_madvise_options() 125 err = KSFT_PASS; in check_madvise_options() 165 return ksft_get_fail_cnt() == 0 ? KSFT_PASS : KSFT_FAIL; in main()
|
| H A D | check_user_mem.c | 45 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() 242 return ksft_get_fail_cnt() == 0 ? KSFT_PASS : KSFT_FAIL; in main()
|
| /linux/tools/testing/selftests/cgroup/ |
| H A D | test_kill.c | 82 ret = KSFT_PASS; in test_cgkill_simple() 88 if (ret == KSFT_PASS && in test_cgkill_simple() 186 ret = KSFT_PASS; in test_cgkill_tree() 192 if (ret == KSFT_PASS && in test_cgkill_tree() 247 ret = KSFT_PASS; in test_cgkill_forkbomb() 253 if (ret == KSFT_PASS && in test_cgkill_forkbomb() 285 case KSFT_PASS: in main()
|
| H A D | test_freezer.c | 164 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 D | test_core.c | 129 ret = KSFT_PASS; in test_cgcore_destroy() 255 ret = KSFT_PASS; in test_cgcore_populated() 328 ret = KSFT_PASS; in test_cgcore_invalid_domain() 373 ret = KSFT_PASS; in test_cgcore_parent_becomes_threaded() 425 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 D | test_kmem.c | 86 ret = KSFT_PASS; in test_kmem_basic() 196 ret = KSFT_PASS; in test_kmem_memcg_deletion() 233 ret = KSFT_PASS; in test_kmem_proc_kpagecgroup() 292 ret = KSFT_PASS; in test_kmem_kernel_stacks() 330 ret = KSFT_PASS; in test_kmem_dead_cgroups() 388 ret = KSFT_PASS; in test_percpu_basic() 444 case KSFT_PASS: in main()
|
| H A D | test_cpu.c | 84 ret = KSFT_PASS; in test_cpucg_subtree_control() 225 ret = KSFT_PASS; in test_cpucg_stats() 297 ret = KSFT_PASS; in test_cpucg_nice() 364 ret = KSFT_PASS; in run_cpucg_weight_test() 411 ret = KSFT_PASS; in overprovision_validate() 451 ret = KSFT_PASS; in underprovision_validate() 588 ret = KSFT_PASS; in run_cpucg_nested_weight_test() 697 ret = KSFT_PASS; in test_cpucg_max() 768 ret = KSFT_PASS; in test_cpucg_max_nested() 812 case KSFT_PASS: in main()
|
| H A D | test_memcontrol.c | 151 ret = KSFT_PASS; in test_memcg_subtree_control() 372 ret = KSFT_PASS; in test_memcg_current_peak() 603 ret = KSFT_PASS; in test_memcg_protection() 632 ret = KSFT_PASS; in test_memcg_protection() 735 ret = KSFT_PASS; in test_memcg_high() 809 ret = KSFT_PASS; in test_memcg_high_sync() 862 ret = KSFT_PASS; in test_memcg_max() 977 ret = KSFT_PASS; in test_memcg_reclaim() 1204 ret = KSFT_PASS; in test_memcg_swap_max_peak() 1252 ret = KSFT_PASS; in test_memcg_oom_events() [all …]
|
| H A D | test_pids.c | 61 ret = KSFT_PASS; in test_pids_max() 120 ret = KSFT_PASS; in test_pids_events() 168 case KSFT_PASS: in main()
|
| H A D | test_zswap.c | 148 ret = KSFT_PASS; in test_zswap_usage() 203 ret = KSFT_PASS; in test_swapin_nozswap() 243 ret = KSFT_PASS; in test_zswapin() 388 ret = KSFT_PASS; in test_zswap_writeback() 445 ret = KSFT_PASS; in test_no_invasive_cgroup_shrink() 563 ret = result_ok ? KSFT_PASS : KSFT_FAIL; in test_no_kmem_bypass() 623 case KSFT_PASS: in main()
|
| H A D | test_cpuset.c | 129 ret = KSFT_PASS; in test_cpuset_perms_object() 215 ret = KSFT_PASS; in test_cpuset_perms_subtree() 263 case KSFT_PASS: in main()
|
| /linux/tools/testing/selftests/cachestat/ |
| H A D | test_cachestat.c | 129 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/vsock/ |
| H A D | vmtest.sh | 94 if [[ ${rc} -eq ${KSFT_PASS} ]]; then 439 return "${KSFT_PASS}" 451 return "${KSFT_PASS}" 467 return "${KSFT_PASS}" 604 exit "$KSFT_PASS"
|
| /linux/tools/testing/selftests/mm/ |
| H A D | gup_longterm.c | 96 int result = KSFT_PASS; in do_test() 205 result = KSFT_PASS; in do_test() 224 result = KSFT_PASS; in do_test() 266 result = KSFT_PASS; in do_test() 278 result = KSFT_PASS; in do_test()
|
| H A D | ksm_tests.c | 345 return KSFT_PASS; in check_ksm_merge() 385 return KSFT_PASS; in check_ksm_unmerge() 430 return KSFT_PASS; in check_ksm_zero_page_merge() 514 return KSFT_PASS; in check_ksm_numa_merge() 588 return KSFT_PASS; in ksm_merge_hugepages_time() 629 return KSFT_PASS; in ksm_merge_time() 676 return KSFT_PASS; in ksm_unmerge_time() 747 return KSFT_PASS; in ksm_cow_time()
|
| H A D | memfd_secret.c | 144 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 D | ktap_helpers.sh | 13 KSFT_PASS=0 114 exit "$KSFT_PASS"
|
| /linux/tools/testing/selftests/ |
| H A D | kselftest.h | 85 #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()
|