Skip to content

Commit 411d63d

Browse files
author
Marc Zyngier
committed
KVM: arm64: Upgrade trace_kvm_arm_set_dreg32() to 64bit
A number of registers pased to trace_kvm_arm_set_dreg32() are actually 64bit. Upgrade the tracepoint to take a 64bit value, despite the name... Signed-off-by: Marc Zyngier <[email protected]>
1 parent 2d70124 commit 411d63d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

arch/arm64/kvm/trace_handle_exit.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,21 +78,25 @@ TRACE_EVENT(kvm_arm_clear_debug,
7878
TP_printk("flags: 0x%08x", __entry->guest_debug)
7979
);
8080

81+
/*
82+
* The dreg32 name is a leftover from a distant past. This will really
83+
* output a 64bit value...
84+
*/
8185
TRACE_EVENT(kvm_arm_set_dreg32,
82-
TP_PROTO(const char *name, __u32 value),
86+
TP_PROTO(const char *name, __u64 value),
8387
TP_ARGS(name, value),
8488

8589
TP_STRUCT__entry(
8690
__field(const char *, name)
87-
__field(__u32, value)
91+
__field(__u64, value)
8892
),
8993

9094
TP_fast_assign(
9195
__entry->name = name;
9296
__entry->value = value;
9397
),
9498

95-
TP_printk("%s: 0x%08x", __entry->name, __entry->value)
99+
TP_printk("%s: 0x%llx", __entry->name, __entry->value)
96100
);
97101

98102
TRACE_DEFINE_SIZEOF(__u64);

0 commit comments

Comments
 (0)