perf tools: Add Hygon Dhyana support
[GitHub/moto-9609/android_kernel_motorola_exynos9610.git] / tools / perf / arch / x86 / util / kvm-stat.c
index bf817beca0a822f498efa88ff64089319c2a27a3..081353d7b095c873c23d973732e2c363da9c4835 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 #include <errno.h>
 #include "../../util/kvm-stat.h"
 #include <asm/svm.h>
@@ -155,7 +156,7 @@ int cpu_isa_init(struct perf_kvm_stat *kvm, const char *cpuid)
        if (strstr(cpuid, "Intel")) {
                kvm->exit_reasons = vmx_exit_reasons;
                kvm->exit_reasons_isa = "VMX";
-       } else if (strstr(cpuid, "AMD")) {
+       } else if (strstr(cpuid, "AMD") || strstr(cpuid, "Hygon")) {
                kvm->exit_reasons = svm_exit_reasons;
                kvm->exit_reasons_isa = "SVM";
        } else