ia64/xen-unstable

view xen/include/asm-ia64/perfc_defn.h @ 11710:0c7e58ba4fbd

[IA64] add perfcounter of dom0vp_phystomach and dom0vp_machtophys

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author awilliam@xenbuild.aw
date Mon Oct 02 21:39:44 2006 -0600 (2006-10-02)
parents ce9816c14040
children 0c18c6009448
line source
1 /* This file is legitimately included multiple times. */
3 PERFCOUNTER_CPU(dtlb_translate, "dtlb hit")
5 PERFCOUNTER_CPU(tr_translate, "TR hit")
7 PERFCOUNTER_CPU(vhpt_translate, "virtual vhpt translation")
8 PERFCOUNTER_CPU(fast_vhpt_translate, "virtual vhpt fast translation")
10 PERFCOUNTER(recover_to_page_fault, "recoveries to page fault")
11 PERFCOUNTER(recover_to_break_fault, "recoveries to break fault")
13 PERFCOUNTER_CPU(phys_translate, "metaphysical translation")
15 PERFCOUNTER_CPU(idle_when_pending, "vcpu idle at event")
17 PERFCOUNTER_CPU(pal_halt_light, "calls to pal_halt_light")
19 PERFCOUNTER_CPU(lazy_cover, "lazy cover")
21 PERFCOUNTER_CPU(mov_to_ar_imm, "privop mov_to_ar_imm")
22 PERFCOUNTER_CPU(mov_to_ar_reg, "privop mov_to_ar_reg")
23 PERFCOUNTER_CPU(mov_from_ar, "privop privified-mov_from_ar")
24 PERFCOUNTER_CPU(ssm, "privop ssm")
25 PERFCOUNTER_CPU(rsm, "privop rsm")
26 PERFCOUNTER_CPU(rfi, "privop rfi")
27 PERFCOUNTER_CPU(bsw0, "privop bsw0")
28 PERFCOUNTER_CPU(bsw1, "privop bsw1")
29 PERFCOUNTER_CPU(cover, "privop cover")
30 PERFCOUNTER_CPU(fc, "privop privified-fc")
31 PERFCOUNTER_CPU(cpuid, "privop privified-cpuid")
33 PERFCOUNTER_ARRAY(mov_to_cr, "privop mov to cr", 128)
34 PERFCOUNTER_ARRAY(mov_from_cr, "privop mov from cr", 128)
36 PERFCOUNTER_ARRAY(misc_privop, "privop misc", 64)
38 // privileged instructions to fall into vmx_entry
39 PERFCOUNTER_CPU(vmx_rsm, "vmx privop rsm")
40 PERFCOUNTER_CPU(vmx_ssm, "vmx privop ssm")
41 PERFCOUNTER_CPU(vmx_mov_to_psr, "vmx privop mov_to_psr")
42 PERFCOUNTER_CPU(vmx_mov_from_psr, "vmx privop mov_from_psr")
43 PERFCOUNTER_CPU(vmx_mov_from_cr, "vmx privop mov_from_cr")
44 PERFCOUNTER_CPU(vmx_mov_to_cr, "vmx privop mov_to_cr")
45 PERFCOUNTER_CPU(vmx_bsw0, "vmx privop bsw0")
46 PERFCOUNTER_CPU(vmx_bsw1, "vmx privop bsw1")
47 PERFCOUNTER_CPU(vmx_cover, "vmx privop cover")
48 PERFCOUNTER_CPU(vmx_rfi, "vmx privop rfi")
49 PERFCOUNTER_CPU(vmx_itr_d, "vmx privop itr_d")
50 PERFCOUNTER_CPU(vmx_itr_i, "vmx privop itr_i")
51 PERFCOUNTER_CPU(vmx_ptr_d, "vmx privop ptr_d")
52 PERFCOUNTER_CPU(vmx_ptr_i, "vmx privop ptr_i")
53 PERFCOUNTER_CPU(vmx_itc_d, "vmx privop itc_d")
54 PERFCOUNTER_CPU(vmx_itc_i, "vmx privop itc_i")
55 PERFCOUNTER_CPU(vmx_ptc_l, "vmx privop ptc_l")
56 PERFCOUNTER_CPU(vmx_ptc_g, "vmx privop ptc_g")
57 PERFCOUNTER_CPU(vmx_ptc_ga, "vmx privop ptc_ga")
58 PERFCOUNTER_CPU(vmx_ptc_e, "vmx privop ptc_e")
59 PERFCOUNTER_CPU(vmx_mov_to_rr, "vmx privop mov_to_rr")
60 PERFCOUNTER_CPU(vmx_mov_from_rr, "vmx privop mov_from_rr")
61 PERFCOUNTER_CPU(vmx_thash, "vmx privop thash")
62 PERFCOUNTER_CPU(vmx_ttag, "vmx privop ttag")
63 PERFCOUNTER_CPU(vmx_tpa, "vmx privop tpa")
64 PERFCOUNTER_CPU(vmx_tak, "vmx privop tak")
65 PERFCOUNTER_CPU(vmx_mov_to_ar_imm, "vmx privop mov_to_ar_imm")
66 PERFCOUNTER_CPU(vmx_mov_to_ar_reg, "vmx privop mov_to_ar_reg")
67 PERFCOUNTER_CPU(vmx_mov_from_ar_reg, "vmx privop mov_from_ar_reg")
68 PERFCOUNTER_CPU(vmx_mov_to_dbr, "vmx privop mov_to_dbr")
69 PERFCOUNTER_CPU(vmx_mov_to_ibr, "vmx privop mov_to_ibr")
70 PERFCOUNTER_CPU(vmx_mov_to_pmc, "vmx privop mov_to_pmc")
71 PERFCOUNTER_CPU(vmx_mov_to_pmd, "vmx privop mov_to_pmd")
72 PERFCOUNTER_CPU(vmx_mov_to_pkr, "vmx privop mov_to_pkr")
73 PERFCOUNTER_CPU(vmx_mov_from_dbr, "vmx privop mov_from_dbr")
74 PERFCOUNTER_CPU(vmx_mov_from_ibr, "vmx privop mov_from_ibr")
75 PERFCOUNTER_CPU(vmx_mov_from_pmc, "vmx privop mov_from_pmc")
76 PERFCOUNTER_CPU(vmx_mov_from_pkr, "vmx privop mov_from_pkr")
77 PERFCOUNTER_CPU(vmx_mov_from_cpuid, "vmx privop mov_from_cpuid")
80 PERFCOUNTER_ARRAY(slow_hyperprivop, "slow hyperprivops", HYPERPRIVOP_MAX + 1)
81 PERFCOUNTER_ARRAY(fast_hyperprivop, "fast hyperprivops", HYPERPRIVOP_MAX + 1)
83 PERFCOUNTER_ARRAY(slow_reflect, "slow reflection", 0x80)
84 PERFCOUNTER_ARRAY(fast_reflect, "fast reflection", 0x80)
86 PERFSTATUS(vhpt_nbr_entries, "nbr of entries per VHPT")
87 PERFSTATUS_CPU(vhpt_valid_entries, "nbr of valid entries in VHPT")
89 PERFCOUNTER_ARRAY(vmx_mmio_access, "vmx_mmio_access", 8)
90 PERFCOUNTER_CPU(vmx_pal_emul, "vmx_pal_emul")
91 PERFCOUNTER_ARRAY(vmx_switch_mm_mode, "vmx_switch_mm_mode", 8)
92 PERFCOUNTER_CPU(vmx_ia64_handle_break,"vmx_ia64_handle_break")
93 PERFCOUNTER_ARRAY(vmx_inject_guest_interruption,
94 "vmx_inject_guest_interruption", 0x80)
95 PERFCOUNTER_ARRAY(fw_hypercall, "fw_hypercall", 0x20)
97 #ifdef CONFIG_PRIVOP_ADDRS
98 #ifndef PERFPRIVOPADDR
99 #define PERFPRIVOPADDR(name) \
100 PERFSTATUS_ARRAY(privop_addr_##name##_addr, "privop-addrs addr " #name, \
101 PRIVOP_COUNT_NADDRS) \
102 PERFSTATUS_ARRAY(privop_addr_##name##_count, "privop-addrs count " #name, \
103 PRIVOP_COUNT_NADDRS) \
104 PERFSTATUS(privop_addr_##name##_overflow, "privop-addrs overflow " #name)
105 #endif
107 PERFPRIVOPADDR(get_ifa)
108 PERFPRIVOPADDR(thash)
109 #endif
111 // vhpt.c
112 PERFCOUNTER_CPU(vcpu_flush_vtlb_all, "vcpu_flush_vtlb_all")
113 PERFCOUNTER_CPU(domain_flush_vtlb_all, "domain_flush_vtlb_all")
114 PERFCOUNTER_CPU(vcpu_flush_tlb_vhpt_range, "vcpu_flush_tlb_vhpt_range")
115 PERFCOUNTER_CPU(domain_flush_vtlb_range, "domain_flush_vtlb_range")
117 // domain.c
118 PERFCOUNTER_CPU(flush_vtlb_for_context_switch, "flush_vtlb_for_context_switch")
120 // mm.c
121 PERFCOUNTER_CPU(assign_domain_page_replace, "assign_domain_page_replace")
122 PERFCOUNTER_CPU(assign_domain_pge_cmpxchg_rel, "assign_domain_pge_cmpxchg_rel")
123 PERFCOUNTER_CPU(zap_dcomain_page_one, "zap_dcomain_page_one")
124 PERFCOUNTER_CPU(dom0vp_zap_physmap, "dom0vp_zap_physmap")
125 PERFCOUNTER_CPU(dom0vp_add_physmap, "dom0vp_add_physmap")
126 PERFCOUNTER_CPU(create_grant_host_mapping, "create_grant_host_mapping")
127 PERFCOUNTER_CPU(destroy_grant_host_mapping, "destroy_grant_host_mapping")
128 PERFCOUNTER_CPU(steal_page_refcount, "steal_page_refcount")
129 PERFCOUNTER_CPU(steal_page, "steal_page")
130 PERFCOUNTER_CPU(guest_physmap_add_page, "guest_physmap_add_page")
131 PERFCOUNTER_CPU(guest_physmap_remove_page, "guest_physmap_remove_page")
132 PERFCOUNTER_CPU(domain_page_flush, "domain_page_flush")
134 // dom0vp
135 PERFCOUNTER_CPU(dom0vp_phystomach, "dom0vp_phystomach")
136 PERFCOUNTER_CPU(dom0vp_machtophys, "dom0vp_machtophys")