summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-02-04 00:04:57 +0100
committerDmitry V. Levin <ldv@altlinux.org>2013-02-05 23:15:14 +0000
commit88eafd81ab061ff217c0b56f02b07c16cbd29ff4 (patch)
treebead52005e21685a2458778e3c1fd98d11c31e59 /linux
parentaf8dc6b3a562193c27c89531e7ac6d94e7c3c322 (diff)
downloadstrace-88eafd81ab061ff217c0b56f02b07c16cbd29ff4.tar.gz
strace-88eafd81ab061ff217c0b56f02b07c16cbd29ff4.tar.bz2
strace-88eafd81ab061ff217c0b56f02b07c16cbd29ff4.tar.xz
Improve perf_event_open argument decoding
* configure.ac (AC_CHECK_HEADERS): Add linux/perf_event.h. * desc.c [HAVE_LINUX_PERF_EVENT_H]: Include <linux/perf_event.h>. (perf_event_open_flags): New xlat structure. (sys_perf_event_open): New function. * linux/dummy.h (sys_perf_event_open): Remove. * linux/syscall.h (sys_perf_event_open): New prototype. Signed-off-by: Ben Noordhuis <info@bnoordhuis.nl> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Diffstat (limited to 'linux')
-rw-r--r--linux/dummy.h1
-rw-r--r--linux/syscall.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/linux/dummy.h b/linux/dummy.h
index ce340b9..182896e 100644
--- a/linux/dummy.h
+++ b/linux/dummy.h
@@ -39,7 +39,6 @@
#define sys_lookup_dcookie printargs
#define sys_name_to_handle_at printargs
#define sys_open_by_handle_at printargs
-#define sys_perf_event_open printargs
#define sys_request_key printargs
#define sys_sync_file_range printargs
#define sys_sysfs printargs
diff --git a/linux/syscall.h b/linux/syscall.h
index 7e0155e..81b4c69 100644
--- a/linux/syscall.h
+++ b/linux/syscall.h
@@ -163,6 +163,7 @@ int sys_oldselect();
int sys_oldstat();
int sys_open();
int sys_openat();
+int sys_perf_event_open();
int sys_personality();
int sys_pipe();
int sys_pipe2();