diff options
author | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2011-06-20 20:52:13 -0400 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2011-07-18 18:43:46 -0400 |
commit | bd9ddc875b6659f9f74dcfd285c472bc58041abd (patch) | |
tree | 432b29246be27e5ce76a9e5e5c0389525a5aac2a /include/trace/events/xen.h | |
parent | c43ed60cbf3bd7d4bd6603258429361cffa09547 (diff) |
xen/trace: use class for multicall trace
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'include/trace/events/xen.h')
-rw-r--r-- | include/trace/events/xen.h | 20 |
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 @@ | |||
9 | #include <asm/xen/trace_types.h> | 9 | #include <asm/xen/trace_types.h> |
10 | 10 | ||
11 | /* Multicalls */ | 11 | /* Multicalls */ |
12 | 12 | DECLARE_EVENT_CLASS(xen_mc__batch, | |
13 | TRACE_EVENT(xen_mc_batch, | ||
14 | TP_PROTO(enum paravirt_lazy_mode mode), | 13 | TP_PROTO(enum paravirt_lazy_mode mode), |
15 | TP_ARGS(mode), | 14 | TP_ARGS(mode), |
16 | TP_STRUCT__entry( | 15 | TP_STRUCT__entry( |
@@ -21,18 +20,13 @@ TRACE_EVENT(xen_mc_batch, | |||
21 | (__entry->mode == PARAVIRT_LAZY_MMU) ? "MMU" : | 20 | (__entry->mode == PARAVIRT_LAZY_MMU) ? "MMU" : |
22 | (__entry->mode == PARAVIRT_LAZY_CPU) ? "CPU" : "NONE") | 21 | (__entry->mode == PARAVIRT_LAZY_CPU) ? "CPU" : "NONE") |
23 | ); | 22 | ); |
23 | #define DEFINE_XEN_MC_BATCH(name) \ | ||
24 | DEFINE_EVENT(xen_mc__batch, name, \ | ||
25 | TP_PROTO(enum paravirt_lazy_mode mode), \ | ||
26 | TP_ARGS(mode)) | ||
24 | 27 | ||
25 | TRACE_EVENT(xen_mc_issue, | 28 | DEFINE_XEN_MC_BATCH(xen_mc_batch); |
26 | TP_PROTO(enum paravirt_lazy_mode mode), | 29 | DEFINE_XEN_MC_BATCH(xen_mc_issue); |
27 | TP_ARGS(mode), | ||
28 | TP_STRUCT__entry( | ||
29 | __field(enum paravirt_lazy_mode, mode) | ||
30 | ), | ||
31 | TP_fast_assign(__entry->mode = mode), | ||
32 | TP_printk("issue mode LAZY_%s", | ||
33 | (__entry->mode == PARAVIRT_LAZY_MMU) ? "MMU" : | ||
34 | (__entry->mode == PARAVIRT_LAZY_CPU) ? "CPU" : "NONE") | ||
35 | ); | ||
36 | 30 | ||
37 | TRACE_EVENT(xen_mc_entry, | 31 | TRACE_EVENT(xen_mc_entry, |
38 | TP_PROTO(struct multicall_entry *mc, unsigned nargs), | 32 | TP_PROTO(struct multicall_entry *mc, unsigned nargs), |