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