Andrew,
2.6.10-mm3 reverted the perfctr syscall numbers in x86-64's
ia32-emulation to an older definition when sys_perfctr_info()
still existed. This patch fixes that.
Signed-off-by: Mikael Petterson <[email protected]>
--- linux-2.6.10-mm3/include/asm-x86_64/ia32_unistd.h.~1~ 2005-01-11 23:35:17.000000000 +0100
+++ linux-2.6.10-mm3/include/asm-x86_64/ia32_unistd.h 2005-01-12 00:33:25.000000000 +0100
@@ -295,10 +295,10 @@
#define __NR_ia32_request_key 287
#define __NR_ia32_keyctl 288
#define __NR_ia32_vperfctr_open 289
-#define __NR_ia32_vperfctr_control (__NR_ia32_perfctr_info+1)
-#define __NR_ia32_vperfctr_unlink (__NR_ia32_perfctr_info+2)
-#define __NR_ia32_vperfctr_iresume (__NR_ia32_perfctr_info+3)
-#define __NR_ia32_vperfctr_read (__NR_ia32_perfctr_info+4)
+#define __NR_ia32_vperfctr_control (__NR_ia32_vperfctr_open+1)
+#define __NR_ia32_vperfctr_unlink (__NR_ia32_vperfctr_open+2)
+#define __NR_ia32_vperfctr_iresume (__NR_ia32_vperfctr_open+3)
+#define __NR_ia32_vperfctr_read (__NR_ia32_vperfctr_open+4)
#define IA32_NR_syscalls 294 /* must be > than biggest syscall! */