You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
552 B
29 lines
552 B
#ifndef FIO_CGROUP_H |
|
#define FIO_CGROUP_H |
|
|
|
#ifdef FIO_HAVE_CGROUPS |
|
|
|
int cgroup_setup(struct thread_data *, struct flist_head *, char **); |
|
void cgroup_shutdown(struct thread_data *, char **); |
|
|
|
void cgroup_kill(struct flist_head *list); |
|
|
|
#else |
|
|
|
static inline int cgroup_setup(struct thread_data *td, struct flist_head *list, |
|
char **mnt) |
|
{ |
|
td_verror(td, EINVAL, "cgroup_setup"); |
|
return 1; |
|
} |
|
|
|
static inline void cgroup_shutdown(struct thread_data *td, char **mnt) |
|
{ |
|
} |
|
|
|
static inline void cgroup_kill(struct flist_head *list) |
|
{ |
|
} |
|
|
|
#endif |
|
#endif
|
|
|