Lines Matching refs:cgroupdir
3419 char cgroupdir[64];
3421 snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/unified/syz%llu", procid);
3422 if (mkdir(cgroupdir, 0777)) {
3423 debug("mkdir(%s) failed: %d\n", cgroupdir, errno);
3425 snprintf(procs_file, sizeof(procs_file), "%s/cgroup.procs", cgroupdir);
3429 snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/cpu/syz%llu", procid);
3430 if (mkdir(cgroupdir, 0777)) {
3431 debug("mkdir(%s) failed: %d\n", cgroupdir, errno);
3433 snprintf(procs_file, sizeof(procs_file), "%s/cgroup.procs", cgroupdir);
3437 snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/net/syz%llu", procid);
3438 if (mkdir(cgroupdir, 0777)) {
3439 debug("mkdir(%s) failed: %d\n", cgroupdir, errno);
3441 snprintf(procs_file, sizeof(procs_file), "%s/cgroup.procs", cgroupdir);
3480 char cgroupdir[64];
3481 snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/unified/syz%llu", procid);
3482 if (symlink(cgroupdir, "./cgroup")) {
3483 debug("symlink(%s, ./cgroup) failed: %d\n", cgroupdir, errno);
3485 snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/cpu/syz%llu", procid);
3486 if (symlink(cgroupdir, "./cgroup.cpu")) {
3487 debug("symlink(%s, ./cgroup.cpu) failed: %d\n", cgroupdir, errno);
3489 snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/net/syz%llu", procid);
3490 if (symlink(cgroupdir, "./cgroup.net")) {
3491 debug("symlink(%s, ./cgroup.net) failed: %d\n", cgroupdir, errno);