]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: tracing: define events using macros
authorAlex Elder <elder@linaro.org>
Fri, 20 May 2016 16:44:55 +0000 (11:44 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Sat, 21 May 2016 00:19:03 +0000 (17:19 -0700)
commit630175698e9b3a1e24d62dddb9059f5bdcbb7cec
treebc6ee1425ca241fa7043bfdf5d8231e9edfbf4f4
parentf866e66f368ee58954d83e6e99194ffcd6dfcad5
greybus: tracing: define events using macros

A tracepoint event is defined with TP_PROTO() and TP_ARGS macros
that match that of the event's class.  A lot of repetition (and
opportunity for inadvertent errors) in tracepoint event definitions
can be eliminated by using a macro.  Define and use class-specific
event definition macros for gb_message and gb_host_device class
events.

Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Jeffrey Carlyle <jcarlyle@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_trace.h