From 385db74dc436e4ab6c72e0e59a3fd7524269c58c Mon Sep 17 00:00:00 2001 From: Gautam Menghani Date: Mon, 18 May 2026 18:20:38 +0530 Subject: [PATCH] perf kvm stat: Add missing mappings for PPC kvm exit reasons The macro kvm_trace_symbol_exit is used for providing the mappings for the exit trap vectors and their names. Add mappings for H_FAC_UNAVAIL and H_VIRT so that exit reasons are displayed as string instead of vector numbers when using perf kvm stat. Signed-off-by: Gautam Menghani Signed-off-by: Namhyung Kim --- tools/perf/util/kvm-stat-arch/book3s_hv_exits.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/kvm-stat-arch/book3s_hv_exits.h b/tools/perf/util/kvm-stat-arch/book3s_hv_exits.h index 2011376c7ab5..2688ca7d0399 100644 --- a/tools/perf/util/kvm-stat-arch/book3s_hv_exits.h +++ b/tools/perf/util/kvm-stat-arch/book3s_hv_exits.h @@ -26,8 +26,10 @@ {0xe00, "H_DATA_STORAGE"}, \ {0xe20, "H_INST_STORAGE"}, \ {0xe40, "H_EMUL_ASSIST"}, \ + {0xea0, "H_VIRT"}, \ {0xf00, "PERFMON"}, \ {0xf20, "ALTIVEC"}, \ - {0xf40, "VSX"} + {0xf40, "VSX"}, \ + {0xf80, "H_FAC_UNAVAIL"} #endif