aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/trace.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-06-29 11:01:50 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-06-29 11:01:50 +0100
commit71eb0dfc66b858528a97b9fbc92d55f13d378cf5 (patch)
tree8574a4f699cb0d40fcd2b7c2bcd1c3266cb5e487 /xen/include/xen/trace.h
parentc18a0f7d6da1c477a0c3fa363499aad9082afaa3 (diff)
downloadxen-71eb0dfc66b858528a97b9fbc92d55f13d378cf5.tar.gz
xen-71eb0dfc66b858528a97b9fbc92d55f13d378cf5.tar.bz2
xen-71eb0dfc66b858528a97b9fbc92d55f13d378cf5.zip
x86 Cx tracing: export the Cx exit reason (pending interrupt during Cx)
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Diffstat (limited to 'xen/include/xen/trace.h')
-rw-r--r--xen/include/xen/trace.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/xen/include/xen/trace.h b/xen/include/xen/trace.h
index 1ca52fc633..797fb75658 100644
--- a/xen/include/xen/trace.h
+++ b/xen/include/xen/trace.h
@@ -111,4 +111,19 @@ static inline void trace_var(u32 event, int cycles, int extra,
} \
} while ( 0 )
+#define TRACE_6D(_e,d1,d2,d3,d4,d5,d6) \
+ do { \
+ if ( unlikely(tb_init_done) ) \
+ { \
+ u32 _d[6]; \
+ _d[0] = d1; \
+ _d[1] = d2; \
+ _d[2] = d3; \
+ _d[3] = d4; \
+ _d[4] = d5; \
+ _d[5] = d6; \
+ __trace_var(_e, 1, sizeof(*_d)*6, (unsigned char *)_d); \
+ } \
+ } while ( 0 )
+
#endif /* __XEN_TRACE_H__ */