ia64/xen-unstable

view xen/include/xen/perfc_defn.h @ 19800:78962f85c562

IOMMU: Add two generic functions to vendor neutral interface

Add 2 generic functions into the vendor neutral iommu interface, The
reason is that from changeset 19732, there is only one global flag
"iommu_enabled" that controls iommu enablement for both vtd and amd
systems, so we need different code paths for vtd and amd iommu systems
if this flag has been turned on. Also, the early checking of
"iommu_enabled" in iommu_setup() is removed to prevent iommu
functionalities from been disabled on amd systems.

Signed-off-by: Wei Wang <wei.wang2@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jun 19 08:41:50 2009 +0100 (2009-06-19)
parents e7702951fc09
children
line source
1 /* This file is legitimately included multiple times. */
2 /*#ifndef __XEN_PERFC_DEFN_H__*/
3 /*#define __XEN_PERFC_DEFN_H__*/
5 #include <asm/perfc_defn.h>
7 PERFCOUNTER_ARRAY(hypercalls, "hypercalls", NR_hypercalls)
9 PERFCOUNTER(calls_to_multicall, "calls to multicall")
10 PERFCOUNTER(calls_from_multicall, "calls from multicall")
12 PERFCOUNTER(irqs, "#interrupts")
13 PERFCOUNTER(ipis, "#IPIs")
15 PERFCOUNTER(sched_irq, "sched: timer")
16 PERFCOUNTER(sched_run, "sched: runs through scheduler")
17 PERFCOUNTER(sched_ctx, "sched: context switches")
19 PERFCOUNTER(vcpu_check, "csched: vcpu_check")
20 PERFCOUNTER(schedule, "csched: schedule")
21 PERFCOUNTER(acct_run, "csched: acct_run")
22 PERFCOUNTER(acct_no_work, "csched: acct_no_work")
23 PERFCOUNTER(acct_balance, "csched: acct_balance")
24 PERFCOUNTER(acct_reorder, "csched: acct_reorder")
25 PERFCOUNTER(acct_min_credit, "csched: acct_min_credit")
26 PERFCOUNTER(acct_vcpu_active, "csched: acct_vcpu_active")
27 PERFCOUNTER(acct_vcpu_idle, "csched: acct_vcpu_idle")
28 PERFCOUNTER(vcpu_sleep, "csched: vcpu_sleep")
29 PERFCOUNTER(vcpu_wake_running, "csched: vcpu_wake_running")
30 PERFCOUNTER(vcpu_wake_onrunq, "csched: vcpu_wake_onrunq")
31 PERFCOUNTER(vcpu_wake_runnable, "csched: vcpu_wake_runnable")
32 PERFCOUNTER(vcpu_wake_not_runnable, "csched: vcpu_wake_not_runnable")
33 PERFCOUNTER(vcpu_park, "csched: vcpu_park")
34 PERFCOUNTER(vcpu_unpark, "csched: vcpu_unpark")
35 PERFCOUNTER(tickle_local_idler, "csched: tickle_local_idler")
36 PERFCOUNTER(tickle_local_over, "csched: tickle_local_over")
37 PERFCOUNTER(tickle_local_under, "csched: tickle_local_under")
38 PERFCOUNTER(tickle_local_other, "csched: tickle_local_other")
39 PERFCOUNTER(tickle_idlers_none, "csched: tickle_idlers_none")
40 PERFCOUNTER(tickle_idlers_some, "csched: tickle_idlers_some")
41 PERFCOUNTER(load_balance_idle, "csched: load_balance_idle")
42 PERFCOUNTER(load_balance_over, "csched: load_balance_over")
43 PERFCOUNTER(load_balance_other, "csched: load_balance_other")
44 PERFCOUNTER(steal_trylock_failed, "csched: steal_trylock_failed")
45 PERFCOUNTER(steal_peer_idle, "csched: steal_peer_idle")
46 PERFCOUNTER(migrate_queued, "csched: migrate_queued")
47 PERFCOUNTER(migrate_running, "csched: migrate_running")
48 PERFCOUNTER(dom_init, "csched: dom_init")
49 PERFCOUNTER(dom_destroy, "csched: dom_destroy")
50 PERFCOUNTER(vcpu_init, "csched: vcpu_init")
51 PERFCOUNTER(vcpu_destroy, "csched: vcpu_destroy")
52 PERFCOUNTER(vcpu_hot, "csched: vcpu_hot")
54 PERFCOUNTER(need_flush_tlb_flush, "PG_need_flush tlb flushes")
56 /*#endif*/ /* __XEN_PERFC_DEFN_H__ */