perf_event_open
On success, perf_event_open() returns the new file descriptor. On error, -1 is returned and errno is set to indicate the error.