]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - tools/perf/util/cgroup.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-focal-kernel.git] / tools / perf / util / cgroup.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __CGROUP_H__
3 #define __CGROUP_H__
4
5 #include <linux/refcount.h>
6
7 struct option;
8
9 struct cgroup_sel {
10 char *name;
11 int fd;
12 refcount_t refcnt;
13 };
14
15
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);
19
20 #endif /* __CGROUP_H__ */