]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: tracing: fix hd traces
authorAlex Elder <elder@linaro.org>
Tue, 24 May 2016 04:05:30 +0000 (23:05 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 27 May 2016 05:37:19 +0000 (22:37 -0700)
commit1f79046bd73abf5cc1dc5ad1f817a7851496ae0c
treeacb42fd27c399724261b7924af69fbfadf9ab9c7
parentdf732546ce127e3bd8d55f4f7073aebd4482438c
greybus: tracing: fix hd traces

Currently there are two trace points defined for the Greybus host
device structure.  One records information when a message gets sent,
and another when it gets received.  Neither of these is really a
host device event.

We have trace points defined for messages that dump information
about all sent and received messages.  As a result, the information
about sending messages over a host is redundant, and can go away.
(Note that the message traces may need a little refinement so they
produce all desired information.)

Instead of these trace points, define some that are directly
related to the host device abstraction: when one is created,
added, deleted, or released (destroyed).  These do not require
a CPort ID or payload size, so eliminate those two parameters
from the host device trace point prototype.  Change the trace
information recorded for a host device to be just a subset of
interesting fields in a host device.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/core.c
drivers/staging/greybus/es2.c
drivers/staging/greybus/greybus_trace.h
drivers/staging/greybus/hd.c