PERF_SECURITY_OPEN
err = security_perf_event_open(PERF_SECURITY_OPEN);
if (type == PERF_SECURITY_OPEN)