]> 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)
commit5b98ba7483b75d39c5c62ca62f5edf2c88e3179e
treeed3800e7250aeadb11c488e57061e59f24b16780
parent0e3827790fafccd8d404aebeb4b4ec951e84c5d9
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