• 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 struct task_struct;
11 DECLARE_HOOK(android_vh_try_to_freeze_todo,
12 	TP_PROTO(unsigned int todo, unsigned int elapsed_msecs, bool wq_busy),
13 	TP_ARGS(todo, elapsed_msecs, wq_busy));
14 
15 DECLARE_HOOK(android_vh_try_to_freeze_todo_unfrozen,
16 	TP_PROTO(struct task_struct *p),
17 	TP_ARGS(p));
18 
19 enum freq_qos_req_type;
20 struct freq_qos_request;
21 struct freq_constraints;
22 
23 DECLARE_HOOK(android_vh_freq_qos_add_request,
24 	TP_PROTO(struct freq_constraints *qos, struct freq_qos_request *req,
25 		enum freq_qos_req_type type, int value, int ret),
26 	TP_ARGS(qos, req, type, value, ret));
27 
28 DECLARE_HOOK(android_vh_freq_qos_update_request,
29 		TP_PROTO(struct freq_qos_request *req, int value),
30 		TP_ARGS(req, value));
31 
32 DECLARE_HOOK(android_vh_freq_qos_remove_request,
33 		TP_PROTO(struct freq_qos_request *req),
34 		TP_ARGS(req));
35 
36 struct task_struct;
37 struct seq_file;
38 DECLARE_HOOK(android_vh_update_uid_stats,
39 		TP_PROTO(u64 *combine_data, u64 *usw_data,
40 			struct task_struct *task, int type),
41 		TP_ARGS(combine_data, usw_data, task, type));
42 
43 DECLARE_HOOK(android_vh_append_total_power,
44 		TP_PROTO(struct seq_file *m, uid_t uid, u64 total_utime,
45 			u64 total_stime, u64 total_power),
46 		TP_ARGS(m, uid, total_utime, total_stime, total_power));
47 
48 #endif /* _TRACE_HOOK_POWER_H */
49 /* This part must be outside protection */
50 #include <trace/define_trace.h>
51