aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-01-25 12:36:03 -0500
committerMarcelo Tosatti <mtosatti@redhat.com>2010-03-01 10:36:06 -0500
commit6e7d15296773f7a479072ec7f3248f51d01e1fad (patch)
tree1b50bf975205a72a8ce5a9ba02ef786829f457a2
parente01c2426149d70dc6dd46ad0453195656b6eeaa4 (diff)
KVM: Fix msr trace
- data is 64 bits wide, not unsigned long - rw is confusingly named Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rw-r--r--arch/x86/kvm/trace.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/x86/kvm/trace.h b/arch/x86/kvm/trace.h
index 1cb3d0e990f3..45903a926372 100644
--- a/arch/x86/kvm/trace.h
+++ b/arch/x86/kvm/trace.h
@@ -246,23 +246,23 @@ TRACE_EVENT(kvm_page_fault,
246 * Tracepoint for guest MSR access. 246 * Tracepoint for guest MSR access.
247 */ 247 */
248TRACE_EVENT(kvm_msr, 248TRACE_EVENT(kvm_msr,
249 TP_PROTO(unsigned int rw, unsigned int ecx, unsigned long data), 249 TP_PROTO(unsigned write, u32 ecx, u64 data),
250 TP_ARGS(rw, ecx, data), 250 TP_ARGS(write, ecx, data),
251 251
252 TP_STRUCT__entry( 252 TP_STRUCT__entry(
253 __field( unsigned int, rw ) 253 __field( unsigned, write )
254 __field( unsigned int, ecx ) 254 __field( u32, ecx )
255 __field( unsigned long, data ) 255 __field( u64, data )
256 ), 256 ),
257 257
258 TP_fast_assign( 258 TP_fast_assign(
259 __entry->rw = rw; 259 __entry->write = write;
260 __entry->ecx = ecx; 260 __entry->ecx = ecx;
261 __entry->data = data; 261 __entry->data = data;
262 ), 262 ),
263 263
264 TP_printk("msr_%s %x = 0x%lx", 264 TP_printk("msr_%s %x = 0x%llx",
265 __entry->rw ? "write" : "read", 265 __entry->write ? "write" : "read",
266 __entry->ecx, __entry->data) 266 __entry->ecx, __entry->data)
267); 267);
268 268