[PATCH 4.14 13/37] perf/core: Fix the same task check in perf_event_set_output