diff options
author | Alex Elder <elder@linaro.org> | 2016-06-03 15:55:35 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-06-03 17:03:23 -0700 |
commit | 6879dbf15e866565cde7591337c2fcca7440ab6f (patch) | |
tree | 33c4c94c6ca938d986f4c1ed2bb964e7add5fc20 /drivers/staging/greybus/greybus_trace.h | |
parent | 14a36ae70429f2872a8f750c60c75d14862761dc (diff) | |
download | linux-6879dbf15e866565cde7591337c2fcca7440ab6f.tar.bz2 |
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: Alex Elder <elder@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/greybus_trace.h')
-rw-r--r-- | drivers/staging/greybus/greybus_trace.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/staging/greybus/greybus_trace.h b/drivers/staging/greybus/greybus_trace.h index 5ecb504f0f65..80c428d9d1b1 100644 --- a/drivers/staging/greybus/greybus_trace.h +++ b/drivers/staging/greybus/greybus_trace.h @@ -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) \ |