Lines Matching defs:test_group

120 	char *test_group;
122 test_group = cg_name(root, "no_shrink_test");
123 if (!test_group)
125 if (cg_create(test_group))
127 if (cg_write(test_group, "memory.max", "1M"))
130 zswpout_before = get_zswpout(test_group);
137 if (cg_run(test_group, allocate_bytes, (void *)MB(4)))
141 zswpout_after = get_zswpout(test_group);
149 cg_destroy(test_group);
150 free(test_group);
161 char *test_group;
164 test_group = cg_name(root, "no_zswap_test");
165 if (!test_group)
167 if (cg_create(test_group))
169 if (cg_write(test_group, "memory.max", "8M"))
171 if (cg_write(test_group, "memory.zswap.max", "0"))
175 if (cg_run(test_group, allocate_and_read_bytes, (void *)MB(32)))
179 swap_peak = cg_read_long(test_group, "memory.swap.peak");
190 zswpout = get_zswpout(test_group);
204 cg_destroy(test_group);
205 free(test_group);
213 char *test_group;
216 test_group = cg_name(root, "zswapin_test");
217 if (!test_group)
219 if (cg_create(test_group))
221 if (cg_write(test_group, "memory.max", "8M"))
223 if (cg_write(test_group, "memory.zswap.max", "max"))
227 if (cg_run(test_group, allocate_and_read_bytes, (void *)MB(32)))
230 zswpin = cg_read_key_long(test_group, "memory.stat", "zswpin ");
244 cg_destroy(test_group);
245 free(test_group);
343 char *test_group = NULL;
367 test_group = cg_name(root, "kmem_bypass_test");
368 if (!test_group)
373 if (cg_create(test_group))
376 child_pid = cg_run_nowait(test_group, no_kmem_bypass_child, values);
400 int zswapped = cg_read_key_long(test_group, "memory.stat", "zswapped ");
413 cg_destroy(test_group);
414 free(test_group);