diff options
author | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2015-09-18 16:38:45 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-09-18 14:07:28 -0700 |
commit | 5c8ad599b942a9a027045e69fc76c84f23c0acf0 (patch) | |
tree | 349c5dabf6cfe89e0869f031d4585654fc1747bd /drivers/staging/greybus/Makefile | |
parent | bb03ed920166a1fa2df77d5ef96ff1d749fa2967 (diff) | |
download | op-kernel-dev-5c8ad599b942a9a027045e69fc76c84f23c0acf0.zip op-kernel-dev-5c8ad599b942a9a027045e69fc76c84f23c0acf0.tar.gz |
greybus: operation, core: hook tracepoints into message opertions
This patch hooks tracepoints for greybus messages
- trace_gb_message_send
- trace_gb_message_recv_request
- trace_gb_message_recv_response
- trace_gb_message_cancel_outgoing
- trace_gb_message_cancel_incoming
It provides standard tracepoints at
/sys/kernel/debug/tracing/events/greybus/gb_message_send
/sys/kernel/debug/tracing/events/greybus/gb_message_recv_response
/sys/kernel/debug/tracing/events/greybus/gb_message_recv_request
/sys/kernel/debug/tracing/events/greybus/gb_message_cancel_outgoing
/sys/kernel/debug/tracing/events/greybus/gb_message_cancel_incoming
Giving outputs like
gb_message_recv_request: greybus:1-1.1:0 op=0001 if_id=0000 hd_id=0000 l=2
gb_message_send: greybus:1-1.1:0 op=0001 if_id=0000 hd_id=0000 l=2
Similarly perf events can be viewed with standard perf tools e.g.
root@beaglebone:~# perf list 'greybus:*'
greybus:gb_message_send [Tracepoint event]
greybus:gb_message_recv_request [Tracepoint event]
greybus:gb_message_recv_response [Tracepoint event]
greybus:gb_message_cancel_outgoing [Tracepoint event]
greybus:gb_message_cancel_incoming [Tracepoint event]
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/Makefile')
-rw-r--r-- | drivers/staging/greybus/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/greybus/Makefile b/drivers/staging/greybus/Makefile index 31b025d..af28053 100644 --- a/drivers/staging/greybus/Makefile +++ b/drivers/staging/greybus/Makefile @@ -82,6 +82,9 @@ endif # add -Wall to try to catch everything we can. ccflags-y := -Wall +# needed for trace events +ccflags-y += -I$(src) + all: module module: |