summaryrefslogtreecommitdiff
path: root/cgroup.h
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2009-12-04 10:05:02 +0100
committerJens Axboe <jens.axboe@oracle.com>2009-12-04 10:05:02 +0100
commita696fa2a9c2e21a1c88813235d6fc39d267f6155 (patch)
tree013f162fdbd6a806fac280c4198523e7065ea065 /cgroup.h
parentd481e00608dc118e646b6fee9c9292c1ab35448f (diff)
downloadfio-a696fa2a9c2e21a1c88813235d6fc39d267f6155.tar.gz
fio-a696fa2a9c2e21a1c88813235d6fc39d267f6155.tar.bz2
Add support for blkio cgroups on Linux
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'cgroup.h')
-rw-r--r--cgroup.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/cgroup.h b/cgroup.h
new file mode 100644
index 00000000..65fa3ad1
--- /dev/null
+++ b/cgroup.h
@@ -0,0 +1,22 @@
+#ifndef FIO_CGROUP_H
+#define FIO_CGROUP_H
+
+#ifdef FIO_HAVE_CGROUPS
+
+int cgroup_setup(struct thread_data *td);
+void cgroup_shutdown(struct thread_data *td);
+
+#else
+
+static inline int cgroup_setup(struct thread_data *td)
+{
+ td_verror(td, EINVAL, "cgroup_setup");
+ return 1;
+}
+
+static inline void cgroup_shutdown(struct thread_data *td)
+{
+}
+
+#endif
+#endif