Skip to contentSkip to conversation

perfmon3: X86 32-bit system calls support

PATCH In review [email protected] 1 participant 1 message Oct 17, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 19/24 perfmon3: X86 32-bit system calls support

This patchs adds the entry points for the X86 32-bit perfmon system calls.

--

arch/x86/kernel/syscall_table_32.S +5 -0
Index: o3/arch/x86/kernel/syscall_table_32.S
===================================================================
@@ -332,3 +332,8 @@
 	.long sys_dup3			/* 330 */
 	.long sys_pipe2
 	.long sys_inotify_init1
+	.long sys_pfm_create
+	.long sys_pfm_write
+	.long sys_pfm_read		/* 335 */
+	.long sys_pfm_attach
+	.long sys_pfm_set_state
include/asm-x86/unistd_32.h +5 -0
Index: o3/include/asm-x86/unistd_32.h
===================================================================
@@ -338,6 +338,11 @@
 #define __NR_dup3		330
 #define __NR_pipe2		331
 #define __NR_inotify_init1	332
+#define __NR_pfm_create		333
+#define __NR_pfm_write		(__NR_pfm_create+1)
+#define __NR_pfm_read		(__NR_pfm_create+2)
+#define __NR_pfm_attach		(__NR_pfm_create+3)
+#define __NR_pfm_set_state	(__NR_pfm_create+4)
 
 #ifdef __KERNEL__