X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-aix.h;h=db99eef4cef6214408277e70d0ba1685961307aa;hb=568b5ec632d91c3bc4fcd9d34a964bd76c2773e0;hp=91c8bcda84d572f76b04fe5f12589430ca4252cd;hpb=7ed4d7abf0d7720d532d9680ebf69745d9270a5e;p=fio.git diff --git a/os/os-aix.h b/os/os-aix.h index 91c8bcda..db99eef4 100644 --- a/os/os-aix.h +++ b/os/os-aix.h @@ -1,6 +1,8 @@ #ifndef FIO_OS_AIX_H #define FIO_OS_AIX_H +#define FIO_OS os_aix + #include #include #include @@ -8,26 +10,23 @@ #include "../file.h" -#define FIO_HAVE_POSIXAIO #define FIO_HAVE_ODIRECT -#define FIO_USE_GENERIC_RAND -#define FIO_HAVE_CLOCK_MONOTONIC - -/* - * This is broken on AIX if _LARGE_FILES is defined... - */ -#if 0 -#define FIO_HAVE_FALLOCATE -#endif - -#define FIO_HAVE_PSHARED_MUTEX +#define FIO_USE_GENERIC_INIT_RANDOM_STATE #define OS_MAP_ANON MAP_ANON #define OS_MSG_DONTWAIT 0 +#define FIO_USE_GENERIC_SWAP + +#ifdef CONFIG_PTHREAD_GETAFFINITY +#define FIO_HAVE_GET_THREAD_AFFINITY +#define fio_get_thread_affinity(mask) \ + pthread_getaffinity_np(pthread_self(), sizeof(mask), &(mask)) +#endif + static inline int blockdev_invalidate_cache(struct fio_file *f) { - return EINVAL; + return ENOTSUP; } static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes)