hyper-v: trace vmbus_on_message()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Sun, 29 Oct 2017 19:21:01 +0000 (12:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Nov 2017 11:04:24 +0000 (12:04 +0100)
Add tracepoint to vmbus_on_message() which is called when we start
processing a blocking from work context.

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 a8dc9a1646317fad9d49eaadea8f4a20a83374c9..71d4d68488d4659447d23ca799283877d8a1ee02 100644 (file)
@@ -1176,6 +1176,8 @@ void vmbus_onmessage(void *context)
        hdr = (struct vmbus_channel_message_header *)msg->u.payload;
        size = msg->header.payload_size;
 
+       trace_vmbus_on_message(hdr);
+
        if (hdr->msgtype >= CHANNELMSG_COUNT) {
                pr_err("Received invalid channel message type %d size %d\n",
                           hdr->msgtype, size);
index 9c2772922c76b159c066edd5b79e2c68a304604e..d432aba5df8aef12be1d1ecf79e9e0ced1521a9b 100644 (file)
@@ -19,6 +19,11 @@ DEFINE_EVENT(vmbus_hdr_msg, vmbus_on_msg_dpc,
        TP_ARGS(hdr)
 );
 
+DEFINE_EVENT(vmbus_hdr_msg, vmbus_on_message,
+       TP_PROTO(const struct vmbus_channel_message_header *hdr),
+       TP_ARGS(hdr)
+);
+
 #undef TRACE_INCLUDE_PATH
 #define TRACE_INCLUDE_PATH .
 #undef TRACE_INCLUDE_FILE