mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
hyper-v: trace vmbus_request_offers()
Add tracepoint to CHANNELMSG_REQUESTOFFERS sender. 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:
1 parent
c7924fb07a
commit
d6706e6336
2 files changed
+11
-1
No files matched your search
@@ -1224,9 +1224,11 @@ int vmbus_request_offers(void)
|
||||
|
||||
msg->msgtype = CHANNELMSG_REQUESTOFFERS;
|
||||
|
||||
|
||||
ret = vmbus_post_msg(msg, sizeof(struct vmbus_channel_message_header),
|
||||
true);
|
||||
|
||||
trace_vmbus_request_offers(ret);
|
||||
|
||||
if (ret != 0) {
|
||||
pr_err("Unable to request offers - %d\n", ret);
|
||||
|
||||
|
||||
@@ -122,6 +122,14 @@ TRACE_EVENT(vmbus_onversion_response,
|
||||
TP_printk("version_supported %d", __entry->ver)
|
||||
);
|
||||
|
||||
TRACE_EVENT(vmbus_request_offers,
|
||||
TP_PROTO(int ret),
|
||||
TP_ARGS(ret),
|
||||
TP_STRUCT__entry(__field(int, ret)),
|
||||
TP_fast_assign(__entry->ret = ret),
|
||||
TP_printk("sending ret %d", __entry->ret)
|
||||
);
|
||||
|
||||
#undef TRACE_INCLUDE_PATH
|
||||
#define TRACE_INCLUDE_PATH .
|
||||
#undef TRACE_INCLUDE_FILE
|
||||
|
||||
Reference in new issue
Block a user