[PATCH AUTOSEL 6.18-6.1] perf/x86/amd: Check event before enable to avoid GPF