• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM cpu
4 #define TRACE_INCLUDE_PATH trace/hooks
5 #if !defined(_TRACE_HOOK_CPU_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define _TRACE_HOOK_CPU_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 DECLARE_HOOK(android_vh_cpu_up,
14 	TP_PROTO(unsigned int cpu),
15 	TP_ARGS(cpu));
16 
17 DECLARE_HOOK(android_vh_cpu_down,
18 	TP_PROTO(unsigned int cpu),
19 	TP_ARGS(cpu));
20 
21 /* macro versions of hooks are no longer required */
22 
23 #endif /* _TRACE_HOOK_CPU_H */
24 /* This part must be outside protection */
25 #include <trace/define_trace.h>
26