]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - tools/perf/util/cgroup.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / tools / perf / util / cgroup.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
023695d9
SE
2#ifndef __CGROUP_H__
3#define __CGROUP_H__
4
79c5fe6d 5#include <linux/refcount.h>
f812d304 6
023695d9
SE
7struct option;
8
9struct cgroup_sel {
10 char *name;
11 int fd;
79c5fe6d 12 refcount_t refcnt;
023695d9
SE
13};
14
15
16extern int nr_cgroups; /* number of explicit cgroups defined */
3938bad4
ACM
17void close_cgroup(struct cgroup_sel *cgrp);
18int parse_cgroups(const struct option *opt, const char *str, int unset);
023695d9
SE
19
20#endif /* __CGROUP_H__ */