test: perf_event_open: Fix test program

Change-Id: Ie5af8fb3ab7452078f2c35ec14c6369d86eedec3
This commit is contained in:
Masamichi Takagi
2019-03-29 05:34:44 +00:00
committed by Dominique Martinet
parent dfb3bef96d
commit 2cee82673b
3 changed files with 17 additions and 15 deletions

View File

@@ -4,6 +4,7 @@
#include <sys/ioctl.h>
#include <linux/perf_event.h>
#include <asm/unistd.h>
#include <unistd.h>
extern long perf_event_open(struct perf_event_attr *hw_event, pid_t pid,
int cpu, int group_fd, unsigned long flags);