[PATCH openEuler-1.0-LTS v4 061/292] Intel: perf/core: Add function to test for event exclusion flags