From: eranian@googlemail.com
To: linux-kernel@vger.kernel.org
Subject: [patch 17/21] perfmon2 minimal: X86 64-bit system calls support
Date: Mon, 09 Jun 2008 15:34:48 -0700 (PDT) [thread overview]
Message-ID: <484db008.1ade660a.1fb2.641a@mx.google.com> (raw)
This patchs adds the entry points for the X86 64-bit perfmon2 system calls.
Signed-off-by: Stephane Eranian <eranian@gmail.com>
--
Index: o/arch/x86/ia32/ia32entry.S
===================================================================
--- o.orig/arch/x86/ia32/ia32entry.S 2008-06-04 11:09:38.000000000 +0200
+++ o/arch/x86/ia32/ia32entry.S 2008-06-04 11:33:03.000000000 +0200
@@ -731,4 +731,16 @@
.quad sys32_fallocate
.quad compat_sys_timerfd_settime /* 325 */
.quad compat_sys_timerfd_gettime
+ .quad sys_pfm_create_context
+ .quad sys_pfm_write_pmcs
+ .quad sys_pfm_write_pmds
+ .quad sys_pfm_read_pmds /* 330 */
+ .quad sys_pfm_load_context
+ .quad sys_pfm_start
+ .quad sys_pfm_stop
+ .quad sys_ni_syscall /* reserved for pfm_restart */
+ .quad sys_ni_syscall /* 335 reserverd for pfm_create_evtsets */
+ .quad sys_ni_syscall /* reserved for pfm_getinfo_evtsets */
+ .quad sys_ni_syscall /* reserved for pfm_delete_evtsets */
+ .quad sys_pfm_unload_context
ia32_syscall_end:
Index: o/include/asm-x86/unistd_64.h
===================================================================
--- o.orig/include/asm-x86/unistd_64.h 2008-06-04 11:09:38.000000000 +0200
+++ o/include/asm-x86/unistd_64.h 2008-06-04 11:33:03.000000000 +0200
@@ -640,6 +640,23 @@
#define __NR_timerfd_gettime 287
__SYSCALL(__NR_timerfd_gettime, sys_timerfd_gettime)
+#define __NR_pfm_create_context 288
+__SYSCALL(__NR_pfm_create_context, sys_pfm_create_context)
+#define __NR_pfm_write_pmcs (__NR_pfm_create_context+1)
+__SYSCALL(__NR_pfm_write_pmcs, sys_pfm_write_pmcs)
+#define __NR_pfm_write_pmds (__NR_pfm_create_context+2)
+__SYSCALL(__NR_pfm_write_pmds, sys_pfm_write_pmds)
+#define __NR_pfm_read_pmds (__NR_pfm_create_context+3)
+ __SYSCALL(__NR_pfm_read_pmds, sys_pfm_read_pmds)
+#define __NR_pfm_load_context (__NR_pfm_create_context+4)
+__SYSCALL(__NR_pfm_load_context, sys_pfm_load_context)
+#define __NR_pfm_start (__NR_pfm_create_context+5)
+__SYSCALL(__NR_pfm_start, sys_pfm_start)
+#define __NR_pfm_stop (__NR_pfm_create_context+6)
+__SYSCALL(__NR_pfm_stop, sys_pfm_stop)
+#define __NR_pfm_restart (__NR_pfm_create_context+7)
+#define __NR_pfm_unload_context (__NR_pfm_create_context+11)
+__SYSCALL(__NR_pfm_unload_context, sys_pfm_unload_context)
#ifndef __NO_STUBS
#define __ARCH_WANT_OLD_READDIR
--
reply other threads:[~2008-06-09 22:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=484db008.1ade660a.1fb2.641a@mx.google.com \
--to=eranian@googlemail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox