[PATCH openEuler-1.0-LTS 06/12] perf/core: Fix the same task check in perf_event_set_output