* [patch 17/24] perfmon: X86 64-bit system calls support (x86)
@ 2008-11-26 8:42 eranian
2008-11-26 11:05 ` Andi Kleen
0 siblings, 1 reply; 4+ messages in thread
From: eranian @ 2008-11-26 8:42 UTC (permalink / raw)
To: linux-kernel; +Cc: akpm, mingo, x86, andi, eranian, sfr
This patchs adds the entry points for the X86 64-bit perfmon system calls.
Signed-off-by: Stephane Eranian <eranian@gmail.com>
--
Index: o3/arch/x86/include/asm/unistd_64.h
===================================================================
--- o3.orig/arch/x86/include/asm/unistd_64.h 2008-11-03 11:17:02.000000000 +0100
+++ o3/arch/x86/include/asm/unistd_64.h 2008-11-03 11:17:59.000000000 +0100
@@ -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
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch 17/24] perfmon: X86 64-bit system calls support (x86)
2008-11-26 8:42 [patch 17/24] perfmon: X86 64-bit system calls support (x86) eranian
@ 2008-11-26 11:05 ` Andi Kleen
2008-11-26 17:58 ` stephane eranian
0 siblings, 1 reply; 4+ messages in thread
From: Andi Kleen @ 2008-11-26 11:05 UTC (permalink / raw)
To: eranian; +Cc: linux-kernel, akpm, mingo, x86, andi, eranian, sfr
> +#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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch 17/24] perfmon: X86 64-bit system calls support (x86)
2008-11-26 11:05 ` Andi Kleen
@ 2008-11-26 17:58 ` stephane eranian
0 siblings, 0 replies; 4+ messages in thread
From: stephane eranian @ 2008-11-26 17:58 UTC (permalink / raw)
To: Andi Kleen; +Cc: linux-kernel, akpm, mingo, x86, sfr
Done
Thanks.
On Wed, Nov 26, 2008 at 12:05 PM, Andi Kleen <andi@firstfloor.org> wrote:
>> +#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
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [patch 17/24] perfmon: X86 64-bit system calls support (x86)
@ 2008-11-25 21:36 eranian
0 siblings, 0 replies; 4+ messages in thread
From: eranian @ 2008-11-25 21:36 UTC (permalink / raw)
To: linux-kernel
This patchs adds the entry points for the X86 64-bit perfmon system calls.
Signed-off-by: Stephane Eranian <eranian@gmail.com>
--
Index: o3/arch/x86/include/asm/unistd_64.h
===================================================================
--- o3.orig/arch/x86/include/asm/unistd_64.h 2008-11-03 11:17:02.000000000 +0100
+++ o3/arch/x86/include/asm/unistd_64.h 2008-11-03 11:17:59.000000000 +0100
@@ -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
--
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-11-26 17:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-26 8:42 [patch 17/24] perfmon: X86 64-bit system calls support (x86) eranian
2008-11-26 11:05 ` Andi Kleen
2008-11-26 17:58 ` stephane eranian
-- strict thread matches above, loose matches on Subject: below --
2008-11-25 21:36 eranian
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.