1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #undef TRACE_SYSTEM 3 #define TRACE_SYSTEM cpuidle_psci 4 #define TRACE_INCLUDE_PATH trace/hooks 5 #if !defined(_TRACE_HOOK_CPUIDLE_PSCI_H) || defined(TRACE_HEADER_MULTI_READ) 6 #define _TRACE_HOOK_CPUIDLE_PSCI_H 7 #include <trace/hooks/vendor_hooks.h> 8 /* 9 * Following tracepoints are not exported in tracefs and provide a 10 * mechanism for vendor modules to hook and extend functionality 11 */ 12 13 struct cpuidle_device; 14 15 DECLARE_HOOK(android_vh_cpuidle_psci_enter, 16 TP_PROTO(struct cpuidle_device *dev, bool s2idle), 17 TP_ARGS(dev, s2idle)); 18 19 DECLARE_HOOK(android_vh_cpuidle_psci_exit, 20 TP_PROTO(struct cpuidle_device *dev, bool s2idle), 21 TP_ARGS(dev, s2idle)); 22 23 #endif /* _TRACE_HOOK_CPUIDLE_PSCI_H */ 24 /* This part must be outside protection */ 25 #include <trace/define_trace.h> 26