summaryrefslogtreecommitdiff
path: root/os/os.h
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2007-05-22 13:27:30 +0200
committerJens Axboe <jens.axboe@oracle.com>2007-05-22 13:27:30 +0200
commit5e62c22a669c7a8c03b7871852cf85ad6d355980 (patch)
tree8979138de420ff77180abf513f971878eee698b7 /os/os.h
parent97af62cec418cd722fb43c6010d6430534e12353 (diff)
downloadfio-5e62c22a669c7a8c03b7871852cf85ad6d355980.tar.gz
fio-5e62c22a669c7a8c03b7871852cf85ad6d355980.tar.bz2
Fix build/compile for non-blktrace platforms
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'os/os.h')
-rw-r--r--os/os.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/os/os.h b/os/os.h
index e630627f..660dcc52 100644
--- a/os/os.h
+++ b/os/os.h
@@ -60,4 +60,15 @@
#define fio_lookup_raw(dev, majdev, mindev) 1
#endif
+#ifndef FIO_HAVE_BLKTRACE
+static inline int is_blktrace(const char *fname)
+{
+ return 0;
+}
+static inline int load_blktrace(struct thread_data *td, const char *fname)
+{
+ return 1;
+}
+#endif
+
#endif