4 #define FIO_HAVE_LIBAIO
5 #define FIO_HAVE_POSIXAIO
6 #define FIO_HAVE_FADVISE
7 #define FIO_HAVE_CPU_AFFINITY
8 #define FIO_HAVE_DISK_UTIL
10 #define OS_MAP_ANON (MAP_ANONYMOUS)
12 typedef cpu_set_t os_cpu_mask_t;
15 * we want fadvise64 really, but it's so tangled... later
17 #define fadvise(fd, off, len, advice) \
18 posix_fadvise((fd), (off_t)(off), (len), (advice))
20 #define fio_setaffinity(td) \
21 sched_setaffinity((td)->pid, sizeof((td)->cpumask), &(td)->cpumask)
22 #define fio_getaffinity(pid, ptr) \
23 sched_getaffinity((pid), sizeof(cpu_set_t), (ptr))