mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-28 22:20:39 +00:00
56 lines
1.8 KiB
Diff
56 lines
1.8 KiB
Diff
From 1bed7ed54ec6178952266b5133b1b34de9327759 Mon Sep 17 00:00:00 2001
|
|
From: Vitaly Kuznetsov <vkuznets@redhat.com>
|
|
Date: Sun, 29 Oct 2017 12:21:07 -0700
|
|
Subject: [PATCH 09/21] hyper-v: trace vmbus_onversion_response()
|
|
|
|
Add tracepoint to CHANNELMSG_VERSION_RESPONSE 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>
|
|
(cherry picked from commit c7924fb07a2646c9ff661efcad1167a1106d6019)
|
|
---
|
|
drivers/hv/channel_mgmt.c | 3 +++
|
|
drivers/hv/hv_trace.h | 11 +++++++++++
|
|
2 files changed, 14 insertions(+)
|
|
|
|
diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c
|
|
index 329e7f6491a4..b3a9b3119197 100644
|
|
--- a/drivers/hv/channel_mgmt.c
|
|
+++ b/drivers/hv/channel_mgmt.c
|
|
@@ -1120,6 +1120,9 @@ static void vmbus_onversion_response(
|
|
unsigned long flags;
|
|
|
|
version_response = (struct vmbus_channel_version_response *)hdr;
|
|
+
|
|
+ trace_vmbus_onversion_response(version_response);
|
|
+
|
|
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
|
|
|
|
list_for_each_entry(msginfo, &vmbus_connection.chn_msg_list,
|
|
diff --git a/drivers/hv/hv_trace.h b/drivers/hv/hv_trace.h
|
|
index 84c08cdf7235..2a046547107f 100644
|
|
--- a/drivers/hv/hv_trace.h
|
|
+++ b/drivers/hv/hv_trace.h
|
|
@@ -111,6 +111,17 @@ TRACE_EVENT(vmbus_ongpadl_torndown,
|
|
TP_printk("gpadl 0x%x", __entry->gpadl)
|
|
);
|
|
|
|
+TRACE_EVENT(vmbus_onversion_response,
|
|
+ TP_PROTO(const struct vmbus_channel_version_response *response),
|
|
+ TP_ARGS(response),
|
|
+ TP_STRUCT__entry(
|
|
+ __field(u8, ver)
|
|
+ ),
|
|
+ TP_fast_assign(__entry->ver = response->version_supported;
|
|
+ ),
|
|
+ TP_printk("version_supported %d", __entry->ver)
|
|
+ );
|
|
+
|
|
#undef TRACE_INCLUDE_PATH
|
|
#define TRACE_INCLUDE_PATH .
|
|
#undef TRACE_INCLUDE_FILE
|
|
--
|
|
2.16.0
|
|
|