__perf_effective_state
if (__perf_effective_state(event) == PERF_EVENT_STATE_OFF &&
enum perf_event_state state = __perf_effective_state(event);