#ifdef HAVE_SYS_EPOLL_H
# include <sys/epoll.h>
#endif
-#ifdef HAVE_LINUX_PERF_EVENT_H
-# include <linux/perf_event.h>
-#endif
#include "xlat/fcntlcmds.h"
#include "xlat/fdflags.h"
#include "xlat/flockcmds.h"
#include "xlat/lockfcmds.h"
#include "xlat/notifyflags.h"
-#include "xlat/perf_event_open_flags.h"
/*
* Assume that F_SETLK64, F_SETLKW64, and F_GETLK64 are either defined
{
return do_eventfd(tcp, 1);
}
-
-SYS_FUNC(perf_event_open)
-{
- printaddr(tcp->u_arg[0]);
- tprintf(", %d, %d, %d, ",
- (int) tcp->u_arg[1],
- (int) tcp->u_arg[2],
- (int) tcp->u_arg[3]);
- printflags(perf_event_open_flags, tcp->u_arg[4],
- "PERF_FLAG_???");
-
- return RVAL_DECODED;
-}
--- /dev/null
+#include "defs.h"
+
+#ifdef HAVE_LINUX_PERF_EVENT_H
+# include <linux/perf_event.h>
+#endif
+
+#include "xlat/perf_event_open_flags.h"
+
+SYS_FUNC(perf_event_open)
+{
+ printaddr(tcp->u_arg[0]);
+ tprintf(", %d, %d, %d, ",
+ (int) tcp->u_arg[1],
+ (int) tcp->u_arg[2],
+ (int) tcp->u_arg[3]);
+ printflags(perf_event_open_flags, tcp->u_arg[4], "PERF_FLAG_???");
+
+ return RVAL_DECODED;
+}