Support perf_event_open().
Merge pull request #174 from cgjones/perf_event_open

Support perf_event_open().