diff options
author | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2015-09-22 18:06:38 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-09-23 12:39:24 -0700 |
commit | 32b2b16737d40d0aea6e7a02740ce47acd4fdd2e (patch) | |
tree | cfb4ee46ddd5170b03077b198e4e9efb16887329 /drivers/staging/greybus/core.c | |
parent | d090446a915f109e65f3b2643269b134e1ddb4ef (diff) |
greybus: tracepoints: add tracepoints for host_device tx/rx
This patch adds new tracepoint declarations to greybus_trace.h to allow for
capture of greybus host device tx and rx events. These two tracepoints
allow an observer to see the point where the hardware interface driver
performs the relevant read or write to receive or write the data it's been
given from the higher layer greybus driver.
The following two new tracepoints are declared:
- trace_gb_host_device_send
- trace_gb_host_device_recv
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/core.c')
-rw-r--r-- | drivers/staging/greybus/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/greybus/core.c b/drivers/staging/greybus/core.c index 765e0db844f1..ea23aaff9465 100644 --- a/drivers/staging/greybus/core.c +++ b/drivers/staging/greybus/core.c @@ -13,6 +13,9 @@ #include "greybus.h" #include "greybus_trace.h" +EXPORT_TRACEPOINT_SYMBOL_GPL(gb_host_device_send); +EXPORT_TRACEPOINT_SYMBOL_GPL(gb_host_device_recv); + /* Allow greybus to be disabled at boot if needed */ static bool nogreybus; #ifdef MODULE |