/kernel/linux/linux-5.10/tools/testing/selftests/arm64/mte/ |
H A D | check_tags_inclusion.c | 32 return KSFT_PASS; in verify_mte_pointer_validity() 40 return KSFT_PASS; in verify_mte_pointer_validity() 46 int tag, run, result = KSFT_PASS; in check_single_included_tags() 50 mem_type, false) != KSFT_PASS) in check_single_included_tags() 53 for (tag = 0; (tag < MT_TAG_COUNT) && (result == KSFT_PASS); tag++) { in check_single_included_tags() 56 for (run = 0; (run < RUNS) && (result == KSFT_PASS); run++) { in check_single_included_tags() 76 int tag, run, result = KSFT_PASS; in check_multiple_included_tags() 81 mem_type, false) != KSFT_PASS) in check_multiple_included_tags() 84 for (tag = 0; (tag < MT_TAG_COUNT - 1) && (result == KSFT_PASS); tag++) { in check_multiple_included_tags() 88 for (run = 0; (run < RUNS) && (result == KSFT_PASS); ru 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_mmap_options.c | 57 return KSFT_PASS; in check_mte_memory() 71 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) in check_anonymous_memory_mapping() 89 return KSFT_PASS; in check_anonymous_memory_mapping() 97 int result = KSFT_PASS; in check_file_memory_mapping() 107 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) { in check_file_memory_mapping() 144 UNDERFLOW, OVERFLOW) != KSFT_PASS) in check_clear_prot_mte_flag() 156 if (result != KSFT_PASS) in check_clear_prot_mte_flag() 165 UNDERFLOW, OVERFLOW) != KSFT_PASS) { in check_clear_prot_mte_flag() 181 if (result != KSFT_PASS) in check_clear_prot_mte_flag() 184 return KSFT_PASS; in check_clear_prot_mte_flag() [all...] |
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_user_mem.c | 39 if (check_allocated_memory(ptr, len, mem_type, true) != KSFT_PASS) { in check_usermem_access_fault() 72 err = KSFT_PASS; in check_usermem_access_fault() 75 err = KSFT_PASS; in check_usermem_access_fault() 114 return ksft_get_fail_cnt() == 0 ? KSFT_PASS : KSFT_FAIL; in main()
|
H A D | check_ksm_options.c | 108 if (check_allocated_memory(ptr, TEST_UNIT * page_sz, mem_type, false) != KSFT_PASS) in check_madvise_options() 122 err = KSFT_PASS; in check_madvise_options() 162 return ksft_get_fail_cnt() == 0 ? KSFT_PASS : KSFT_FAIL; in main()
|
H A D | mte_common_util.h | 78 if (err == KSFT_PASS) in evaluate_test() 98 return KSFT_PASS; in check_allocated_memory() 115 return KSFT_PASS; in check_allocated_memory_range()
|
/kernel/linux/linux-6.6/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); ru 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_mmap_options.c | 57 return KSFT_PASS; in check_mte_memory() 70 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) in check_anonymous_memory_mapping() 88 return KSFT_PASS; in check_anonymous_memory_mapping() 96 int result = KSFT_PASS; in check_file_memory_mapping() 106 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) { in check_file_memory_mapping() 143 UNDERFLOW, OVERFLOW) != KSFT_PASS) in check_clear_prot_mte_flag() 155 if (result != KSFT_PASS) in check_clear_prot_mte_flag() 164 UNDERFLOW, OVERFLOW) != KSFT_PASS) { in check_clear_prot_mte_flag() 180 if (result != KSFT_PASS) in check_clear_prot_mte_flag() 183 return KSFT_PASS; in check_clear_prot_mte_flag() [all...] |
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_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()
|
/kernel/linux/linux-6.6/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() 283 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_memcontrol.c | 73 ret = KSFT_PASS; in test_memcg_subtree_control() 189 ret = KSFT_PASS; in test_memcg_current() 412 ret = KSFT_PASS; in test_memcg_protection() 432 ret = KSFT_PASS; in test_memcg_protection() 535 ret = KSFT_PASS; in test_memcg_high() 609 ret = KSFT_PASS; in test_memcg_high_sync() 662 ret = KSFT_PASS; in test_memcg_max() 775 ret = KSFT_PASS; in test_memcg_reclaim() 870 ret = KSFT_PASS; in test_memcg_swap_max() 914 ret = KSFT_PASS; in test_memcg_oom_events() [all...] |
H A D | test_core.c | 122 ret = KSFT_PASS; in test_cgcore_destroy() 245 ret = KSFT_PASS; in test_cgcore_populated() 315 ret = KSFT_PASS; in test_cgcore_invalid_domain() 357 ret = KSFT_PASS; in test_cgcore_parent_becomes_threaded() 408 ret = KSFT_PASS; in test_cgcore_no_internal_process_constraint_on_threads() 445 ret = KSFT_PASS; in test_cgcore_top_down_constraint_enable() 486 ret = KSFT_PASS; in test_cgcore_top_down_constraint_disable() 527 ret = KSFT_PASS; in test_cgcore_internal_process_constraint() 577 ret = KSFT_PASS; in test_cgcore_proc_migration() 664 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() 329 ret = KSFT_PASS; in test_kmem_dead_cgroups() 385 ret = KSFT_PASS; in test_percpu_basic() 439 case KSFT_PASS: in main()
|
H A D | test_cpu.c | 82 ret = KSFT_PASS; in test_cpucg_subtree_control() 223 ret = KSFT_PASS; in test_cpucg_stats() 289 ret = KSFT_PASS; in run_cpucg_weight_test() 336 ret = KSFT_PASS; in overprovision_validate() 376 ret = KSFT_PASS; in underprovision_validate() 513 ret = KSFT_PASS; in run_cpucg_nested_weight_test() 611 ret = KSFT_PASS; in test_cpucg_max() 671 ret = KSFT_PASS; in test_cpucg_max_nested() 712 case KSFT_PASS: in main()
|
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/ |
H A D | test_freezer.c | 221 ret = KSFT_PASS; in test_cgfreezer_simple() 383 ret = KSFT_PASS; in test_cgfreezer_tree() 442 ret = KSFT_PASS; in test_cgfreezer_forkbomb() 492 ret = KSFT_PASS; in test_cgfreezer_mkdir() 544 ret = KSFT_PASS; in test_cgfreezer_rmdir() 625 ret = KSFT_PASS; in test_cgfreezer_migrate() 688 ret = KSFT_PASS; in test_cgfreezer_ptrace() 754 ret = KSFT_PASS; in test_cgfreezer_stopped() 811 ret = KSFT_PASS; in test_cgfreezer_ptraced() 855 ret = KSFT_PASS; in test_cgfreezer_vfork() [all...] |
H A D | test_core.c | 122 ret = KSFT_PASS; in test_cgcore_destroy() 245 ret = KSFT_PASS; in test_cgcore_populated() 315 ret = KSFT_PASS; in test_cgcore_invalid_domain() 357 ret = KSFT_PASS; in test_cgcore_parent_becomes_threaded() 408 ret = KSFT_PASS; in test_cgcore_no_internal_process_constraint_on_threads() 445 ret = KSFT_PASS; in test_cgcore_top_down_constraint_enable() 486 ret = KSFT_PASS; in test_cgcore_top_down_constraint_disable() 527 ret = KSFT_PASS; in test_cgcore_internal_process_constraint() 577 ret = KSFT_PASS; in test_cgcore_proc_migration() 664 ret = KSFT_PASS; in test_cgcore_thread_migration() [all...] |
H A D | test_kmem.c | 82 ret = KSFT_PASS; in test_kmem_basic() 193 ret = KSFT_PASS; in test_kmem_memcg_deletion() 230 ret = KSFT_PASS; in test_kmem_proc_kpagecgroup() 289 ret = KSFT_PASS; in test_kmem_kernel_stacks() 326 ret = KSFT_PASS; in test_kmem_dead_cgroups() 382 ret = KSFT_PASS; in test_percpu_basic() 436 case KSFT_PASS: in main()
|
H A D | test_memcontrol.c | 69 ret = KSFT_PASS; in test_memcg_subtree_control() 180 ret = KSFT_PASS; in test_memcg_current() 375 ret = KSFT_PASS; in test_memcg_min() 534 ret = KSFT_PASS; in test_memcg_low() 622 ret = KSFT_PASS; in test_memcg_high() 673 ret = KSFT_PASS; in test_memcg_max() 763 ret = KSFT_PASS; in test_memcg_swap_max() 807 ret = KSFT_PASS; in test_memcg_oom_events() 917 ret = KSFT_PASS; in tcp_client() 980 if (tcp_client(memcg, port) != KSFT_PASS) in test_memcg_sock() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | udpgso_bench.sh | 12 readonly KSFT_PASS=0 23 if [[ ${exitcode} -eq ${KSFT_PASS} ]]; then 46 exit ${KSFT_PASS}
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | udpgso_bench.sh | 12 readonly KSFT_PASS=0 23 if [[ ${exitcode} -eq ${KSFT_PASS} ]]; then 46 exit ${KSFT_PASS}
|