diff options
author | mafetter@fleming.research <mafetter@fleming.research> | 2005-03-18 17:01:47 +0000 |
---|---|---|
committer | mafetter@fleming.research <mafetter@fleming.research> | 2005-03-18 17:01:47 +0000 |
commit | c6747f73fd6453561c9d7f3d39b6ed184716b352 (patch) | |
tree | 9d66eebe520403768a10045da92a92d94db1b769 /xen/arch/x86/extable.c | |
parent | 80a9af642f279463e302bf0b30dbbc25472a0b25 (diff) | |
download | xen-c6747f73fd6453561c9d7f3d39b6ed184716b352.tar.gz xen-c6747f73fd6453561c9d7f3d39b6ed184716b352.tar.bz2 xen-c6747f73fd6453561c9d7f3d39b6ed184716b352.zip |
bitkeeper revision 1.1236.32.11 (423b097bvEBDPFFtDR44bf9tw_JCqg)
dom0 runs well in shadow translate mode!
Signed-off-by: michael.fetterman@cl.cam.ac.uk
Diffstat (limited to 'xen/arch/x86/extable.c')
-rw-r--r-- | xen/arch/x86/extable.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xen/arch/x86/extable.c b/xen/arch/x86/extable.c index 8a0c0b81db..3aaeb4a2b2 100644 --- a/xen/arch/x86/extable.c +++ b/xen/arch/x86/extable.c @@ -3,6 +3,11 @@ #include <xen/spinlock.h> #include <asm/uaccess.h> +#ifdef PERF_COUNTERS +#include <xen/sched.h> +#include <xen/perfc.h> +#endif + extern struct exception_table_entry __start___ex_table[]; extern struct exception_table_entry __stop___ex_table[]; extern struct exception_table_entry __start___pre_ex_table[]; @@ -69,5 +74,9 @@ search_pre_exception_table(struct xen_regs *regs) unsigned long fixup = search_one_table( __start___pre_ex_table, __stop___pre_ex_table-1, addr); DPRINTK("Pre-exception: %p -> %p\n", addr, fixup); +#ifdef PERF_COUNTERS + if ( fixup ) + perfc_incrc(exception_fixed); +#endif return fixup; } |