Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/*
* blktrace support
*/
+#ifdef FIO_HAVE_BLKTRACE
extern int is_blktrace(const char *);
extern int load_blktrace(struct thread_data *, const char *);
+#endif
/*
* If logging output to a file, stderr should go to both stderr and f_err
#define FIO_HAVE_ODIRECT
#define FIO_HAVE_HUGETLB
#define FIO_HAVE_RAWBIND
+#define FIO_HAVE_BLKTRACE
#define OS_MAP_ANON (MAP_ANONYMOUS)
#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