blob: 1c67ba80ab36ee1e67f9b454e3d9ed8d62875e53 [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
6int cgroup_setup(struct thread_data *td);
7void cgroup_shutdown(struct thread_data *td);
8
Jens Axboe39f22022009-12-04 11:29:12 +01009void cgroup_kill(void);
10
Jens Axboea696fa22009-12-04 10:05:02 +010011#else
12
13static inline int cgroup_setup(struct thread_data *td)
14{
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 Axboe39f22022009-12-04 11:29:12 +010023void cgroup_kill(void)
24{
25}
26
Jens Axboea696fa22009-12-04 10:05:02 +010027#endif
28#endif