]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - tools/perf/util/cgroup.h
Merge tag 'for-4.2' of git://git.infradead.org/battery-2.6
[mirror_ubuntu-focal-kernel.git] / tools / perf / util / cgroup.h
CommitLineData
023695d9
SE
1#ifndef __CGROUP_H__
2#define __CGROUP_H__
3
f812d304
ACM
4#include <linux/atomic.h>
5
023695d9
SE
6struct option;
7
8struct cgroup_sel {
9 char *name;
10 int fd;
f812d304 11 atomic_t refcnt;
023695d9
SE
12};
13
14
15extern int nr_cgroups; /* number of explicit cgroups defined */
16extern void close_cgroup(struct cgroup_sel *cgrp);
17extern int parse_cgroups(const struct option *opt, const char *str, int unset);
18
19#endif /* __CGROUP_H__ */