ANDROID: vendor_hooks: Add hooks for account irqtime process tick

Add a hook in irqtime_account_process_tick, which helps to get
information about the high load task.

Bug: 187904818

Change-Id: I644f7d66b09d047ca6b0a0fbd2915a6387c8c007
Signed-off-by: shenshen mao <maoshenshen@oppo.com>
Signed-off-by: Liangliang Li <liliangliang@vivo.com>
(cherry picked from commit 788b91fe28d979b037ab5129fc2b433062617d7c)
This commit is contained in:
Liangliang Li
2021-05-12 18:25:07 +08:00
committed by Treehugger Robot
parent 21812d46a6
commit b4c03a5c24
3 changed files with 6 additions and 0 deletions
+4
View File
@@ -261,6 +261,10 @@ DECLARE_HOOK(android_vh_free_task,
TP_PROTO(struct task_struct *p),
TP_ARGS(p));
DECLARE_HOOK(android_vh_irqtime_account_process_tick,
TP_PROTO(struct task_struct *p, struct rq *rq, int user_tick, int ticks),
TP_ARGS(p, rq, user_tick, ticks));
enum uclamp_id;
struct uclamp_se;
DECLARE_RESTRICTED_HOOK(android_rvh_uclamp_eff_get,
+1
View File
@@ -423,6 +423,7 @@ static void irqtime_account_process_tick(struct task_struct *p, int user_tick,
} else {
account_system_index_time(p, cputime, CPUTIME_SYSTEM);
}
trace_android_vh_irqtime_account_process_tick(p, this_rq(), user_tick, ticks);
}
static void irqtime_account_idle_ticks(int ticks)
+1
View File
@@ -87,6 +87,7 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_do_wake_up_sync);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_set_wake_flags);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_find_new_ilb);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_cpu_util_cfs_boost);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_irqtime_account_process_tick);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_dup_task_struct);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_find_energy_efficient_cpu);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_sched_pelt_multiplier);