mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
hyper-v: trace vmbus_onversion_response()
Add tracepoint to CHANNELMSG_VERSION_RESPONSE handler. Signed-off-by: Vitaly Kuznetsov <[email protected]> Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
602a8c525c
commit
c7924fb07a
2 changed files with 14 additions and 0 deletions
|
|
@ -1127,6 +1127,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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue