Lines Matching defs:test_group
122 char *test_group;
124 test_group = cg_name(root, "no_shrink_test");
125 if (!test_group)
127 if (cg_create(test_group))
129 if (cg_write(test_group, "memory.max", "1M"))
132 zswpout_before = get_zswpout(test_group);
139 if (cg_run(test_group, allocate_bytes, (void *)MB(4)))
143 zswpout_after = get_zswpout(test_group);
151 cg_destroy(test_group);
152 free(test_group);
163 char *test_group;
166 test_group = cg_name(root, "no_zswap_test");
167 if (!test_group)
169 if (cg_create(test_group))
171 if (cg_write(test_group, "memory.max", "8M"))
173 if (cg_write(test_group, "memory.zswap.max", "0"))
177 if (cg_run(test_group, allocate_and_read_bytes, (void *)MB(32)))
181 swap_peak = cg_read_long(test_group, "memory.swap.peak");
192 zswpout = get_zswpout(test_group);
206 cg_destroy(test_group);
207 free(test_group);
215 char *test_group;
218 test_group = cg_name(root, "zswapin_test");
219 if (!test_group)
221 if (cg_create(test_group))
223 if (cg_write(test_group, "memory.max", "8M"))
225 if (cg_write(test_group, "memory.zswap.max", "max"))
229 if (cg_run(test_group, allocate_and_read_bytes, (void *)MB(32)))
232 zswpin = cg_read_key_long(test_group, "memory.stat", "zswpin ");
246 cg_destroy(test_group);
247 free(test_group);
353 char *test_group, *test_group_child = NULL;
358 test_group = cg_name(root, "zswap_writeback_test");
359 if (!test_group)
361 if (cg_create(test_group))
363 if (cg_write(test_group, "memory.zswap.writeback", wb ? "1" : "0"))
366 if (test_zswap_writeback_one(test_group, wb))
372 if (cg_write(test_group, "memory.zswap.max", "max"))
374 if (cg_write(test_group, "cgroup.subtree_control", "+memory"))
377 test_group_child = cg_name(test_group, "zswap_writeback_test_child");
395 cg_destroy(test_group);
396 free(test_group);
504 char *test_group = NULL;
526 test_group = cg_name(root, "kmem_bypass_test");
527 if (!test_group)
532 if (cg_create(test_group))
535 child_pid = cg_run_nowait(test_group, no_kmem_bypass_child, values);
559 int zswapped = cg_read_key_long(test_group, "memory.stat", "zswapped ");
572 cg_destroy(test_group);
573 free(test_group);