6 #elif defined(__FreeBSD__)
7 #include "os-freebsd.h"
9 #include "os-solaris.h"
11 #error "unsupported os"
14 #ifdef FIO_HAVE_LIBAIO
18 #ifdef FIO_HAVE_POSIXAIO
27 #ifndef FIO_HAVE_FADVISE
28 #define fadvise(fd, off, len, advice) (0)
30 #ifndef POSIX_FADV_DONTNEED
31 #define POSIX_FADV_DONTNEED (0)
32 #define POSIX_FADV_SEQUENTIAL (0)
33 #define POSIX_FADV_RANDOM (0)
35 #endif /* FIO_HAVE_FADVISE */
37 #ifndef FIO_HAVE_CPU_AFFINITY
38 #define fio_setaffinity(td) (0)
39 #define fio_getaffinity(pid, mask) (0)
42 #ifndef FIO_HAVE_IOPRIO
43 #define ioprio_set(which, who, prio) (0)
46 #ifndef FIO_HAVE_ODIRECT
49 #define OS_O_DIRECT O_DIRECT
52 #ifndef FIO_HAVE_HUGETLB
55 #define FIO_HUGE_PAGE 0
59 #define FIO_HUGE_PAGE 4194304
63 #ifndef FIO_HAVE_RAWBIND
64 #define fio_lookup_raw(dev, majdev, mindev) 1
67 #ifndef FIO_HAVE_BLKTRACE
68 static inline int is_blktrace(const char *fname)
72 static inline int load_blktrace(struct thread_data *td, const char *fname)