[PATCH 6.18 012/430] perf/x86/amd: Check event before enable to avoid GPF