X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos.h;h=42cd63d020aedf28e91114ef171697e4f393b6e1;hp=104f4a81a7f06a147a3c07732707aaa30258ee40;hb=e6203e9e73039537d41810e91e3dfe6abeb919d9;hpb=317b95d07d4921d2594a1be6e014c9c2d062fe75 diff --git a/os/os.h b/os/os.h index 104f4a81..42cd63d0 100644 --- a/os/os.h +++ b/os/os.h @@ -27,9 +27,11 @@ #ifndef FIO_HAVE_FADVISE #define fadvise(fd, off, len, advice) (0) +#ifndef POSIX_FADV_DONTNEED #define POSIX_FADV_DONTNEED (0) #define POSIX_FADV_SEQUENTIAL (0) #define POSIX_FADV_RANDOM (0) +#endif #endif /* FIO_HAVE_FADVISE */ #ifndef FIO_HAVE_CPU_AFFINITY @@ -49,7 +51,9 @@ #ifndef FIO_HAVE_HUGETLB #define SHM_HUGETLB 0 +#ifndef FIO_HUGE_PAGE #define FIO_HUGE_PAGE 0 +#endif #else #ifndef FIO_HUGE_PAGE #define FIO_HUGE_PAGE 4194304 @@ -57,7 +61,18 @@ #endif #ifndef FIO_HAVE_RAWBIND -#define fio_lookup_raw(dev, majdev, mindev) +#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