ia64/xen-unstable

view xen/include/xen/perfc_defn.h @ 6552:a9873d384da4

Merge.
author adsharma@los-vmm.sc.intel.com
date Thu Aug 25 12:24:48 2005 -0700 (2005-08-25)
parents 112d44270733 fa0754a9f64f
children dfaf788ab18c
line source
1 /* This file is legitimately included multiple times. */
2 /*#ifndef __XEN_PERFC_DEFN_H__*/
3 /*#define __XEN_PERFC_DEFN_H__*/
5 #define PERFC_MAX_PT_UPDATES 64
6 #define PERFC_PT_UPDATES_BUCKET_SIZE 3
7 PERFCOUNTER_ARRAY(wpt_updates, "writable pt updates",
8 PERFC_MAX_PT_UPDATES)
9 PERFCOUNTER_ARRAY(bpt_updates, "batched pt updates",
10 PERFC_MAX_PT_UPDATES)
11 PERFCOUNTER_ARRAY(l1_entries_checked, "l1 entries checked",
12 PERFC_MAX_PT_UPDATES)
13 PERFCOUNTER_ARRAY(shm_l2_updates, "shadow mode L2 pt updates",
14 PERFC_MAX_PT_UPDATES)
15 PERFCOUNTER_ARRAY(shm_hl2_updates, "shadow mode HL2 pt updates",
16 PERFC_MAX_PT_UPDATES)
17 PERFCOUNTER_ARRAY(snapshot_copies, "entries copied per snapshot",
18 PERFC_MAX_PT_UPDATES)
20 PERFCOUNTER_ARRAY(hypercalls, "hypercalls", NR_hypercalls)
21 PERFCOUNTER_ARRAY(exceptions, "exceptions", 32)
23 #define VMX_PERF_EXIT_REASON_SIZE 37
24 #define VMX_PERF_VECTOR_SIZE 0x20
25 PERFCOUNTER_ARRAY(vmexits, "vmexits", VMX_PERF_EXIT_REASON_SIZE)
26 PERFCOUNTER_ARRAY(cause_vector, "cause vector", VMX_PERF_VECTOR_SIZE)
28 PERFCOUNTER_CPU(seg_fixups, "segmentation fixups")
30 PERFCOUNTER_CPU(irqs, "#interrupts")
31 PERFCOUNTER_CPU(ipis, "#IPIs")
32 PERFCOUNTER_CPU(irq_time, "cycles spent in irq handler")
34 PERFCOUNTER_CPU(apic_timer, "apic timer interrupts")
35 PERFCOUNTER_CPU(ac_timer_max, "ac_timer max error (ns)")
36 PERFCOUNTER_CPU(sched_irq, "sched: timer")
37 PERFCOUNTER_CPU(sched_run, "sched: runs through scheduler")
38 PERFCOUNTER_CPU(sched_ctx, "sched: context switches")
40 PERFCOUNTER_CPU(domain_page_tlb_flush, "domain page tlb flushes")
41 PERFCOUNTER_CPU(need_flush_tlb_flush, "PG_need_flush tlb flushes")
43 PERFCOUNTER_CPU(calls_to_mmu_update, "calls_to_mmu_update")
44 PERFCOUNTER_CPU(num_page_updates, "num_page_updates")
45 PERFCOUNTER_CPU(calls_to_update_va, "calls_to_update_va_map")
46 PERFCOUNTER_CPU(page_faults, "page faults")
47 PERFCOUNTER_CPU(copy_user_faults, "copy_user faults")
49 PERFCOUNTER_CPU(shadow_fault_calls, "calls to shadow_fault")
50 PERFCOUNTER_CPU(shadow_fault_bail_pde_not_present,
51 "sf bailed due to pde not present")
52 PERFCOUNTER_CPU(shadow_fault_bail_pte_not_present,
53 "sf bailed due to pte not present")
54 PERFCOUNTER_CPU(shadow_fault_bail_ro_mapping,
55 "sf bailed due to a ro mapping")
56 PERFCOUNTER_CPU(shadow_fault_fixed, "sf fixed the pgfault")
57 PERFCOUNTER_CPU(write_fault_bail, "sf bailed due to write_fault")
58 PERFCOUNTER_CPU(read_fault_bail, "sf bailed due to read_fault")
60 PERFCOUNTER_CPU(map_domain_page_count, "map_domain_page count")
61 PERFCOUNTER_CPU(ptwr_emulations, "writable pt emulations")
63 PERFCOUNTER_CPU(shadow_l2_table_count, "shadow_l2_table count")
64 PERFCOUNTER_CPU(shadow_l1_table_count, "shadow_l1_table count")
65 PERFCOUNTER_CPU(unshadow_table_count, "unshadow_table count")
66 PERFCOUNTER_CPU(shadow_fixup_count, "shadow_fixup count")
67 PERFCOUNTER_CPU(shadow_update_va_fail1, "shadow_update_va_fail1")
68 PERFCOUNTER_CPU(shadow_update_va_fail2, "shadow_update_va_fail2")
70 /* STATUS counters do not reset when 'P' is hit */
71 PERFSTATUS(shadow_l2_pages, "current # shadow L2 pages")
72 PERFSTATUS(shadow_l1_pages, "current # shadow L1 pages")
73 PERFSTATUS(hl2_table_pages, "current # hl2 pages")
74 PERFSTATUS(snapshot_pages, "current # fshadow snapshot pages")
75 PERFSTATUS(writable_pte_predictions, "# writable pte predictions")
76 PERFSTATUS(free_l1_pages, "current # free shadow L1 pages")
78 PERFCOUNTER_CPU(check_pagetable, "calls to check_pagetable")
79 PERFCOUNTER_CPU(check_all_pagetables, "calls to check_all_pagetables")
81 PERFCOUNTER_CPU(shadow_hl2_table_count, "shadow_hl2_table count")
82 PERFCOUNTER_CPU(shadow_set_l1e_force_map, "shadow_set_l1e forced to map l1")
83 PERFCOUNTER_CPU(shadow_set_l1e_unlinked, "shadow_set_l1e found unlinked l1")
84 PERFCOUNTER_CPU(shadow_set_l1e_fail, "shadow_set_l1e failed (no sl1)")
85 PERFCOUNTER_CPU(shadow_invlpg_faults, "shadow_invlpg's get_user faulted")
86 PERFCOUNTER_CPU(unshadow_l2_count, "unpinned L2 count")
88 PERFCOUNTER_CPU(shadow_status_shortcut, "fastpath miss on shadow cache")
89 PERFCOUNTER_CPU(shadow_status_calls, "calls to ___shadow_status")
90 PERFCOUNTER_CPU(shadow_status_miss, "missed shadow cache")
91 PERFCOUNTER_CPU(shadow_status_hit_head, "hits on head of bucket")
92 PERFCOUNTER_CPU(shadow_max_type, "calls to shadow_max_type")
94 PERFCOUNTER_CPU(shadow_sync_all, "calls to shadow_sync_all")
95 PERFCOUNTER_CPU(shadow_sync_va, "calls to shadow_sync_va")
96 PERFCOUNTER_CPU(resync_l1, "resync L1 page")
97 PERFCOUNTER_CPU(resync_l2, "resync L2 page")
98 PERFCOUNTER_CPU(resync_hl2, "resync HL2 page")
99 PERFCOUNTER_CPU(shadow_make_snapshot, "snapshots created")
100 PERFCOUNTER_CPU(shadow_mark_mfn_out_of_sync_calls,
101 "calls to shadow_mk_out_of_sync")
102 PERFCOUNTER_CPU(shadow_out_of_sync_calls, "calls to shadow_out_of_sync")
103 PERFCOUNTER_CPU(snapshot_entry_matches_calls, "calls to ss_entry_matches")
104 PERFCOUNTER_CPU(snapshot_entry_matches_true, "ss_entry_matches returns true")
106 PERFCOUNTER_CPU(validate_pte_calls, "calls to validate_pte_change")
107 PERFCOUNTER_CPU(validate_pte_changes1, "validate_pte makes changes1")
108 PERFCOUNTER_CPU(validate_pte_changes2, "validate_pte makes changes2")
109 PERFCOUNTER_CPU(validate_pte_changes3, "validate_pte makes changes3")
110 PERFCOUNTER_CPU(validate_pte_changes4, "validate_pte makes changes4")
111 PERFCOUNTER_CPU(validate_pde_calls, "calls to validate_pde_change")
112 PERFCOUNTER_CPU(validate_pde_changes, "validate_pde makes changes")
113 PERFCOUNTER_CPU(shadow_get_page_fail, "shadow_get_page_from_l1e fails")
114 PERFCOUNTER_CPU(validate_hl2e_calls, "calls to validate_hl2e_change")
115 PERFCOUNTER_CPU(validate_hl2e_changes, "validate_hl2e makes changes")
116 PERFCOUNTER_CPU(exception_fixed, "pre-exception fixed")
117 PERFCOUNTER_CPU(gpfn_to_mfn_foreign, "calls to gpfn_to_mfn_foreign")
118 PERFCOUNTER_CPU(remove_all_access, "calls to remove_all_access")
119 PERFCOUNTER_CPU(remove_write_access, "calls to remove_write_access")
120 PERFCOUNTER_CPU(remove_write_access_easy, "easy outs of remove_write_access")
121 PERFCOUNTER_CPU(remove_write_no_work, "no work in remove_write_access")
122 PERFCOUNTER_CPU(remove_write_not_writable, "remove_write non-writable page")
123 PERFCOUNTER_CPU(remove_write_fast_exit, "remove_write hit predicted entry")
124 PERFCOUNTER_CPU(remove_write_predicted, "remove_write predict hit&exit")
125 PERFCOUNTER_CPU(remove_write_bad_prediction, "remove_write bad prediction")
126 PERFCOUNTER_CPU(update_hl2e_invlpg, "update_hl2e calls invlpg")
128 /*#endif*/ /* __XEN_PERFC_DEFN_H__ */