diff options
author | Alex Elder <elder@linaro.org> | 2016-06-03 15:55:38 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-06-03 17:03:23 -0700 |
commit | 495787a792ac498843b25e5569597c24cd026f2b (patch) | |
tree | 049c9b84a2d348b806e0d033df5f26320a70d481 /drivers/staging/greybus/connection.c | |
parent | greybus: tracing: define connection traces (diff) | |
download | linux-dev-495787a792ac498843b25e5569597c24cd026f2b.tar.xz linux-dev-495787a792ac498843b25e5569597c24cd026f2b.zip |
greybus: tracing: add timing traces
Bryan reports he used certain message traces to determine when time
sync messages transit the boundary between the Greybus core and the
host device. This patch adds two trace events--one a message event
for outbound messages (because it indicates its operation and its
destination), and one host device event for incoming messages
(because message information isn't available as early as desired).
These events are being created to allow the same sort of analysis
of messages without having to store extra information for every
message trace. (The next patch changes the information a message
trace records.)
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/connection.c')
-rw-r--r-- | drivers/staging/greybus/connection.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c index d35e95a17c56..7def600ddeb5 100644 --- a/drivers/staging/greybus/connection.c +++ b/drivers/staging/greybus/connection.c @@ -81,6 +81,8 @@ void greybus_data_rcvd(struct gb_host_device *hd, u16 cport_id, { struct gb_connection *connection; + trace_gb_hd_in(hd); + connection = gb_connection_hd_find(hd, cport_id); if (!connection) { dev_err(&hd->dev, |