diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-03-27 16:35:37 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-03-27 16:35:37 +0100 |
commit | bd776061a1a0e119d997b24be7fbf4bcd7603d95 (patch) | |
tree | 11f24760a1031f992c8e9de18147b05c32a58b12 /xen/include/xen/perfc_defn.h | |
parent | 5893fef229ab62a3da1d437f61313f53a208370a (diff) | |
download | xen-bd776061a1a0e119d997b24be7fbf4bcd7603d95.tar.gz xen-bd776061a1a0e119d997b24be7fbf4bcd7603d95.tar.bz2 xen-bd776061a1a0e119d997b24be7fbf4bcd7603d95.zip |
xen: Make all performance counter per-cpu, avoiding the need to update
them with atomic (locked) ops.
Conversion here isn't complete in the sense that many places still use
the old per-CPU accessors (which are now redundant). Since the patch
is already rather big, I'd prefer replacing those in a subsequent
patch.
While doing this, I also converted x86's multicall macros to no longer
require inclusion of asm-offsets.h in the respective C file (on IA64
the use of asm-offsets.h in C sources seems more wide spread, hence
there I rather used IA64_ prefixes for the otherwise conflicting
performance counter indices).
On x86, a few counter increments get moved a little, to avoid
duplicate counting of preempted hypercalls.
Also, a few counters are being added.
IA64 changes only compile-tested, hence somebody doing active IA64
work may want to have a close look at those changes.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/include/xen/perfc_defn.h')
-rw-r--r-- | xen/include/xen/perfc_defn.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/include/xen/perfc_defn.h b/xen/include/xen/perfc_defn.h index de951f352e..b63c1d0111 100644 --- a/xen/include/xen/perfc_defn.h +++ b/xen/include/xen/perfc_defn.h @@ -6,6 +6,9 @@ PERFCOUNTER_ARRAY(hypercalls, "hypercalls", NR_hypercalls) +PERFCOUNTER(calls_to_multicall, "calls to multicall") +PERFCOUNTER(calls_from_multicall, "calls from multicall") + PERFCOUNTER_CPU(irqs, "#interrupts") PERFCOUNTER_CPU(ipis, "#IPIs") |