Support perf_event_open().