2005-01-13 12:42:20

by Mikael Pettersson

[permalink] [raw]
Subject: [PATCH][2.6.10-mm3] perfctr x86_64 native syscall numbers fix

Andrew,

2.6.10-mm3 added some syscalls to x86-64, but the preliminary syscall
numbers for perfctr weren't adjusted, causing an overlap. Fix below.

Signed-off-by: Mikael Pettersson <[email protected]>

--- linux-2.6.10-mm3/include/asm-x86_64/unistd.h.~1~ 2005-01-12 23:06:15.000000000 +0100
+++ linux-2.6.10-mm3/include/asm-x86_64/unistd.h 2005-01-12 23:14:14.000000000 +0100
@@ -562,7 +562,7 @@ __SYSCALL(__NR_add_key, sys_add_key)
__SYSCALL(__NR_request_key, sys_request_key)
#define __NR_keyctl 250
__SYSCALL(__NR_keyctl, sys_keyctl)
-#define __NR_vperfctr_open 248
+#define __NR_vperfctr_open 251
__SYSCALL(__NR_vperfctr_open, sys_vperfctr_open)
#define __NR_vperfctr_control (__NR_vperfctr_open+1)
__SYSCALL(__NR_vperfctr_control, sys_vperfctr_control)