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_STRSEP
28 #include "../lib/strsep.h"
31 #ifndef FIO_HAVE_FADVISE
32 #define fadvise(fd, off, len, advice) (0)
34 #ifndef POSIX_FADV_DONTNEED
35 #define POSIX_FADV_DONTNEED (0)
36 #define POSIX_FADV_SEQUENTIAL (0)
37 #define POSIX_FADV_RANDOM (0)
39 #endif /* FIO_HAVE_FADVISE */
41 #ifndef FIO_HAVE_CPU_AFFINITY
42 #define fio_setaffinity(td) (0)
43 #define fio_getaffinity(pid, mask) do { } while(0)
46 #ifndef FIO_HAVE_IOPRIO
47 #define ioprio_set(which, who, prio) (0)
50 #ifndef FIO_HAVE_ODIRECT
53 #define OS_O_DIRECT O_DIRECT
56 #ifndef FIO_HAVE_HUGETLB
59 #define FIO_HUGE_PAGE 0
63 #define FIO_HUGE_PAGE 4194304
68 #define FIO_O_NOATIME 0
71 #ifndef FIO_HAVE_RAWBIND
72 #define fio_lookup_raw(dev, majdev, mindev) 1
75 #ifndef FIO_HAVE_BLKTRACE
76 static inline int is_blktrace(const char *fname)
81 static inline int load_blktrace(struct thread_data *td, const char *fname)