greybus: tracing: define interface traces
authorAlex Elder <elder@linaro.org>
Tue, 24 May 2016 04:05:32 +0000 (23:05 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 27 May 2016 05:37:19 +0000 (22:37 -0700)
commitcb4c8441e5dac4994ab63c1426babda3102beda9
tree91ec3a21247a992ea2abddc17eaca940f0b94c68
parent5451ea0e99cb7d58cbf90c7785cb50cc322a4434
greybus: tracing: define interface traces

Define a new gb_module trace point event class, used to trace events
associated with the interface abstraction.  Define four basic trace
points for this--creation time, drop of last reference, before
registring interfaces and after de-registering them.  In addition,
define traces for activating and deactivating, and enabling and
disabling an interface.

Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_trace.h
drivers/staging/greybus/interface.c