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 | |
| 6 | int cgroup_setup(struct thread_data *td); |
| 7 | void cgroup_shutdown(struct thread_data *td); |
| 8 | |
Jens Axboe | 39f2202 | 2009-12-04 11:29:12 +0100 | [diff] [blame^] | 9 | void cgroup_kill(void); |
| 10 | |
Jens Axboe | a696fa2 | 2009-12-04 10:05:02 +0100 | [diff] [blame] | 11 | #else |
| 12 | |
| 13 | static inline int cgroup_setup(struct thread_data *td) |
| 14 | { |
| 15 | td_verror(td, EINVAL, "cgroup_setup"); |
| 16 | return 1; |
| 17 | } |
| 18 | |
| 19 | static inline void cgroup_shutdown(struct thread_data *td) |
| 20 | { |
| 21 | } |
| 22 | |
Jens Axboe | 39f2202 | 2009-12-04 11:29:12 +0100 | [diff] [blame^] | 23 | void cgroup_kill(void) |
| 24 | { |
| 25 | } |
| 26 | |
Jens Axboe | a696fa2 | 2009-12-04 10:05:02 +0100 | [diff] [blame] | 27 | #endif |
| 28 | #endif |