perf/core: Move set_filter() out of CONFIG_EVENT_TRACING