blob: 0bbe25a2cb79f720d843113c8ca07a3c002ac40f [file] [log] [blame]
Jens Axboea696fa22009-12-04 10:05:02 +01001#ifndef FIO_CGROUP_H
2#define FIO_CGROUP_H
3
4#ifdef FIO_HAVE_CGROUPS
5
Jens Axboe6adb38a2009-12-07 08:01:26 +01006int cgroup_setup(struct thread_data *, struct flist_head *, char **);
7void cgroup_shutdown(struct thread_data *, char **);
Jens Axboea696fa22009-12-04 10:05:02 +01008
Jens Axboedae53412009-12-04 19:54:18 +01009void cgroup_kill(struct flist_head *list);
Jens Axboe39f22022009-12-04 11:29:12 +010010
Jens Axboea696fa22009-12-04 10:05:02 +010011#else
12
Jens Axboe6adb38a2009-12-07 08:01:26 +010013static inline int cgroup_setup(struct thread_data *td, struct flist_head *list,
14 char **mnt)
Jens Axboea696fa22009-12-04 10:05:02 +010015{
16 td_verror(td, EINVAL, "cgroup_setup");
17 return 1;
18}
19
Jens Axboe6adb38a2009-12-07 08:01:26 +010020static inline void cgroup_shutdown(struct thread_data *td, char **mnt)
Jens Axboea696fa22009-12-04 10:05:02 +010021{
22}
23
Jens Axboe8c436562012-02-15 19:40:57 +010024static inline void cgroup_kill(struct flist_head *list)
Jens Axboe39f22022009-12-04 11:29:12 +010025{
26}
27
Jens Axboea696fa22009-12-04 10:05:02 +010028#endif
29#endif