source: trunk/packages/xen-common/xen-common/xen/include/asm-x86/perfc_defn.h @ 34

Last change on this file since 34 was 34, checked in by hartmans, 17 years ago

Add xen and xen-common

File size: 4.9 KB
Line 
1/* This file is legitimately included multiple times. */
2/*#ifndef __XEN_PERFC_DEFN_H__*/
3/*#define __XEN_PERFC_DEFN_H__*/
4
5PERFCOUNTER_ARRAY(exceptions,           "exceptions", 32)
6
7#define VMX_PERF_EXIT_REASON_SIZE 44
8#define VMX_PERF_VECTOR_SIZE 0x20
9PERFCOUNTER_ARRAY(vmexits,              "vmexits", VMX_PERF_EXIT_REASON_SIZE)
10PERFCOUNTER_ARRAY(cause_vector,         "cause vector", VMX_PERF_VECTOR_SIZE)
11
12#define SVM_PERF_EXIT_REASON_SIZE (1+136)
13PERFCOUNTER_ARRAY(svmexits,             "SVMexits", SVM_PERF_EXIT_REASON_SIZE)
14
15PERFCOUNTER(seg_fixups,             "segmentation fixups")
16
17PERFCOUNTER(apic_timer,             "apic timer interrupts")
18
19PERFCOUNTER(domain_page_tlb_flush,  "domain page tlb flushes")
20
21PERFCOUNTER(calls_to_mmuext_op,         "calls to mmuext_op")
22PERFCOUNTER(num_mmuext_ops,             "mmuext ops")
23PERFCOUNTER(calls_to_mmu_update,        "calls to mmu_update")
24PERFCOUNTER(num_page_updates,           "page updates")
25PERFCOUNTER(calls_to_update_va,         "calls to update_va_map")
26PERFCOUNTER(page_faults,            "page faults")
27PERFCOUNTER(copy_user_faults,       "copy_user faults")
28
29PERFCOUNTER(map_domain_page_count,  "map_domain_page count")
30PERFCOUNTER(ptwr_emulations,        "writable pt emulations")
31
32PERFCOUNTER(exception_fixed,        "pre-exception fixed")
33
34
35/* Shadow counters */
36PERFCOUNTER(shadow_alloc,          "calls to shadow_alloc")
37PERFCOUNTER(shadow_alloc_tlbflush, "shadow_alloc flushed TLBs")
38
39/* STATUS counters do not reset when 'P' is hit */
40PERFSTATUS(shadow_alloc_count,         "number of shadow pages in use")
41PERFCOUNTER(shadow_free,           "calls to shadow_free")
42PERFCOUNTER(shadow_prealloc_1,     "shadow recycles old shadows")
43PERFCOUNTER(shadow_prealloc_2,     "shadow recycles in-use shadows")
44PERFCOUNTER(shadow_linear_map_failed, "shadow hit read-only linear map")
45PERFCOUNTER(shadow_a_update,       "shadow A bit update")
46PERFCOUNTER(shadow_ad_update,      "shadow A&D bit update")
47PERFCOUNTER(shadow_fault,          "calls to shadow_fault")
48PERFCOUNTER(shadow_fault_fast_gnp, "shadow_fault fast path n/p")
49PERFCOUNTER(shadow_fault_fast_mmio, "shadow_fault fast path mmio")
50PERFCOUNTER(shadow_fault_fast_fail, "shadow_fault fast path error")
51PERFCOUNTER(shadow_fault_bail_bad_gfn, "shadow_fault guest bad gfn")
52PERFCOUNTER(shadow_fault_bail_not_present, 
53                                        "shadow_fault guest not-present")
54PERFCOUNTER(shadow_fault_bail_nx,  "shadow_fault guest NX fault")
55PERFCOUNTER(shadow_fault_bail_ro_mapping, "shadow_fault guest R/W fault")
56PERFCOUNTER(shadow_fault_bail_user_supervisor, 
57                                        "shadow_fault guest U/S fault")
58PERFCOUNTER(shadow_fault_emulate_read, "shadow_fault emulates a read")
59PERFCOUNTER(shadow_fault_emulate_write, "shadow_fault emulates a write")
60PERFCOUNTER(shadow_fault_emulate_failed, "shadow_fault emulator fails")
61PERFCOUNTER(shadow_fault_emulate_stack, "shadow_fault emulate stack write")
62PERFCOUNTER(shadow_fault_mmio,     "shadow_fault handled as mmio")
63PERFCOUNTER(shadow_fault_fixed,    "shadow_fault fixed fault")
64PERFCOUNTER(shadow_ptwr_emulate,   "shadow causes ptwr to emulate")
65PERFCOUNTER(shadow_validate_gl1e_calls, "calls to shadow_validate_gl1e")
66PERFCOUNTER(shadow_validate_gl2e_calls, "calls to shadow_validate_gl2e")
67PERFCOUNTER(shadow_validate_gl3e_calls, "calls to shadow_validate_gl3e")
68PERFCOUNTER(shadow_validate_gl4e_calls, "calls to shadow_validate_gl4e")
69PERFCOUNTER(shadow_hash_lookups,   "calls to shadow_hash_lookup")
70PERFCOUNTER(shadow_hash_lookup_head, "shadow hash hit in bucket head")
71PERFCOUNTER(shadow_hash_lookup_miss, "shadow hash misses")
72PERFCOUNTER(shadow_get_shadow_status, "calls to get_shadow_status")
73PERFCOUNTER(shadow_hash_inserts,   "calls to shadow_hash_insert")
74PERFCOUNTER(shadow_hash_deletes,   "calls to shadow_hash_delete")
75PERFCOUNTER(shadow_writeable,      "shadow removes write access")
76PERFCOUNTER(shadow_writeable_h_1,  "shadow writeable: 32b w2k3")
77PERFCOUNTER(shadow_writeable_h_2,  "shadow writeable: 32pae w2k3")
78PERFCOUNTER(shadow_writeable_h_3,  "shadow writeable: 64b w2k3")
79PERFCOUNTER(shadow_writeable_h_4,  "shadow writeable: 32b linux low")
80PERFCOUNTER(shadow_writeable_h_5,  "shadow writeable: 32b linux high")
81PERFCOUNTER(shadow_writeable_bf,   "shadow writeable brute-force")
82PERFCOUNTER(shadow_mappings,       "shadow removes all mappings")
83PERFCOUNTER(shadow_mappings_bf,    "shadow rm-mappings brute-force")
84PERFCOUNTER(shadow_early_unshadow, "shadow unshadows for fork/exit")
85PERFCOUNTER(shadow_unshadow,       "shadow unshadows a page")
86PERFCOUNTER(shadow_up_pointer,     "shadow unshadow by up-pointer")
87PERFCOUNTER(shadow_unshadow_bf,    "shadow unshadow brute-force")
88PERFCOUNTER(shadow_get_page_fail,  "shadow_get_page_from_l1e failed")
89PERFCOUNTER(shadow_guest_walk,     "shadow walks guest tables")
90PERFCOUNTER(shadow_invlpg,         "shadow emulates invlpg")
91PERFCOUNTER(shadow_invlpg_fault,   "shadow invlpg faults")
92
93
94/*#endif*/ /* __XEN_PERFC_DEFN_H__ */
Note: See TracBrowser for help on using the repository browser.