• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM power
4 #define TRACE_INCLUDE_PATH trace/hooks
5 
6 #if !defined(_TRACE_HOOK_POWER_H) || defined(TRACE_HEADER_MULTI_READ)
7 #define _TRACE_HOOK_POWER_H
8 #include <trace/hooks/vendor_hooks.h>
9 
10 #ifdef __GENKSYMS__
11 #include <linux/sched.h>
12 #endif
13 
14 /* needed for enum freq_qos_req_type */
15 #include <linux/pm_qos.h>
16 
17 struct task_struct;
18 
19 DECLARE_HOOK(android_vh_try_to_freeze_todo,
20 	TP_PROTO(unsigned int todo, unsigned int elapsed_msecs, bool wq_busy),
21 	TP_ARGS(todo, elapsed_msecs, wq_busy));
22 
23 DECLARE_HOOK(android_vh_try_to_freeze_todo_logging,
24 	TP_PROTO(bool *logging_on),
25 	TP_ARGS(logging_on));
26 
27 DECLARE_HOOK(android_vh_try_to_freeze_todo_unfrozen,
28 	TP_PROTO(struct task_struct *p),
29 	TP_ARGS(p));
30 
31 enum freq_qos_req_type;
32 struct freq_qos_request;
33 struct freq_constraints;
34 
35 DECLARE_HOOK(android_vh_freq_qos_add_request,
36 	TP_PROTO(struct freq_constraints *qos, struct freq_qos_request *req,
37 		enum freq_qos_req_type type, int value, int ret),
38 	TP_ARGS(qos, req, type, value, ret));
39 
40 DECLARE_HOOK(android_vh_freq_qos_update_request,
41 		TP_PROTO(struct freq_qos_request *req, int value),
42 		TP_ARGS(req, value));
43 
44 DECLARE_HOOK(android_vh_freq_qos_remove_request,
45 		TP_PROTO(struct freq_qos_request *req),
46 		TP_ARGS(req));
47 
48 #endif /* _TRACE_HOOK_POWER_H */
49 /* This part must be outside protection */
50 #include <trace/define_trace.h>
51