X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos.h;h=4178e6f916f42831ce05bb0d0626b75f763e3c36;hb=c60ebc45bccb8603a360f88c494ecca40a7becef;hp=98773838cb1a042df847505c7029cce04ae8fba4;hpb=df96a39edc86394bca0643e9aa2a8f4dfc76c7c9;p=fio.git diff --git a/os/os.h b/os/os.h index 98773838..4178e6f9 100644 --- a/os/os.h +++ b/os/os.h @@ -81,10 +81,10 @@ typedef struct aiocb os_aiocb_t; #define POSIX_FADV_DONTNEED (0) #define POSIX_FADV_SEQUENTIAL (0) #define POSIX_FADV_RANDOM (0) +#define POSIX_FADV_NORMAL (0) #endif #ifndef FIO_HAVE_CPU_AFFINITY -#define fio_getaffinity(pid, mask) do { } while (0) #define fio_cpu_clear(mask, cpu) do { } while (0) typedef unsigned long os_cpu_mask_t; @@ -93,6 +93,11 @@ static inline int fio_setaffinity(int pid, os_cpu_mask_t cpumask) return 0; } +static inline int fio_getaffinity(int pid, os_cpu_mask_t *cpumask) +{ + return -1; +} + static inline int fio_cpuset_exit(os_cpu_mask_t *mask) { return -1; @@ -167,7 +172,7 @@ extern int fio_cpus_split(os_cpu_mask_t *mask, unsigned int cpu); #endif #ifndef FIO_MAX_JOBS -#define FIO_MAX_JOBS 2048 +#define FIO_MAX_JOBS 4096 #endif #ifndef CONFIG_SOCKLEN_T