ia64/xen-unstable

view xen/include/asm-x86/perfc_defn.h @ 17844:882eb6186c2d

x86: add perf counter for pointless updates of writable pages through a hypercall
Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 12 16:11:39 2008 +0100 (2008-06-12)
parents 58e07771d455
children 597058a3b619
line source
1 /* This file is legitimately included multiple times. */
2 /*#ifndef __XEN_PERFC_DEFN_H__*/
3 /*#define __XEN_PERFC_DEFN_H__*/
5 PERFCOUNTER_ARRAY(exceptions, "exceptions", 32)
7 #define VMX_PERF_EXIT_REASON_SIZE 44
8 #define VMX_PERF_VECTOR_SIZE 0x20
9 PERFCOUNTER_ARRAY(vmexits, "vmexits", VMX_PERF_EXIT_REASON_SIZE)
10 PERFCOUNTER_ARRAY(cause_vector, "cause vector", VMX_PERF_VECTOR_SIZE)
12 #define VMEXIT_NPF_PERFC 141
13 #define SVM_PERF_EXIT_REASON_SIZE (1+141)
14 PERFCOUNTER_ARRAY(svmexits, "SVMexits", SVM_PERF_EXIT_REASON_SIZE)
16 PERFCOUNTER(seg_fixups, "segmentation fixups")
18 PERFCOUNTER(apic_timer, "apic timer interrupts")
20 PERFCOUNTER(domain_page_tlb_flush, "domain page tlb flushes")
22 PERFCOUNTER(calls_to_mmuext_op, "calls to mmuext_op")
23 PERFCOUNTER(num_mmuext_ops, "mmuext ops")
24 PERFCOUNTER(calls_to_mmu_update, "calls to mmu_update")
25 PERFCOUNTER(num_page_updates, "page updates")
26 PERFCOUNTER(writable_mmu_updates, "mmu_updates of writable pages")
27 PERFCOUNTER(calls_to_update_va, "calls to update_va_map")
28 PERFCOUNTER(page_faults, "page faults")
29 PERFCOUNTER(copy_user_faults, "copy_user faults")
31 PERFCOUNTER(map_domain_page_count, "map_domain_page count")
32 PERFCOUNTER(ptwr_emulations, "writable pt emulations")
34 PERFCOUNTER(exception_fixed, "pre-exception fixed")
37 /* Shadow counters */
38 PERFCOUNTER(shadow_alloc, "calls to shadow_alloc")
39 PERFCOUNTER(shadow_alloc_tlbflush, "shadow_alloc flushed TLBs")
41 /* STATUS counters do not reset when 'P' is hit */
42 PERFSTATUS(shadow_alloc_count, "number of shadow pages in use")
43 PERFCOUNTER(shadow_free, "calls to shadow_free")
44 PERFCOUNTER(shadow_prealloc_1, "shadow recycles old shadows")
45 PERFCOUNTER(shadow_prealloc_2, "shadow recycles in-use shadows")
46 PERFCOUNTER(shadow_linear_map_failed, "shadow hit read-only linear map")
47 PERFCOUNTER(shadow_a_update, "shadow A bit update")
48 PERFCOUNTER(shadow_ad_update, "shadow A&D bit update")
49 PERFCOUNTER(shadow_fault, "calls to shadow_fault")
50 PERFCOUNTER(shadow_fault_fast_gnp, "shadow_fault fast path n/p")
51 PERFCOUNTER(shadow_fault_fast_mmio, "shadow_fault fast path mmio")
52 PERFCOUNTER(shadow_fault_fast_fail, "shadow_fault fast path error")
53 PERFCOUNTER(shadow_fault_bail_bad_gfn, "shadow_fault guest bad gfn")
54 PERFCOUNTER(shadow_fault_bail_real_fault,
55 "shadow_fault really guest fault")
56 PERFCOUNTER(shadow_fault_emulate_read, "shadow_fault emulates a read")
57 PERFCOUNTER(shadow_fault_emulate_write, "shadow_fault emulates a write")
58 PERFCOUNTER(shadow_fault_emulate_failed, "shadow_fault emulator fails")
59 PERFCOUNTER(shadow_fault_emulate_stack, "shadow_fault emulate stack write")
60 PERFCOUNTER(shadow_fault_emulate_wp, "shadow_fault emulate for CR0.WP=0")
61 PERFCOUNTER(shadow_fault_fast_emulate, "shadow_fault fast emulate")
62 PERFCOUNTER(shadow_fault_fast_emulate_fail,
63 "shadow_fault fast emulate failed")
64 PERFCOUNTER(shadow_fault_mmio, "shadow_fault handled as mmio")
65 PERFCOUNTER(shadow_fault_fixed, "shadow_fault fixed fault")
66 PERFCOUNTER(shadow_ptwr_emulate, "shadow causes ptwr to emulate")
67 PERFCOUNTER(shadow_validate_gl1e_calls, "calls to shadow_validate_gl1e")
68 PERFCOUNTER(shadow_validate_gl2e_calls, "calls to shadow_validate_gl2e")
69 PERFCOUNTER(shadow_validate_gl3e_calls, "calls to shadow_validate_gl3e")
70 PERFCOUNTER(shadow_validate_gl4e_calls, "calls to shadow_validate_gl4e")
71 PERFCOUNTER(shadow_hash_lookups, "calls to shadow_hash_lookup")
72 PERFCOUNTER(shadow_hash_lookup_head, "shadow hash hit in bucket head")
73 PERFCOUNTER(shadow_hash_lookup_miss, "shadow hash misses")
74 PERFCOUNTER(shadow_get_shadow_status, "calls to get_shadow_status")
75 PERFCOUNTER(shadow_hash_inserts, "calls to shadow_hash_insert")
76 PERFCOUNTER(shadow_hash_deletes, "calls to shadow_hash_delete")
77 PERFCOUNTER(shadow_writeable, "shadow removes write access")
78 PERFCOUNTER(shadow_writeable_h_1, "shadow writeable: 32b w2k3")
79 PERFCOUNTER(shadow_writeable_h_2, "shadow writeable: 32pae w2k3")
80 PERFCOUNTER(shadow_writeable_h_3, "shadow writeable: 64b w2k3")
81 PERFCOUNTER(shadow_writeable_h_4, "shadow writeable: linux low/solaris")
82 PERFCOUNTER(shadow_writeable_h_5, "shadow writeable: linux high")
83 PERFCOUNTER(shadow_writeable_bf, "shadow writeable brute-force")
84 PERFCOUNTER(shadow_mappings, "shadow removes all mappings")
85 PERFCOUNTER(shadow_mappings_bf, "shadow rm-mappings brute-force")
86 PERFCOUNTER(shadow_early_unshadow, "shadow unshadows for fork/exit")
87 PERFCOUNTER(shadow_unshadow, "shadow unshadows a page")
88 PERFCOUNTER(shadow_up_pointer, "shadow unshadow by up-pointer")
89 PERFCOUNTER(shadow_unshadow_bf, "shadow unshadow brute-force")
90 PERFCOUNTER(shadow_get_page_fail, "shadow_get_page_from_l1e failed")
91 PERFCOUNTER(shadow_guest_walk, "shadow walks guest tables")
92 PERFCOUNTER(shadow_check_gwalk, "shadow checks gwalk")
93 PERFCOUNTER(shadow_inconsistent_gwalk, "shadow check inconsistent gwalk")
94 PERFCOUNTER(shadow_rm_write_flush_tlb,
95 "shadow flush tlb by removing write perm")
97 PERFCOUNTER(shadow_invlpg, "shadow emulates invlpg")
98 PERFCOUNTER(shadow_invlpg_fault, "shadow invlpg faults")
100 PERFCOUNTER(shadow_em_ex_pt, "shadow extra pt write")
101 PERFCOUNTER(shadow_em_ex_non_pt, "shadow extra non-pt-write op")
102 PERFCOUNTER(shadow_em_ex_fail, "shadow extra emulation failed")
104 /*#endif*/ /* __XEN_PERFC_DEFN_H__ */