hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/hv/hv_trace.h
....@@ -1,4 +1,4 @@
1
-// SPDX-License-Identifier: GPL-2.0
1
+/* SPDX-License-Identifier: GPL-2.0 */
22
33 #undef TRACE_SYSTEM
44 #define TRACE_SYSTEM hyperv
....@@ -44,10 +44,8 @@
4444 __entry->monitorid = offer->monitorid;
4545 __entry->is_ddc_int = offer->is_dedicated_interrupt;
4646 __entry->connection_id = offer->connection_id;
47
- memcpy(__entry->if_type,
48
- &offer->offer.if_type.b, 16);
49
- memcpy(__entry->if_instance,
50
- &offer->offer.if_instance.b, 16);
47
+ export_guid(__entry->if_type, &offer->offer.if_type);
48
+ export_guid(__entry->if_instance, &offer->offer.if_instance);
5149 __entry->chn_flags = offer->offer.chn_flags;
5250 __entry->mmio_mb = offer->offer.mmio_megabytes;
5351 __entry->sub_idx = offer->offer.sub_channel_index;
....@@ -286,8 +284,8 @@
286284 __field(int, ret)
287285 ),
288286 TP_fast_assign(
289
- memcpy(__entry->guest_id, &msg->guest_endpoint_id.b, 16);
290
- memcpy(__entry->host_id, &msg->host_service_id.b, 16);
287
+ export_guid(__entry->guest_id, &msg->guest_endpoint_id);
288
+ export_guid(__entry->host_id, &msg->host_service_id);
291289 __entry->ret = ret;
292290 ),
293291 TP_printk("sending guest_endpoint_id %pUl, host_service_id %pUl, "
....@@ -296,6 +294,25 @@
296294 )
297295 );
298296
297
+TRACE_EVENT(vmbus_send_modifychannel,
298
+ TP_PROTO(const struct vmbus_channel_modifychannel *msg,
299
+ int ret),
300
+ TP_ARGS(msg, ret),
301
+ TP_STRUCT__entry(
302
+ __field(u32, child_relid)
303
+ __field(u32, target_vp)
304
+ __field(int, ret)
305
+ ),
306
+ TP_fast_assign(
307
+ __entry->child_relid = msg->child_relid;
308
+ __entry->target_vp = msg->target_vp;
309
+ __entry->ret = ret;
310
+ ),
311
+ TP_printk("binding child_relid 0x%x to target_vp 0x%x, ret %d",
312
+ __entry->child_relid, __entry->target_vp, __entry->ret
313
+ )
314
+ );
315
+
299316 DECLARE_EVENT_CLASS(vmbus_channel,
300317 TP_PROTO(const struct vmbus_channel *channel),
301318 TP_ARGS(channel),