Lines Matching refs:name
19 static int open_cgroup(const char *name)
29 scnprintf(path, PATH_MAX, "%s/%s", mnt, name);
47 if (!strcmp(counter->cgrp->name, str))
54 static struct cgroup *cgroup__new(const char *name, bool do_open)
61 cgroup->name = strdup(name);
62 if (!cgroup->name)
66 cgroup->fd = open_cgroup(name);
77 zfree(&cgroup->name);
83 struct cgroup *evlist__findnew_cgroup(struct evlist *evlist, const char *name)
85 struct cgroup *cgroup = evlist__find_cgroup(evlist, name);
87 return cgroup ?: cgroup__new(name, true);
120 zfree(&cgroup->name);
244 char *name = strndup(str, e - str);
245 if (!name)
248 cgrp = cgroup__new(name, open_cgroup);
249 free(name);
328 cgrp->name = strdup(path);
329 if (cgrp->name == NULL) {