summaryrefslogtreecommitdiff
path: root/lib/getrusage.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2013-01-24 14:20:09 -0700
committerJens Axboe <axboe@kernel.dk>2013-01-24 14:20:09 -0700
commit44404c5a7f90aa42c3228b56b6f686f15a50fb29 (patch)
treec2bb9f389314ec659222e3c4546bf679144b15ea /lib/getrusage.h
parent7732a09b0a5331f20b7fdf42f811a3f2805dcaae (diff)
downloadfio-44404c5a7f90aa42c3228b56b6f686f15a50fb29.tar.gz
fio-44404c5a7f90aa42c3228b56b6f686f15a50fb29.tar.bz2
Add lib/getrusage.c
Abstract out the SELF/THREAD complication. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/getrusage.h')
-rw-r--r--lib/getrusage.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/getrusage.h b/lib/getrusage.h
new file mode 100644
index 00000000..49e64270
--- /dev/null
+++ b/lib/getrusage.h
@@ -0,0 +1,9 @@
+#ifndef FIO_GETRUSAGE_H
+#define FIO_GETRUSAGE_H
+
+#include <sys/time.h>
+#include <sys/resource.h>
+
+extern int fio_getrusage(struct rusage *ru);
+
+#endif