summaryrefslogtreecommitdiffstats
path: root/libc/include
diff options
context:
space:
mode:
authorShuo Gao <shuo.gao@intel.com>2012-10-11 13:27:48 +0800
committerElliott Hughes <enh@google.com>2012-10-11 10:24:51 -0700
commit4e75c4b2d745c673f5fe20676f7b53eedbec2853 (patch)
treec9c6bf19d09422f8ba8a91b8b734867501880bf8 /libc/include
parent1ceb9824ab39501e98300bc87f7984ee6b455ce8 (diff)
downloadbionic-4e75c4b2d745c673f5fe20676f7b53eedbec2853.zip
bionic-4e75c4b2d745c673f5fe20676f7b53eedbec2853.tar.gz
bionic-4e75c4b2d745c673f5fe20676f7b53eedbec2853.tar.bz2
Fix perf_event_open syscall for x86 and mips
perf_event_open syscall has a different syscall number for the 3 supported architectures: arm, x86 and mips. Currenlty only the arm syscall number is defined for all architectures. Tracing tools like perf will not work on other architectures than arm. Add the different values for perf_event_open on x86 and mips and run gensyscalls.py to update generated headers. Change-Id: I2ed78bd42c0e5df8dbc51d784be49cccda5fab30 Author: Irina Tirdea <irina.tirdea@intel.com> Signed-off-by: Irina Tirdea <irina.tirdea@intel.com> Signed-off-by: Shuo Gao <shuo.gao@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com>
Diffstat (limited to 'libc/include')
-rw-r--r--libc/include/sys/linux-syscalls.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/include/sys/linux-syscalls.h b/libc/include/sys/linux-syscalls.h
index 89ab167..f2249fd 100644
--- a/libc/include/sys/linux-syscalls.h
+++ b/libc/include/sys/linux-syscalls.h
@@ -84,7 +84,6 @@
#define __NR_readv (__NR_SYSCALL_BASE + 145)
#define __NR_writev (__NR_SYSCALL_BASE + 146)
#define __NR_getsid (__NR_SYSCALL_BASE + 147)
-#define __NR_perf_event_open (__NR_SYSCALL_BASE + 364)
#ifdef __arm__
#define __NR_exit_group (__NR_SYSCALL_BASE + 248)
@@ -202,6 +201,7 @@
#define __NR_getcpu (__NR_SYSCALL_BASE + 345)
#define __NR_ioprio_set (__NR_SYSCALL_BASE + 314)
#define __NR_ioprio_get (__NR_SYSCALL_BASE + 315)
+#define __NR_perf_event_open (__NR_SYSCALL_BASE + 364)
#define __NR_futex (__NR_SYSCALL_BASE + 240)
#define __NR_epoll_create (__NR_SYSCALL_BASE + 250)
#define __NR_epoll_ctl (__NR_SYSCALL_BASE + 251)
@@ -330,6 +330,7 @@
#define __NR_utimensat (__NR_SYSCALL_BASE + 320)
#define __NR_eventfd2 (__NR_SYSCALL_BASE + 328)
#define __NR_pipe2 (__NR_SYSCALL_BASE + 331)
+#define __NR_perf_event_open (__NR_SYSCALL_BASE + 336)
#endif
#ifdef __mips__
@@ -462,6 +463,7 @@
#define __NR_utimensat (__NR_SYSCALL_BASE + 316)
#define __NR_eventfd2 (__NR_SYSCALL_BASE + 325)
#define __NR_pipe2 (__NR_SYSCALL_BASE + 328)
+#define __NR_perf_event_open (__NR_SYSCALL_BASE + 333)
#endif
#endif