[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86/mm: introduce trace point for mmio_ro emulation
commit 38ac6fa969a43ca993e610deae8976f9f2877fbb Author: Wei Liu <wei.liu2@xxxxxxxxxx> AuthorDate: Wed Aug 30 18:11:10 2017 +0100 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Thu Aug 31 09:41:44 2017 +0100 x86/mm: introduce trace point for mmio_ro emulation Using ptrw_emulation trace point is wrong. Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/arch/x86/mm.c | 2 +- xen/include/asm-x86/perfc_defn.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index 9aff58a..f4b9747 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -5405,7 +5405,7 @@ int mmio_ro_do_page_fault(struct vcpu *v, unsigned long addr, /* Fallthrough */ case X86EMUL_RETRY: - perfc_incr(ptwr_emulations); + perfc_incr(mmio_ro_emulations); return EXCRET_fault_fixed; } diff --git a/xen/include/asm-x86/perfc_defn.h b/xen/include/asm-x86/perfc_defn.h index aac9331..6db8746 100644 --- a/xen/include/asm-x86/perfc_defn.h +++ b/xen/include/asm-x86/perfc_defn.h @@ -30,6 +30,7 @@ PERFCOUNTER(copy_user_faults, "copy_user faults") PERFCOUNTER(map_domain_page_count, "map_domain_page count") PERFCOUNTER(ptwr_emulations, "writable pt emulations") +PERFCOUNTER(mmio_ro_emulations, "mmio ro emulations") PERFCOUNTER(exception_fixed, "pre-exception fixed") -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |