Lines Matching defs:testcase
30 static int alloc_mem(long int length, int testcase)
44 if (testcase == MLOCK) {
54 if (testcase == KSM && madvise(s, length, MADV_MERGEABLE) == -1)
73 static void child_alloc(int testcase, int lite, int threads)
79 int ret = alloc_mem(TESTMEM * 2 + MB, testcase);
91 (void *)((long)testcase)));
111 * oom - allocates memory according to specified testcase and checks
113 * @testcase: selects how child allocates memory
125 void oom(int testcase, int lite, int retcode, int allow_sigkill)
136 child_alloc(testcase, lite, threads);