usb: mtu3: add tracepoints to help debug
This patch implements a few initial tracepoints for the mtu3 driver. More traces can be added as necessary in order to ease the task of debugging. Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
4aab6ad24a
commit
83374e035b
@@ -39,4 +39,12 @@ static inline void ssusb_debugfs_remove_root(struct ssusb_mtk *ssusb) {}
|
||||
|
||||
#endif /* CONFIG_DEBUG_FS */
|
||||
|
||||
#if IS_ENABLED(CONFIG_TRACING)
|
||||
void mtu3_dbg_trace(struct device *dev, const char *fmt, ...);
|
||||
|
||||
#else
|
||||
static inline void mtu3_dbg_trace(struct device *dev, const char *fmt, ...) {}
|
||||
|
||||
#endif /* CONFIG_TRACING */
|
||||
|
||||
#endif /* __MTU3_DEBUG_H__ */
|
||||
|
Reference in New Issue
Block a user