greybus: tracing: add module traces
authorAlex Elder <elder@linaro.org>
Tue, 24 May 2016 04:05:31 +0000 (23:05 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 27 May 2016 05:37:19 +0000 (22:37 -0700)
commit5451ea0e99cb7d58cbf90c7785cb50cc322a4434
treed2f234e099db0eeb91e426f8732e41776899ffb9
parent1f79046bd73abf5cc1dc5ad1f817a7851496ae0c
greybus: tracing: add module traces

Define a new gb_module trace point event class, used to trace events
associated with the module abstraction.  Define four basic trace
points for this--creation time, drop of last reference, before
registring interfaces and after de-registering them.

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/module.c