[S390] wire up sys_perf_counter_open
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 12 Jun 2009 08:26:49 +0000 (10:26 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 12 Jun 2009 08:27:40 +0000 (10:27 +0200)
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/unistd.h
arch/s390/kernel/compat_wrapper.S
arch/s390/kernel/syscalls.S

index 90557237172b145386a00601377696aa80cd8d03..c80602d7c88000a9d7e91f5edc10ba7135e2ef3f 100644 (file)
 #define        __NR_preadv             328
 #define        __NR_pwritev            329
 #define __NR_rt_tgsigqueueinfo 330
-#define NR_syscalls 331
+#define __NR_perf_counter_open 331
+#define NR_syscalls 332
 
 /* 
  * There are some system calls that are not present on 64 bit, some
index d2e7fbf5d65dcf540f642cbe63a8674db53b2866..88a83366819f6f7bba0dfbc05ff6ac78f221becb 100644 (file)
@@ -1831,3 +1831,12 @@ compat_sys_rt_tgsigqueueinfo_wrapper:
        lgfr    %r4,%r4                 # int
        llgtr   %r5,%r5                 # struct compat_siginfo *
        jg      compat_sys_rt_tgsigqueueinfo_wrapper # branch to system call
+
+       .globl  sys_perf_counter_open_wrapper
+sys_perf_counter_open_wrapper:
+       llgtr   %r2,%r2                 # const struct perf_counter_attr *
+       lgfr    %r3,%r3                 # pid_t
+       lgfr    %r4,%r4                 # int
+       lgfr    %r5,%r5                 # int
+       llgfr   %r6,%r6                 # unsigned long
+       jg      sys_perf_counter_open   # branch to system call
index 82f89ef87d2e073a38992fdf874603d36d5714d4..ad1acd20038554ec19a518e8fda56cce7b4d5f17 100644 (file)
@@ -339,3 +339,4 @@ SYSCALL(sys_epoll_create1,sys_epoll_create1,sys_epoll_create1_wrapper)
 SYSCALL(sys_preadv,sys_preadv,compat_sys_preadv_wrapper)
 SYSCALL(sys_pwritev,sys_pwritev,compat_sys_pwritev_wrapper)
 SYSCALL(sys_rt_tgsigqueueinfo,sys_rt_tgsigqueueinfo,compat_sys_rt_tgsigqueueinfo_wrapper) /* 330 */
+SYSCALL(sys_perf_counter_open,sys_perf_counter_open,sys_perf_counter_open_wrapper)