| 1 | #ifndef FIO_CGROUP_H |
| 2 | #define FIO_CGROUP_H |
| 3 | |
| 4 | #ifdef FIO_HAVE_CGROUPS |
| 5 | |
| 6 | int cgroup_setup(struct thread_data *, struct flist_head *, char **); |
| 7 | void cgroup_shutdown(struct thread_data *, char **); |
| 8 | |
| 9 | void cgroup_kill(struct flist_head *list); |
| 10 | |
| 11 | #else |
| 12 | |
| 13 | static inline int cgroup_setup(struct thread_data *td, struct flist_head *list, |
| 14 | char **mnt) |
| 15 | { |
| 16 | td_verror(td, EINVAL, "cgroup_setup"); |
| 17 | return 1; |
| 18 | } |
| 19 | |
| 20 | static inline void cgroup_shutdown(struct thread_data *td, char **mnt) |
| 21 | { |
| 22 | } |
| 23 | |
| 24 | void cgroup_kill(struct flist_head *list) |
| 25 | { |
| 26 | } |
| 27 | |
| 28 | #endif |
| 29 | #endif |