Commit 6879dbf1 authored by Alex Elder's avatar Alex Elder Committed by Greg Kroah-Hartman

greybus: tracing: add interface mode_switch

Add the value of an interface's mode_switch field to the information
tracked and reported for tracing.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 14a36ae7
......@@ -175,6 +175,7 @@ DECLARE_EVENT_CLASS(gb_interface,
__field(int, ejected) /* bool */
__field(int, active) /* bool */
__field(int, enabled) /* bool */
__field(int, mode_switch) /* bool */
),
TP_fast_assign(
......@@ -185,12 +186,13 @@ DECLARE_EVENT_CLASS(gb_interface,
__entry->ejected = intf->ejected;
__entry->active = intf->active;
__entry->enabled = intf->enabled;
__entry->mode_switch = intf->mode_switch;
),
TP_printk("greybus: intf_id=%hhu device_id=%hhu module_id=%hhu D=%d J=%d A=%d E=%d",
TP_printk("greybus: intf_id=%hhu device_id=%hhu module_id=%hhu D=%d J=%d A=%d E=%d M=%d",
__entry->id, __entry->device_id, __entry->module_id,
__entry->disconnected, __entry->ejected, __entry->active,
__entry->enabled)
__entry->enabled, __entry->mode_switch)
);
#define DEFINE_INTERFACE_EVENT(name) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment