debuggers.hg

view xen/include/asm-x86/perfc_defn.h @ 16725:25771a7c2907

x86, hvm: Add a perf counter for CR0.WP=0 emulation.
Signed-off-by Kevin Tian <kevin.tian@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jan 08 09:57:59 2008 +0000 (2008-01-08)
parents fc8be8f3707b
children 03d13b696027
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(calls_to_update_va, "calls to update_va_map")
27 PERFCOUNTER(page_faults, "page faults")
28 PERFCOUNTER(copy_user_faults, "copy_user faults")
30 PERFCOUNTER(map_domain_page_count, "map_domain_page count")
31 PERFCOUNTER(ptwr_emulations, "writable pt emulations")
33 PERFCOUNTER(exception_fixed, "pre-exception fixed")
36 /* Shadow counters */
37 PERFCOUNTER(shadow_alloc, "calls to shadow_alloc")
38 PERFCOUNTER(shadow_alloc_tlbflush, "shadow_alloc flushed TLBs")
40 /* STATUS counters do not reset when 'P' is hit */
41 PERFSTATUS(shadow_alloc_count, "number of shadow pages in use")
42 PERFCOUNTER(shadow_free, "calls to shadow_free")
43 PERFCOUNTER(shadow_prealloc_1, "shadow recycles old shadows")
44 PERFCOUNTER(shadow_prealloc_2, "shadow recycles in-use shadows")
45 PERFCOUNTER(shadow_linear_map_failed, "shadow hit read-only linear map")
46 PERFCOUNTER(shadow_a_update, "shadow A bit update")
47 PERFCOUNTER(shadow_ad_update, "shadow A&D bit update")
48 PERFCOUNTER(shadow_fault, "calls to shadow_fault")
49 PERFCOUNTER(shadow_fault_fast_gnp, "shadow_fault fast path n/p")
50 PERFCOUNTER(shadow_fault_fast_mmio, "shadow_fault fast path mmio")
51 PERFCOUNTER(shadow_fault_fast_fail, "shadow_fault fast path error")
52 PERFCOUNTER(shadow_fault_bail_bad_gfn, "shadow_fault guest bad gfn")
53 PERFCOUNTER(shadow_fault_bail_real_fault,
54 "shadow_fault really guest fault")
55 PERFCOUNTER(shadow_fault_emulate_read, "shadow_fault emulates a read")
56 PERFCOUNTER(shadow_fault_emulate_write, "shadow_fault emulates a write")
57 PERFCOUNTER(shadow_fault_emulate_failed, "shadow_fault emulator fails")
58 PERFCOUNTER(shadow_fault_emulate_stack, "shadow_fault emulate stack write")
59 PERFCOUNTER(shadow_fault_emulate_wp, "shadow_fault emulate for CR0.WP=0")
60 PERFCOUNTER(shadow_fault_mmio, "shadow_fault handled as mmio")
61 PERFCOUNTER(shadow_fault_fixed, "shadow_fault fixed fault")
62 PERFCOUNTER(shadow_ptwr_emulate, "shadow causes ptwr to emulate")
63 PERFCOUNTER(shadow_validate_gl1e_calls, "calls to shadow_validate_gl1e")
64 PERFCOUNTER(shadow_validate_gl2e_calls, "calls to shadow_validate_gl2e")
65 PERFCOUNTER(shadow_validate_gl3e_calls, "calls to shadow_validate_gl3e")
66 PERFCOUNTER(shadow_validate_gl4e_calls, "calls to shadow_validate_gl4e")
67 PERFCOUNTER(shadow_hash_lookups, "calls to shadow_hash_lookup")
68 PERFCOUNTER(shadow_hash_lookup_head, "shadow hash hit in bucket head")
69 PERFCOUNTER(shadow_hash_lookup_miss, "shadow hash misses")
70 PERFCOUNTER(shadow_get_shadow_status, "calls to get_shadow_status")
71 PERFCOUNTER(shadow_hash_inserts, "calls to shadow_hash_insert")
72 PERFCOUNTER(shadow_hash_deletes, "calls to shadow_hash_delete")
73 PERFCOUNTER(shadow_writeable, "shadow removes write access")
74 PERFCOUNTER(shadow_writeable_h_1, "shadow writeable: 32b w2k3")
75 PERFCOUNTER(shadow_writeable_h_2, "shadow writeable: 32pae w2k3")
76 PERFCOUNTER(shadow_writeable_h_3, "shadow writeable: 64b w2k3")
77 PERFCOUNTER(shadow_writeable_h_4, "shadow writeable: 32b linux low")
78 PERFCOUNTER(shadow_writeable_h_5, "shadow writeable: 32b linux high")
79 PERFCOUNTER(shadow_writeable_bf, "shadow writeable brute-force")
80 PERFCOUNTER(shadow_mappings, "shadow removes all mappings")
81 PERFCOUNTER(shadow_mappings_bf, "shadow rm-mappings brute-force")
82 PERFCOUNTER(shadow_early_unshadow, "shadow unshadows for fork/exit")
83 PERFCOUNTER(shadow_unshadow, "shadow unshadows a page")
84 PERFCOUNTER(shadow_up_pointer, "shadow unshadow by up-pointer")
85 PERFCOUNTER(shadow_unshadow_bf, "shadow unshadow brute-force")
86 PERFCOUNTER(shadow_get_page_fail, "shadow_get_page_from_l1e failed")
87 PERFCOUNTER(shadow_guest_walk, "shadow walks guest tables")
88 PERFCOUNTER(shadow_invlpg, "shadow emulates invlpg")
89 PERFCOUNTER(shadow_invlpg_fault, "shadow invlpg faults")
91 PERFCOUNTER(shadow_em_ex_pt, "shadow extra pt write")
92 PERFCOUNTER(shadow_em_ex_non_pt, "shadow extra non-pt-write op")
93 PERFCOUNTER(shadow_em_ex_fail, "shadow extra emulation failed")
95 /*#endif*/ /* __XEN_PERFC_DEFN_H__ */