hyper-v: trace vmbus_ongpadl_torndown()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Sun, 29 Oct 2017 19:21:06 +0000 (12:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Nov 2017 11:04:25 +0000 (12:04 +0100)
Add tracepoint to CHANNELMSG_GPADL_TORNDOWN handler.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel_mgmt.c
drivers/hv/hv_trace.h

index 4bff75449afb8cdf38c7260ff2abe5d3d568b298..d1cb85257bf02997759a76ed2b558173a2d331b8 100644 (file)
@@ -1082,6 +1082,8 @@ static void vmbus_ongpadl_torndown(
 
        gpadl_torndown = (struct vmbus_channel_gpadl_torndown *)hdr;
 
+       trace_vmbus_ongpadl_torndown(gpadl_torndown);
+
        /*
         * Find the open msg, copy the result and signal/unblock the wait event
         */
index 20734b7b341b6041cfbd5194f702e50a3178f07e..84c08cdf723513ecd52920c5e6fad3f2aae6805f 100644 (file)
@@ -103,6 +103,14 @@ TRACE_EVENT(vmbus_ongpadl_created,
                    )
        );
 
+TRACE_EVENT(vmbus_ongpadl_torndown,
+           TP_PROTO(const struct vmbus_channel_gpadl_torndown *gpadltorndown),
+           TP_ARGS(gpadltorndown),
+           TP_STRUCT__entry(__field(u32, gpadl)),
+           TP_fast_assign(__entry->gpadl = gpadltorndown->gpadl),
+           TP_printk("gpadl 0x%x", __entry->gpadl)
+       );
+
 #undef TRACE_INCLUDE_PATH
 #define TRACE_INCLUDE_PATH .
 #undef TRACE_INCLUDE_FILE