perfmon: X86 64-bit system calls support (x86)
PATCH 17/24 perfmon: X86 64-bit system calls support (x86)
This patchs adds the entry points for the X86 64-bit perfmon system calls.
Signed-off-by Stephane Eranian <[email protected]>
--
arch/x86/include/asm/unistd_64.h +10 -1
@@ -653,7 +653,16 @@ __SYSCALL(__NR_pipe2, sys_pipe2)#define __NR_inotify_init1 294 __SYSCALL(__NR_inotify_init1, sys_inotify_init1) - +#define __NR_pfm_create 295 +__SYSCALL(__NR_pfm_create, sys_pfm_create) +#define __NR_pfm_write (__NR_pfm_create+1) +__SYSCALL(__NR_pfm_write, sys_pfm_write) +#define __NR_pfm_read (__NR_pfm_create+2) + __SYSCALL(__NR_pfm_read, sys_pfm_read) +#define __NR_pfm_attach (__NR_pfm_create+3) +__SYSCALL(__NR_pfm_attach, sys_pfm_attach) +#define __NR_pfm_set_state (__NR_pfm_create+4) +__SYSCALL(__NR_pfm_set_state, sys_pfm_set_state)#ifndef __NO_STUBS#define __ARCH_WANT_OLD_READDIR
arch/x86/include/asm/unistd_64.h line 665
Quoted 10 lines
arch/x86/include/asm/unistd_64.h +10
-0+#define __NR_pfm_create 295 +__SYSCALL(__NR_pfm_create, sys_pfm_create) +#define __NR_pfm_write (__NR_pfm_create+1) +__SYSCALL(__NR_pfm_write, sys_pfm_write) +#define __NR_pfm_read (__NR_pfm_create+2) + __SYSCALL(__NR_pfm_read, sys_pfm_read) +#define __NR_pfm_attach (__NR_pfm_create+3) +__SYSCALL(__NR_pfm_attach, sys_pfm_attach) +#define __NR_pfm_set_state (__NR_pfm_create+4) +__SYSCALL (__NR_pfm_set_state, sys_pfm_set_state)
Please use always absolute numbers. That's much nicer for people who grep for them.
-Andi
Done
Thanks.
Quoted 17 lines · Andi Kleen
arch/x86/include/asm/unistd_64.h line 665
Quoted 10 lines
arch/x86/include/asm/unistd_64.h +10
-0+#define __NR_pfm_create 295 +__SYSCALL(__NR_pfm_create, sys_pfm_create) +#define __NR_pfm_write (__NR_pfm_create+1) +__SYSCALL(__NR_pfm_write, sys_pfm_write) +#define __NR_pfm_read (__NR_pfm_create+2) + __SYSCALL(__NR_pfm_read, sys_pfm_read) +#define __NR_pfm_attach (__NR_pfm_create+3) +__SYSCALL(__NR_pfm_attach, sys_pfm_attach) +#define __NR_pfm_set_state (__NR_pfm_create+4) +__SYSCALL (__NR_pfm_set_state, sys_pfm_set_state)Please use always absolute numbers. That's much nicer for people who grep for them.
-Andi