Searched refs:alloc_and_check (Results 1 - 3 of 3) sorted by relevance
/third_party/ltp/testcases/kernel/mem/tunable/ |
H A D | overcommit_memory.c | 82 static void alloc_and_check(long size, int expect_result); 135 alloc_and_check(commit_left * 2, EXPECT_FAIL); in overcommit_memory_test() 136 alloc_and_check(commit_limit + total_batch_size, EXPECT_FAIL); in overcommit_memory_test() 138 alloc_and_check(commit_left / 2, EXPECT_PASS); in overcommit_memory_test() 144 alloc_and_check(free_total / 2, EXPECT_PASS); in overcommit_memory_test() 145 alloc_and_check(sum_total * 2, EXPECT_FAIL); in overcommit_memory_test() 150 alloc_and_check(sum_total / 2, EXPECT_PASS); in overcommit_memory_test() 151 alloc_and_check(sum_total, EXPECT_PASS); in overcommit_memory_test() 152 alloc_and_check(sum_total * 2, EXPECT_PASS); in overcommit_memory_test() 171 static void alloc_and_check(lon function [all...] |
/third_party/ltp/testcases/kernel/syscalls/set_mempolicy/ |
H A D | set_mempolicy02.c | 46 static void alloc_and_check(size_t size, unsigned int *exp_alloc) in alloc_and_check() function 102 alloc_and_check(alloc_total, exp_alloc); in verify_set_mempolicy()
|
H A D | set_mempolicy04.c | 57 static void alloc_and_check(void) in alloc_and_check() function 123 alloc_and_check(); in verify_set_mempolicy()
|
Completed in 3 milliseconds