# HG changeset patch # User gingold@virtu10 # Node ID f353f99397732f9f229abc430ad5da096b1c3b6f # Parent c3e20511c74508c78b4b15e4c3f94f84ce1c3c40 Provides hooks for perfc print/reset/gather. These arch-neutral hooks allow architectures to report hardware counters. Signed-off-by: Tristan Gingold diff -r c3e20511c745 -r f353f9939773 xen/common/perfc.c --- a/xen/common/perfc.c Fri Aug 04 09:32:00 2006 -0600 +++ b/xen/common/perfc.c Mon Aug 07 06:37:21 2006 +0200 @@ -8,6 +8,7 @@ #include #include #include +#include #undef PERFCOUNTER #undef PERFCOUNTER_CPU @@ -89,9 +90,7 @@ void perfc_printall(unsigned char key) printk("\n"); } -#ifdef PERF_ARRAYS - ptwr_eip_stat_print(); -#endif + arch_perfc_printall(); } void perfc_reset(unsigned char key) @@ -130,9 +129,7 @@ void perfc_reset(unsigned char key) } } -#ifdef PERF_ARRAYS - ptwr_eip_stat_reset(); -#endif + arch_perfc_reset (); } static dom0_perfc_desc_t perfc_d[NR_PERFCTRS];