Home
last modified time | relevance | path

Searched refs:alloc_and_check (Results 1 – 3 of 3) sorted by relevance

/external/ltp/testcases/kernel/mem/tunable/
Dovercommit_memory.c93 static void alloc_and_check(long size, int expect_result);
156 alloc_and_check(commit_left * 2, EXPECT_FAIL); in overcommit_memory_test()
157 alloc_and_check(commit_limit, EXPECT_FAIL); in overcommit_memory_test()
159 alloc_and_check(commit_left / 2, EXPECT_PASS); in overcommit_memory_test()
165 alloc_and_check(free_total / 2, EXPECT_PASS); in overcommit_memory_test()
166 alloc_and_check(sum_total * 2, EXPECT_FAIL); in overcommit_memory_test()
171 alloc_and_check(sum_total / 2, EXPECT_PASS); in overcommit_memory_test()
172 alloc_and_check(sum_total, EXPECT_PASS); in overcommit_memory_test()
173 alloc_and_check(sum_total * 2, EXPECT_PASS); in overcommit_memory_test()
192 static void alloc_and_check(long size, int expect_result) in alloc_and_check() function
/external/ltp/testcases/kernel/syscalls/set_mempolicy/
Dset_mempolicy02.c47 static void alloc_and_check(size_t size, unsigned int *exp_alloc) in alloc_and_check() function
103 alloc_and_check(alloc_total, exp_alloc); in verify_set_mempolicy()
Dset_mempolicy04.c56 static void alloc_and_check(void) in alloc_and_check() function
122 alloc_and_check(); in verify_set_mempolicy()