ia64/xen-unstable

view xen/include/xen/perfc_defn.h @ 3894:ba1a314ce815

bitkeeper revision 1.1230.4.1 (421b7d70g_kPPMvAgkUMMU-R8G4RrA)

add perfcounters for pagetable update histograms

Signed-off-by: michael.fetterman@cl.cam.ac.uk
author rneugeba@wyvis.research.intel-research.net
date Tue Feb 22 18:44:00 2005 +0000 (2005-02-22)
parents c858d3b58040
children b57a97bb65bd
line source
2 PERFCOUNTER_CPU (seg_fixups, "segmentation fixups" )
4 PERFCOUNTER_CPU( irqs, "#interrupts" )
5 PERFCOUNTER_CPU( ipis, "#IPIs" )
6 PERFCOUNTER_CPU( irq_time, "cycles spent in irq handler" )
8 PERFCOUNTER_CPU( apic_timer, "apic timer interrupts" )
9 PERFCOUNTER_CPU( ac_timer_max, "ac_timer max error (ns)" )
10 PERFCOUNTER_CPU( sched_irq, "sched: timer" )
11 PERFCOUNTER_CPU( sched_run, "sched: runs through scheduler" )
12 PERFCOUNTER_CPU( sched_ctx, "sched: context switches" )
14 PERFCOUNTER_CPU( domain_page_tlb_flush, "domain page tlb flushes" )
15 PERFCOUNTER_CPU( need_flush_tlb_flush, "PG_need_flush tlb flushes" )
17 PERFCOUNTER_CPU( calls_to_mmu_update, "calls_to_mmu_update" )
18 PERFCOUNTER_CPU( num_page_updates, "num_page_updates" )
19 PERFCOUNTER_CPU( calls_to_update_va, "calls_to_update_va_map" )
20 PERFCOUNTER_CPU( page_faults, "page faults" )
21 PERFCOUNTER_CPU( copy_user_faults, "copy_user faults" )
22 PERFCOUNTER_CPU( map_domain_mem_count, "map_domain_mem count" )
24 PERFCOUNTER_CPU( shadow_l2_table_count, "shadow_l2_table count" )
25 PERFCOUNTER_CPU( shadow_l1_table_count, "shadow_l1_table count" )
26 PERFCOUNTER_CPU( unshadow_table_count, "unshadow_table count" )
27 PERFCOUNTER_CPU( shadow_fixup_count, "shadow_fixup count" )
28 PERFCOUNTER_CPU( shadow_update_va_fail1, "shadow_update_va_fail1" )
29 PERFCOUNTER_CPU( shadow_update_va_fail2, "shadow_update_va_fail2" )
31 /* STATUS counters do not reset when 'P' is hit */
32 PERFSTATUS( shadow_l2_pages, "current # shadow L2 pages" )
33 PERFSTATUS( shadow_l1_pages, "current # shadow L1 pages" )
35 PERFCOUNTER_CPU( check_pagetable, "calls to check_pagetable" )
36 PERFCOUNTER_CPU( check_all_pagetables, "calls to check_all_pagetables" )
38 /* XXX constant from dom0_ops.h */
39 #define PERFC_MAX_PT_UPDATES 64
40 #define PERFC_PT_UPDATES_BUCKET_SIZE 3
41 PERFCOUNTER_ARRAY( wpt_updates, "writable pt updates", PERFC_MAX_PT_UPDATES )
42 PERFCOUNTER_ARRAY( bpt_updates, "batched pt updates", PERFC_MAX_PT_UPDATES )
45 #define VMX_PERF_EXIT_REASON_SIZE 37
46 #define VMX_PERF_VECTOR_SIZE 0x20
47 PERFCOUNTER_ARRAY( vmexits, "vmexits", VMX_PERF_EXIT_REASON_SIZE )
48 PERFCOUNTER_ARRAY( cause_vector, "cause vector", VMX_PERF_VECTOR_SIZE )