]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - tools/perf/util/cgroup.h
Merge branch 'WIP.x86/process' into perf/core
[karo-tx-linux.git] / tools / perf / util / cgroup.h
1 #ifndef __CGROUP_H__
2 #define __CGROUP_H__
3
4 #include <linux/refcount.h>
5
6 struct option;
7
8 struct cgroup_sel {
9         char *name;
10         int fd;
11         refcount_t refcnt;
12 };
13
14
15 extern int nr_cgroups; /* number of explicit cgroups defined */
16 void close_cgroup(struct cgroup_sel *cgrp);
17 int parse_cgroups(const struct option *opt, const char *str, int unset);
18
19 #endif /* __CGROUP_H__ */