Lines Matching refs:cg
55 char *cg = NULL; in test_kmem_basic() local
58 cg = cg_name(root, "kmem_basic_test"); in test_kmem_basic()
59 if (!cg) in test_kmem_basic()
62 if (cg_create(cg)) in test_kmem_basic()
65 if (cg_run(cg, alloc_dcache, (void *)100000)) in test_kmem_basic()
68 slab0 = cg_read_key_long(cg, "memory.stat", "slab "); in test_kmem_basic()
72 cg_write(cg, "memory.high", "1M"); in test_kmem_basic()
77 slab1 = cg_read_key_long(cg, "memory.stat", "slab "); in test_kmem_basic()
81 current = cg_read_long(cg, "memory.current"); in test_kmem_basic()
88 cg_destroy(cg); in test_kmem_basic()
89 free(cg); in test_kmem_basic()
280 char *cg = NULL; in test_kmem_kernel_stacks() local
282 cg = cg_name(root, "kmem_kernel_stacks_test"); in test_kmem_kernel_stacks()
283 if (!cg) in test_kmem_kernel_stacks()
286 if (cg_create(cg)) in test_kmem_kernel_stacks()
289 if (cg_run(cg, spawn_1000_threads, NULL)) in test_kmem_kernel_stacks()
294 cg_destroy(cg); in test_kmem_kernel_stacks()
295 free(cg); in test_kmem_kernel_stacks()