X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=arch%2Farch-x86_64.h;h=d49bcd7f34478f969f4975608624d14be6be8e94;hb=c3e028cacfc9a3f463d572fc3a7a52fc1fe37bef;hp=a0e8c039c1478ca1d7a24a86e043151f413bd715;hpb=a4e1a86a0dc1b55ec342081aaba49448ee3a4bb4;p=fio.git diff --git a/arch/arch-x86_64.h b/arch/arch-x86_64.h index a0e8c039..d49bcd7f 100644 --- a/arch/arch-x86_64.h +++ b/arch/arch-x86_64.h @@ -1,6 +1,13 @@ #ifndef ARCH_X86_64_H #define ARCH_X86_64_H +#ifndef __NR_sys_io_setup2 +#define __NR_sys_io_setup2 335 +#endif +#ifndef __NR_sys_io_ring_enter +#define __NR_sys_io_ring_enter 336 +#endif + static inline void do_cpuid(unsigned int *eax, unsigned int *ebx, unsigned int *ecx, unsigned int *edx) { @@ -10,40 +17,10 @@ static inline void do_cpuid(unsigned int *eax, unsigned int *ebx, : "memory"); } -#include "arch-x86-common.h" +#include "arch-x86-common.h" /* IWYU pragma: export */ #define FIO_ARCH (arch_x86_64) -#ifndef __NR_ioprio_set -#define __NR_ioprio_set 251 -#define __NR_ioprio_get 252 -#endif - -#ifndef __NR_fadvise64 -#define __NR_fadvise64 221 -#endif - -#ifndef __NR_sys_splice -#define __NR_sys_splice 275 -#define __NR_sys_tee 276 -#define __NR_sys_vmsplice 278 -#endif - -#ifndef __NR_shmget -#define __NR_shmget 29 -#define __NR_shmat 30 -#define __NR_shmctl 31 -#define __NR_shmdt 67 -#endif - -#ifndef __NR_preadv2 -#define __NR_preadv2 327 -#endif -#ifndef __NR_pwritev2 -#define __NR_pwritev2 328 -#endif - - #define FIO_HUGE_PAGE 2097152 #define nop __asm__ __volatile__("rep;nop": : :"memory") @@ -67,6 +44,7 @@ static inline unsigned long long get_cpu_clock(void) #define ARCH_HAVE_FFZ #define ARCH_HAVE_SSE4_2 #define ARCH_HAVE_CPU_CLOCK +#define ARCH_HAVE_AIORING #define RDRAND_LONG ".byte 0x48,0x0f,0xc7,0xf0" #define RDSEED_LONG ".byte 0x48,0x0f,0xc7,0xf8"