blob: 613ecb1581720a5ed09dab1434d776fc0cff8d74 [file] [log] [blame]
Dmitry V. Levin0d60cf72015-08-01 20:28:21 +00001#include "defs.h"
2
3#ifdef HAVE_LINUX_PERF_EVENT_H
4# include <linux/perf_event.h>
5#endif
6
7#include "xlat/perf_event_open_flags.h"
8
9SYS_FUNC(perf_event_open)
10{
11 printaddr(tcp->u_arg[0]);
12 tprintf(", %d, %d, %d, ",
13 (int) tcp->u_arg[1],
14 (int) tcp->u_arg[2],
15 (int) tcp->u_arg[3]);
16 printflags(perf_event_open_flags, tcp->u_arg[4], "PERF_FLAG_???");
17
Dmitry V. Levin57823c62015-08-03 09:06:59 +000018 return RVAL_DECODED | RVAL_FD;
Dmitry V. Levin0d60cf72015-08-01 20:28:21 +000019}