]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd4f9818712483e8a7947f3cb520b5c77d8a0687c
treeed3800e7250aeadb11c488e57061e59f24b16780
parent9f16a903523d28a8913cb113ba2d9e1dace97e23
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