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