Lines Matching refs:grps
628 char **grps = arg; in migrating_thread_fn() local
632 snprintf(lines[g], sizeof(lines[g]), CG_PATH_FORMAT, grps[g] + strlen(grps[0])); in migrating_thread_fn()
635 cg_enter_current_thread(grps[(i % 2) + 1]); in migrating_thread_fn()
652 char *grps[3] = { (char *)root, NULL, NULL }; in test_cgcore_thread_migration() local
657 grps[1] = cg_name(root, "cg_dom/cg_src"); in test_cgcore_thread_migration()
658 grps[2] = cg_name(root, "cg_dom/cg_dst"); in test_cgcore_thread_migration()
659 if (!grps[1] || !grps[2] || !dom) in test_cgcore_thread_migration()
664 if (cg_create(grps[1])) in test_cgcore_thread_migration()
666 if (cg_create(grps[2])) in test_cgcore_thread_migration()
670 if (cg_write(grps[1], "cgroup.type", "threaded")) in test_cgcore_thread_migration()
672 if (cg_write(grps[2], "cgroup.type", "threaded")) in test_cgcore_thread_migration()
676 if (cg_enter_current(grps[1])) in test_cgcore_thread_migration()
679 if (pthread_create(&thr, NULL, migrating_thread_fn, grps)) in test_cgcore_thread_migration()
688 snprintf(line, sizeof(line), CG_PATH_FORMAT, grps[1] + strlen(grps[0])); in test_cgcore_thread_migration()
696 if (grps[2]) in test_cgcore_thread_migration()
697 cg_destroy(grps[2]); in test_cgcore_thread_migration()
698 if (grps[1]) in test_cgcore_thread_migration()
699 cg_destroy(grps[1]); in test_cgcore_thread_migration()
702 free(grps[2]); in test_cgcore_thread_migration()
703 free(grps[1]); in test_cgcore_thread_migration()