Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git] / tools / perf / util / cgroup.h
blobafafc87e920147e1a039e05dd5662c37f76778e3
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __CGROUP_H__
3 #define __CGROUP_H__
5 #include <linux/refcount.h>
7 struct option;
9 struct cgroup_sel {
10 char *name;
11 int fd;
12 refcount_t refcnt;
16 extern int nr_cgroups; /* number of explicit cgroups defined */
17 void close_cgroup(struct cgroup_sel *cgrp);
18 int parse_cgroups(const struct option *opt, const char *str, int unset);
20 #endif /* __CGROUP_H__ */