ANDROID: vendor_hooks: Add hooks for account process tick
Add a hook in account_process_tick, which help us to get information about the high load task and the cpu they running on. Bug: 183260319 Change-Id: I54162ce3c65bd69e08d2d4747e4d4883efe4c442 Signed-off-by: Liujie Xie <xieliujie@oppo.com>
This commit is contained in:
@@ -282,6 +282,9 @@ DECLARE_RESTRICTED_HOOK(android_rvh_util_est_update,
|
||||
TP_PROTO(struct cfs_rq *cfs_rq, struct task_struct *p, bool task_sleep, int *ret),
|
||||
TP_ARGS(cfs_rq, p, task_sleep, ret), 1);
|
||||
|
||||
DECLARE_HOOK(android_vh_account_task_time,
|
||||
TP_PROTO(struct task_struct *p, struct rq *rq, int user_tick),
|
||||
TP_ARGS(p, rq, user_tick));
|
||||
/* macro versions of hooks are no longer required */
|
||||
|
||||
#endif /* _TRACE_HOOK_SCHED_H */
|
||||
|
Reference in New Issue
Block a user