Jens Axboe | a696fa2 | 2009-12-04 10:05:02 +0100 | [diff] [blame] | 1 | #ifndef FIO_CGROUP_H |
| 2 | #define FIO_CGROUP_H |
| 3 | |
| 4 | #ifdef FIO_HAVE_CGROUPS |
| 5 | |
Jens Axboe | 6adb38a | 2009-12-07 08:01:26 +0100 | [diff] [blame] | 6 | int cgroup_setup(struct thread_data *, struct flist_head *, char **); |
| 7 | void cgroup_shutdown(struct thread_data *, char **); |
Jens Axboe | a696fa2 | 2009-12-04 10:05:02 +0100 | [diff] [blame] | 8 | |
Jens Axboe | dae5341 | 2009-12-04 19:54:18 +0100 | [diff] [blame] | 9 | void cgroup_kill(struct flist_head *list); |
Jens Axboe | 39f2202 | 2009-12-04 11:29:12 +0100 | [diff] [blame] | 10 | |
Jens Axboe | a696fa2 | 2009-12-04 10:05:02 +0100 | [diff] [blame] | 11 | #else |
| 12 | |
Jens Axboe | 6adb38a | 2009-12-07 08:01:26 +0100 | [diff] [blame] | 13 | static inline int cgroup_setup(struct thread_data *td, struct flist_head *list, |
| 14 | char **mnt) |
Jens Axboe | a696fa2 | 2009-12-04 10:05:02 +0100 | [diff] [blame] | 15 | { |
| 16 | td_verror(td, EINVAL, "cgroup_setup"); |
| 17 | return 1; |
| 18 | } |
| 19 | |
Jens Axboe | 6adb38a | 2009-12-07 08:01:26 +0100 | [diff] [blame] | 20 | static inline void cgroup_shutdown(struct thread_data *td, char **mnt) |
Jens Axboe | a696fa2 | 2009-12-04 10:05:02 +0100 | [diff] [blame] | 21 | { |
| 22 | } |
| 23 | |
Jens Axboe | 8c43656 | 2012-02-15 19:40:57 +0100 | [diff] [blame] | 24 | static inline void cgroup_kill(struct flist_head *list) |
Jens Axboe | 39f2202 | 2009-12-04 11:29:12 +0100 | [diff] [blame] | 25 | { |
| 26 | } |
| 27 | |
Jens Axboe | a696fa2 | 2009-12-04 10:05:02 +0100 | [diff] [blame] | 28 | #endif |
| 29 | #endif |