cregit-Linux how code gets into the kernel

Release 4.18 tools/perf/util/cgroup.h

Directory: tools/perf/util
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __CGROUP_H__

#define __CGROUP_H__

#include <linux/refcount.h>

struct option;


struct cgroup {
	
char *name;
	
int fd;
	
refcount_t refcnt;
};


extern int nr_cgroups; /* number of explicit cgroups defined */

struct cgroup *cgroup__get(struct cgroup *cgroup);
void cgroup__put(struct cgroup *cgroup);

struct perf_evlist;

struct cgroup *evlist__findnew_cgroup(struct perf_evlist *evlist, const char *name);

void evlist__set_default_cgroup(struct perf_evlist *evlist, struct cgroup *cgroup);

int parse_cgroups(const struct option *opt, const char *str, int unset);

#endif /* __CGROUP_H__ */

Overall Contributors

PersonTokensPropCommitsCommitProp
Stéphane Eranian5450.47%110.00%
Arnaldo Carvalho de Melo5046.73%770.00%
Elena Reshetova21.87%110.00%
Greg Kroah-Hartman10.93%110.00%
Total107100.00%10100.00%
Directory: tools/perf/util
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.