ANDROID: vendor_hooks: Add hooks to record the time of the process in various states
These hooks will do the following works: a) record the time of the process in various states b) Make corresponding optimization strategies in different hooks Bug: 205938967 Signed-off-by: Liujie Xie <xieliujie@oppo.com> Change-Id: Ia3c47bbf0aadd17337ce18fd910343b1b8c3ef93
This commit is contained in:
@@ -354,6 +354,10 @@ DECLARE_HOOK(android_vh_prepare_update_load_avg_se,
|
||||
TP_PROTO(struct sched_entity *se, int flags),
|
||||
TP_ARGS(se, flags));
|
||||
|
||||
DECLARE_HOOK(android_vh_sched_stat_runtime_rt,
|
||||
TP_PROTO(struct task_struct *tsk, u64 delta),
|
||||
TP_ARGS(tsk, delta));
|
||||
|
||||
DECLARE_HOOK(android_vh_finish_update_load_avg_se,
|
||||
TP_PROTO(struct sched_entity *se, int flags),
|
||||
TP_ARGS(se, flags));
|
||||
|
Reference in New Issue
Block a user