1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #undef TRACE_SYSTEM 3 #define TRACE_SYSTEM usb 4 #undef TRACE_INCLUDE_PATH 5 #define TRACE_INCLUDE_PATH trace/hooks 6 #if !defined(_TRACE_HOOK_USB_H) || defined(TRACE_HEADER_MULTI_READ) 7 #define _TRACE_HOOK_USB_H 8 #include <linux/tracepoint.h> 9 #include <linux/usb.h> 10 #include <trace/hooks/vendor_hooks.h> 11 /* 12 * Following tracepoints are not exported in tracefs and provide a 13 * mechanism for vendor modules to hook and extend functionality 14 */ 15 16 DECLARE_HOOK(android_vh_usb_dev_suspend, 17 TP_PROTO(struct usb_device *udev, pm_message_t msg, int *bypass), 18 TP_ARGS(udev, msg, bypass)); 19 20 DECLARE_HOOK(android_vh_usb_dev_resume, 21 TP_PROTO(struct usb_device *udev, pm_message_t msg, int *bypass), 22 TP_ARGS(udev, msg, bypass)); 23 24 #endif /* _TRACE_HOOK_USB_H */ 25 /* This part must be outside protection */ 26 #include <trace/define_trace.h> 27 28