Skip to content

Commit 4787eff

Browse files
Pu Wenacmel
authored andcommitted
perf tools: Add Hygon Dhyana support
The tool perf is useful for the performance analysis on the Hygon Dhyana platform. But right now there is no Hygon support for it to analyze the KVM guest os data. So add Hygon Dhyana support to it by checking vendor string to share the code path of AMD. Signed-off-by: Pu Wen <[email protected]> Acked-by: Borislav Petkov <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 231457e commit 4787eff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/perf/arch/x86/util/kvm-stat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ int cpu_isa_init(struct perf_kvm_stat *kvm, const char *cpuid)
156156
if (strstr(cpuid, "Intel")) {
157157
kvm->exit_reasons = vmx_exit_reasons;
158158
kvm->exit_reasons_isa = "VMX";
159-
} else if (strstr(cpuid, "AMD")) {
159+
} else if (strstr(cpuid, "AMD") || strstr(cpuid, "Hygon")) {
160160
kvm->exit_reasons = svm_exit_reasons;
161161
kvm->exit_reasons_isa = "SVM";
162162
} else

0 commit comments

Comments
 (0)