mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
x86/traps: Collect PERFC_exceptions stats for IST vectors too
This causes NMIs, #DB and #MC to be counted, rather than being reported as 0. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
8969d58404
commit
d9f60a924c
1 file changed
+7
@@ -1005,6 +1005,13 @@ handle_ist_exception:
|
||||
#endif
|
||||
movq %rsp,%rdi
|
||||
movzbl UREGS_entry_vector(%rsp),%eax
|
||||
|
||||
#ifdef CONFIG_PERF_COUNTERS
|
||||
lea per_cpu__perfcounters(%rip), %rcx
|
||||
add STACK_CPUINFO_FIELD(per_cpu_offset)(%r14), %rcx
|
||||
incl ASM_PERFC_exceptions * 4(%rcx, %rax, 4)
|
||||
#endif
|
||||
|
||||
leaq exception_table(%rip),%rdx
|
||||
mov (%rdx, %rax, 8), %rdx
|
||||
INDIRECT_CALL %rdx
|
||||
|
||||