summaryrefslogtreecommitdiffstats
path: root/tapset/aux_syscalls.stp
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2010-03-19 23:19:19 +0100
committerMark Wielaard <mjw@redhat.com>2010-03-21 17:34:41 +0100
commit41877d526c4c864aa851bed5d405d6d197c0b39b (patch)
tree6af3702ed0f231d0c547a5bbe7f7458af90954e2 /tapset/aux_syscalls.stp
parent08ee70c354131edccb0d1a73aa67abb9c65870fc (diff)
downloadsystemtap-steved-41877d526c4c864aa851bed5d405d6d197c0b39b.tar.gz
systemtap-steved-41877d526c4c864aa851bed5d405d6d197c0b39b.tar.xz
systemtap-steved-41877d526c4c864aa851bed5d405d6d197c0b39b.zip
Support epoll_create1 syscall.
* tapset/aux_syscalls.stp (_epoll_create1_flag_str): New helper function. * tapset/syscalls.stp (syscall.epoll_create[.return]): Match epoll_creat1 if available.
Diffstat (limited to 'tapset/aux_syscalls.stp')
-rw-r--r--tapset/aux_syscalls.stp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tapset/aux_syscalls.stp b/tapset/aux_syscalls.stp
index 84342448..c101ae19 100644
--- a/tapset/aux_syscalls.stp
+++ b/tapset/aux_syscalls.stp
@@ -1632,6 +1632,16 @@ function _at_flag_str:string(f:long)
_stp_lookup_str(_stp_atflag_list, THIS->f, THIS->__retvalue, MAXSTRINGLEN);
%}
+%{
+#include <linux/eventpoll.h>
+%}
+function _epoll_create1_flag_str:string(f:long)
+%{ /* pure */
+#ifdef EPOLL_CLOEXEC
+ if (THIS->f == EPOLL_CLOEXEC)
+ strlcpy (THIS->__retvalue, "EPOLL_CLOEXEC", MAXSTRINGLEN);
+#endif
+%}
%{
#include <linux/shm.h>