From: Gleb Natapov <g...@redhat.com>

Switch dm parameter to u16 and use __print_symbolic.

Signed-off-by: Gleb Natapov <g...@redhat.com>

Signed-off-by: Gleb Natapov <g...@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosa...@redhat.com>

diff --git a/arch/x86/kvm/trace.h b/arch/x86/kvm/trace.h
index 134bc63..0d480e7 100644
--- a/arch/x86/kvm/trace.h
+++ b/arch/x86/kvm/trace.h
@@ -323,12 +323,12 @@ TRACE_EVENT(kvm_apic_ipi,
 );
 
 TRACE_EVENT(kvm_apic_accept_irq,
-           TP_PROTO(__u32 apicid, __u8 dm, __u8 tm, __u8 vec, bool coalesced),
+           TP_PROTO(__u32 apicid, __u16 dm, __u8 tm, __u8 vec, bool coalesced),
            TP_ARGS(apicid, dm, tm, vec, coalesced),
 
        TP_STRUCT__entry(
                __field(        __u32,          apicid          )
-               __field(        __u8,           dm              )
+               __field(        __u16,          dm              )
                __field(        __u8,           tm              )
                __field(        __u8,           vec             )
                __field(        bool,           coalesced       )
@@ -344,7 +344,7 @@ TRACE_EVENT(kvm_apic_accept_irq,
 
        TP_printk("apicid %x vec %u (%s|%s)%s",
                  __entry->apicid, __entry->vec,
-                 (__entry->dm == APIC_DM_LOWEST) ? "lowest":"fixed",
+                 __print_symbolic((__entry->dm >> 8 & 0x7), kvm_deliver_mode),
                  __entry->tm ? "level" : "edge",
                  __entry->coalesced ? " (coalesced)" : "")
 );
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to