source: trunk/packages/xen-3.1/xen-3.1/xen/include/asm-ia64/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: 8.1 KB
Line 
1/* This file is legitimately included multiple times. */
2
3PERFCOUNTER(dtlb_translate,       "dtlb hit")
4
5PERFCOUNTER(tr_translate,         "TR hit")
6
7PERFCOUNTER(vhpt_translate,       "virtual vhpt translation")
8PERFCOUNTER(fast_vhpt_translate,  "virtual vhpt fast translation")
9
10PERFCOUNTER(recover_to_page_fault,    "recoveries to page fault")
11PERFCOUNTER(recover_to_break_fault,   "recoveries to break fault")
12
13PERFCOUNTER(phys_translate,       "metaphysical translation")
14
15PERFCOUNTER(idle_when_pending,    "vcpu idle at event")
16
17PERFCOUNTER(pal_halt_light,       "calls to pal_halt_light")
18
19PERFCOUNTER(lazy_cover,           "lazy cover")
20
21PERFCOUNTER(mov_to_ar_imm,        "privop mov_to_ar_imm")
22PERFCOUNTER(mov_to_ar_reg,        "privop mov_to_ar_reg")
23PERFCOUNTER(mov_from_ar,          "privop privified-mov_from_ar")
24PERFCOUNTER(ssm,                  "privop ssm")
25PERFCOUNTER(rsm,                  "privop rsm")
26PERFCOUNTER(rfi,                  "privop rfi")
27PERFCOUNTER(bsw0,                 "privop bsw0")
28PERFCOUNTER(bsw1,                 "privop bsw1")
29PERFCOUNTER(cover,                "privop cover")
30PERFCOUNTER(fc,                   "privop privified-fc")
31PERFCOUNTER(cpuid,                "privop privified-cpuid")
32
33PERFCOUNTER_ARRAY(mov_to_cr,          "privop mov to cr", 128)
34PERFCOUNTER_ARRAY(mov_from_cr,        "privop mov from cr", 128)
35
36PERFCOUNTER_ARRAY(misc_privop,        "privop misc", 64)
37
38// privileged instructions to fall into vmx_entry
39PERFCOUNTER(vmx_rsm,              "vmx privop rsm")
40PERFCOUNTER(vmx_ssm,              "vmx privop ssm")
41PERFCOUNTER(vmx_mov_to_psr,       "vmx privop mov_to_psr")
42PERFCOUNTER(vmx_mov_from_psr,     "vmx privop mov_from_psr")
43PERFCOUNTER(vmx_mov_from_cr,      "vmx privop mov_from_cr")
44PERFCOUNTER(vmx_mov_to_cr,        "vmx privop mov_to_cr")
45PERFCOUNTER(vmx_bsw0,             "vmx privop bsw0")
46PERFCOUNTER(vmx_bsw1,             "vmx privop bsw1")
47PERFCOUNTER(vmx_cover,            "vmx privop cover")
48PERFCOUNTER(vmx_rfi,              "vmx privop rfi")
49PERFCOUNTER(vmx_itr_d,            "vmx privop itr_d")
50PERFCOUNTER(vmx_itr_i,            "vmx privop itr_i")
51PERFCOUNTER(vmx_ptr_d,            "vmx privop ptr_d")
52PERFCOUNTER(vmx_ptr_i,            "vmx privop ptr_i")
53PERFCOUNTER(vmx_itc_d,            "vmx privop itc_d")
54PERFCOUNTER(vmx_itc_i,            "vmx privop itc_i")
55PERFCOUNTER(vmx_ptc_l,            "vmx privop ptc_l")
56PERFCOUNTER(vmx_ptc_g,            "vmx privop ptc_g")
57PERFCOUNTER(vmx_ptc_ga,           "vmx privop ptc_ga")
58PERFCOUNTER(vmx_ptc_e,            "vmx privop ptc_e")
59PERFCOUNTER(vmx_mov_to_rr,        "vmx privop mov_to_rr")
60PERFCOUNTER(vmx_mov_from_rr,      "vmx privop mov_from_rr")
61PERFCOUNTER(vmx_thash,            "vmx privop thash")
62PERFCOUNTER(vmx_ttag,             "vmx privop ttag")
63PERFCOUNTER(vmx_tpa,              "vmx privop tpa")
64PERFCOUNTER(vmx_tak,              "vmx privop tak")
65PERFCOUNTER(vmx_mov_to_ar_imm,    "vmx privop mov_to_ar_imm")
66PERFCOUNTER(vmx_mov_to_ar_reg,    "vmx privop mov_to_ar_reg")
67PERFCOUNTER(vmx_mov_from_ar_reg,  "vmx privop mov_from_ar_reg")
68PERFCOUNTER(vmx_mov_to_dbr,       "vmx privop mov_to_dbr")
69PERFCOUNTER(vmx_mov_to_ibr,       "vmx privop mov_to_ibr")
70PERFCOUNTER(vmx_mov_to_pmc,       "vmx privop mov_to_pmc")
71PERFCOUNTER(vmx_mov_to_pmd,       "vmx privop mov_to_pmd")
72PERFCOUNTER(vmx_mov_to_pkr,       "vmx privop mov_to_pkr")
73PERFCOUNTER(vmx_mov_from_dbr,     "vmx privop mov_from_dbr")
74PERFCOUNTER(vmx_mov_from_ibr,     "vmx privop mov_from_ibr")
75PERFCOUNTER(vmx_mov_from_pmc,     "vmx privop mov_from_pmc")
76PERFCOUNTER(vmx_mov_from_pkr,     "vmx privop mov_from_pkr")
77PERFCOUNTER(vmx_mov_from_cpuid,   "vmx privop mov_from_cpuid")
78
79
80PERFCOUNTER_ARRAY(slow_hyperprivop,   "slow hyperprivops", HYPERPRIVOP_MAX + 1)
81PERFCOUNTER_ARRAY(fast_hyperprivop,   "fast hyperprivops", HYPERPRIVOP_MAX + 1)
82
83PERFCOUNTER_ARRAY(slow_reflect,       "slow reflection", 0x80)
84PERFCOUNTER_ARRAY(fast_reflect,       "fast reflection", 0x80)
85
86PERFSTATUS(vhpt_nbr_entries,          "nbr of entries per VHPT")
87PERFSTATUS(vhpt_valid_entries,        "nbr of valid entries in VHPT")
88
89PERFCOUNTER_ARRAY(vmx_mmio_access,    "vmx_mmio_access", 8)
90PERFCOUNTER(vmx_pal_emul,         "vmx_pal_emul")
91PERFCOUNTER_ARRAY(vmx_switch_mm_mode, "vmx_switch_mm_mode", 8)
92PERFCOUNTER(vmx_ia64_handle_break,"vmx_ia64_handle_break")
93PERFCOUNTER_ARRAY(vmx_inject_guest_interruption,
94                                      "vmx_inject_guest_interruption", 0x80)
95PERFCOUNTER_ARRAY(fw_hypercall,       "fw_hypercall", 0x20)
96
97#ifdef CONFIG_PRIVOP_ADDRS
98#ifndef PERFPRIVOPADDR
99#define PERFPRIVOPADDR(name) \
100PERFSTATUS_ARRAY(privop_addr_##name##_addr, "privop-addrs addr " #name, \
101                 PRIVOP_COUNT_NADDRS) \
102PERFSTATUS_ARRAY(privop_addr_##name##_count, "privop-addrs count " #name, \
103                 PRIVOP_COUNT_NADDRS) \
104PERFSTATUS(privop_addr_##name##_overflow, "privop-addrs overflow " #name)
105#endif
106
107PERFPRIVOPADDR(get_ifa)
108PERFPRIVOPADDR(thash)
109
110#undef PERFPRIVOPADDR
111#endif
112
113// vhpt.c
114PERFCOUNTER(local_vhpt_flush,               "local_vhpt_flush")
115PERFCOUNTER(vcpu_vhpt_flush,                "vcpu_vhpt_flush")
116PERFCOUNTER(vcpu_flush_vtlb_all,            "vcpu_flush_vtlb_all")
117PERFCOUNTER(domain_flush_vtlb_all,          "domain_flush_vtlb_all")
118PERFCOUNTER(vcpu_flush_tlb_vhpt_range,      "vcpu_flush_tlb_vhpt_range")
119PERFCOUNTER(domain_flush_vtlb_track_entry,  "domain_flush_vtlb_track_entry")
120PERFCOUNTER(domain_flush_vtlb_local,        "domain_flush_vtlb_local")
121PERFCOUNTER(domain_flush_vtlb_global,       "domain_flush_vtlb_global")
122PERFCOUNTER(domain_flush_vtlb_range,        "domain_flush_vtlb_range")
123
124// domain.c
125PERFCOUNTER(flush_vtlb_for_context_switch,  "flush_vtlb_for_context_switch")
126
127// mm.c
128PERFCOUNTER(assign_domain_page_replace,     "assign_domain_page_replace")
129PERFCOUNTER(assign_domain_pge_cmpxchg_rel,  "assign_domain_pge_cmpxchg_rel")
130PERFCOUNTER(zap_dcomain_page_one,           "zap_dcomain_page_one")
131PERFCOUNTER(dom0vp_zap_physmap,             "dom0vp_zap_physmap")
132PERFCOUNTER(dom0vp_add_physmap,             "dom0vp_add_physmap")
133PERFCOUNTER(create_grant_host_mapping,      "create_grant_host_mapping")
134PERFCOUNTER(destroy_grant_host_mapping,     "destroy_grant_host_mapping")
135PERFCOUNTER(steal_page_refcount,            "steal_page_refcount")
136PERFCOUNTER(steal_page,                     "steal_page")
137PERFCOUNTER(guest_physmap_add_page,         "guest_physmap_add_page")
138PERFCOUNTER(guest_physmap_remove_page,      "guest_physmap_remove_page")
139PERFCOUNTER(domain_page_flush_and_put,      "domain_page_flush_and_put")
140
141// dom0vp
142PERFCOUNTER(dom0vp_phystomach,              "dom0vp_phystomach")
143PERFCOUNTER(dom0vp_machtophys,              "dom0vp_machtophys")
144
145#ifdef CONFIG_XEN_IA64_TLB_TRACK
146// insert or dirty
147PERFCOUNTER(tlb_track_iod,                  "tlb_track_iod")
148PERFCOUNTER(tlb_track_iod_again,            "tlb_track_iod_again")
149PERFCOUNTER(tlb_track_iod_not_tracked,      "tlb_track_iod_not_tracked")
150PERFCOUNTER(tlb_track_iod_force_many,       "tlb_track_iod_force_many")
151PERFCOUNTER(tlb_track_iod_tracked_many,     "tlb_track_iod_tracked_many")
152PERFCOUNTER(tlb_track_iod_tracked_many_del, "tlb_track_iod_tracked_many_del")
153PERFCOUNTER(tlb_track_iod_found,            "tlb_track_iod_found")
154PERFCOUNTER(tlb_track_iod_new_entry,        "tlb_track_iod_new_entry")
155PERFCOUNTER(tlb_track_iod_new_failed,       "tlb_track_iod_new_failed")
156PERFCOUNTER(tlb_track_iod_new_many,         "tlb_track_iod_new_many")
157PERFCOUNTER(tlb_track_iod_insert,           "tlb_track_iod_insert")
158PERFCOUNTER(tlb_track_iod_dirtied,          "tlb_track_iod_dirtied")
159
160// search and remove
161PERFCOUNTER(tlb_track_sar,                  "tlb_track_sar")
162PERFCOUNTER(tlb_track_sar_not_tracked,      "tlb_track_sar_not_tracked")
163PERFCOUNTER(tlb_track_sar_not_found,        "tlb_track_sar_not_found")
164PERFCOUNTER(tlb_track_sar_found,            "tlb_track_sar_found")
165PERFCOUNTER(tlb_track_sar_many,             "tlb_track_sar_many")
166
167// flush
168PERFCOUNTER(tlb_track_use_rr7,              "tlb_track_use_rr7")
169PERFCOUNTER(tlb_track_swap_rr0,             "tlb_track_swap_rr0")
170#endif
171
172// tlb flush clock
173#ifdef CONFIG_XEN_IA64_TLBFLUSH_CLOCK
174PERFCOUNTER(tlbflush_clock_cswitch_purge,  "tlbflush_clock_cswitch_purge")
175PERFCOUNTER(tlbflush_clock_cswitch_skip,   "tlbflush_clock_cswitch_skip")
176#endif
Note: See TracBrowser for help on using the repository browser.