usb: musb: add tracepoints for register access
authorBin Liu <b-liu@ti.com>
Thu, 30 Jun 2016 17:12:24 +0000 (12:12 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Jul 2016 23:23:57 +0000 (08:23 +0900)
commitc74173fdd4fba23f237af48dff95f613f011cee3
treeed3800e7250aeadb11c488e57061e59f24b16780
parent086b288282884437cd588893d4501a8bbe4eb78c
usb: musb: add tracepoints for register access

This adds tracepoints to musb register read/write wrappers to get
trace log for register access.

The default tacepoint log prefix here would be musb_readX/writeX(),
which is not much helpful. So this patch let the tracepoints use
__buildin_return_address(0) to print the caller funciton name to
provide more context of the register access.

Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_trace.h