6 //#include <sys/syscall.h> /* For SYS_xxx definitions */
7 #include <asm/unistd.h>
14 void open_perf_fds(void)
16 struct syscallrecord
* sc
;
19 while (i
< MAX_PERF_FDS
) {
22 sanitise_perf_event_open(0);
23 sc
= &shm
->syscall
[0];
24 fd
= syscall(__NR_perf_event_open
, sc
->a1
, sc
->a2
, sc
->a3
, sc
->a4
, sc
->a5
);
26 shm
->perf_fds
[i
] = fd
;
27 output(2, "fd[%d] = perf\n", shm
->perf_fds
[i
]);