Home
last modified time | relevance | path

Searched refs:KSFT_PASS (Results 1 – 25 of 53) 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); run++) { 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 : KSFT_FAIL; in main()
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; in main()
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.h88 case KSFT_PASS: in evaluate_test()
118 return KSFT_PASS; in check_allocated_memory()
135 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 check_madvise_options()
190 return ksft_get_fail_cnt() == 0 ? KSFT_PASS : KSFT_FAIL; in main()
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; 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/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.c174 ret = KSFT_PASS; in test_memcg_subtree_control()
390 ret = KSFT_PASS; in test_memcg_current_peak()
616 ret = KSFT_PASS; in test_memcg_protection()
645 ret = KSFT_PASS; in test_memcg_protection()
748 ret = KSFT_PASS; in test_memcg_high()
822 ret = KSFT_PASS; in test_memcg_high_sync()
875 ret = KSFT_PASS; in test_memcg_max()
990 ret = KSFT_PASS; in test_memcg_reclaim()
1212 ret = KSFT_PASS; in test_memcg_swap_max_peak()
1260 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()
844 case KSFT_PASS in main()
[all...]
H A Dtest_pids.c64 ret = KSFT_PASS; in test_pids_max()
123 ret = KSFT_PASS; in test_pids_events()
194 ret = KSFT_PASS;
241 case KSFT_PASS:
H A Dtest_zswap.c179 ret = KSFT_PASS; in test_zswap_usage()
239 ret = KSFT_PASS; in test_swapin_nozswap()
279 ret = KSFT_PASS; in test_zswapin()
437 ret = KSFT_PASS;
539 ret = KSFT_PASS; in test_no_invasive_cgroup_shrink()
673 ret = (delta < max_delta) ? KSFT_PASS : KSFT_FAIL;
808 ret = KSFT_PASS;
879 case KSFT_PASS:
/linux/tools/testing/selftests/alloc_tag/
H A Dallocinfo_ioctl_test.c251 int ret = KSFT_PASS; in run_filter_test()
322 int ret = KSFT_PASS; in test_size_filter()
446 int ret = KSFT_PASS; in test_lineno_filter()
527 ksft_test_result(ret == KSFT_PASS, "test_filename_filter\n"); in main()
533 ksft_test_result(ret == KSFT_PASS, "test_function_filter\n"); in main()
539 ksft_test_result(ret == KSFT_PASS, "test_size_filter\n"); in main()
545 ksft_test_result(ret == KSFT_PASS, "test_lineno_filter\n"); in main()
/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.c96 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 Dksm_tests.c343 return KSFT_PASS; in check_ksm_merge()
381 return KSFT_PASS; in check_ksm_unmerge()
424 return KSFT_PASS; in check_ksm_zero_page_merge()
508 return KSFT_PASS; in check_ksm_numa_merge()
581 return KSFT_PASS; in ksm_merge_hugepages_time()
621 return KSFT_PASS; in ksm_merge_time()
667 return KSFT_PASS; in ksm_unmerge_time()
737 return KSFT_PASS; in ksm_cow_time()
H A Dmemfd_secret.c117 exit(KSFT_PASS); in try_process_vm_read()
150 exit(KSFT_PASS); in try_ptrace()
166 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