blob: b246ef8607d044f3f15e3a51ac9f8be7b6eefde3 [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 Axboedae53412009-12-04 19:54:18 +01006int cgroup_setup(struct thread_data *td, struct flist_head *list);
Jens Axboea696fa22009-12-04 10:05:02 +01007void cgroup_shutdown(struct thread_data *td);
8
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 Axboedae53412009-12-04 19:54:18 +010013static inline int cgroup_setup(struct thread_data *td, struct flist_head *list);
Jens Axboea696fa22009-12-04 10:05:02 +010014{
15 td_verror(td, EINVAL, "cgroup_setup");
16 return 1;
17}
18
19static inline void cgroup_shutdown(struct thread_data *td)
20{
21}
22
Jens Axboedae53412009-12-04 19:54:18 +010023void cgroup_kill(struct flist_head *list);
Jens Axboe39f22022009-12-04 11:29:12 +010024{
25}
26
Jens Axboea696fa22009-12-04 10:05:02 +010027#endif
28#endif