summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2011-06-21 02:52:13 +0200
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2011-07-19 00:43:46 +0200
commitbd9ddc875b6659f9f74dcfd285c472bc58041abd (patch)
tree432b29246be27e5ce76a9e5e5c0389525a5aac2a
parentxen/trace: convert mmu events to use DECLARE_EVENT_CLASS()/DEFINE_EVENT() (diff)
downloadlinux-bd9ddc875b6659f9f74dcfd285c472bc58041abd.tar.xz
linux-bd9ddc875b6659f9f74dcfd285c472bc58041abd.zip
xen/trace: use class for multicall trace
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
-rw-r--r--include/trace/events/xen.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/include/trace/events/xen.h b/include/trace/events/xen.h
index 147eb6ffc13c..44d8decee09e 100644
--- a/include/trace/events/xen.h
+++ b/include/trace/events/xen.h
@@ -9,8 +9,7 @@
#include <asm/xen/trace_types.h>
/* Multicalls */
-
-TRACE_EVENT(xen_mc_batch,
+DECLARE_EVENT_CLASS(xen_mc__batch,
TP_PROTO(enum paravirt_lazy_mode mode),
TP_ARGS(mode),
TP_STRUCT__entry(
@@ -21,18 +20,13 @@ TRACE_EVENT(xen_mc_batch,
(__entry->mode == PARAVIRT_LAZY_MMU) ? "MMU" :
(__entry->mode == PARAVIRT_LAZY_CPU) ? "CPU" : "NONE")
);
+#define DEFINE_XEN_MC_BATCH(name) \
+ DEFINE_EVENT(xen_mc__batch, name, \
+ TP_PROTO(enum paravirt_lazy_mode mode), \
+ TP_ARGS(mode))
-TRACE_EVENT(xen_mc_issue,
- TP_PROTO(enum paravirt_lazy_mode mode),
- TP_ARGS(mode),
- TP_STRUCT__entry(
- __field(enum paravirt_lazy_mode, mode)
- ),
- TP_fast_assign(__entry->mode = mode),
- TP_printk("issue mode LAZY_%s",
- (__entry->mode == PARAVIRT_LAZY_MMU) ? "MMU" :
- (__entry->mode == PARAVIRT_LAZY_CPU) ? "CPU" : "NONE")
- );
+DEFINE_XEN_MC_BATCH(xen_mc_batch);
+DEFINE_XEN_MC_BATCH(xen_mc_issue);
TRACE_EVENT(xen_mc_entry,
TP_PROTO(struct multicall_entry *mc, unsigned nargs),