• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 <linux/tracepoint.h>
8 #include <trace/hooks/vendor_hooks.h>
9 /*
10  * Following tracepoints are not exported in tracefs and provide a
11  * mechanism for vendor modules to hook and extend functionality
12  */
13 
14 #ifdef __GENKSYMS__
15 struct cpuidle_device;
16 #else
17 /* struct cpuidle_device */
18 #include <linux/cpuidle.h>
19 #endif /* __GENKSYMS__ */
20 DECLARE_HOOK(android_vh_cpuidle_psci_enter,
21 	TP_PROTO(struct cpuidle_device *dev, bool s2idle),
22 	TP_ARGS(dev, s2idle));
23 
24 DECLARE_HOOK(android_vh_cpuidle_psci_exit,
25 	TP_PROTO(struct cpuidle_device *dev, bool s2idle),
26 	TP_ARGS(dev, s2idle));
27 
28 #endif /* _TRACE_HOOK_CPUIDLE_PSCI_H */
29 /* This part must be outside protection */
30 #include <trace/define_trace.h>
31