ANDROID: Modify android_rvh_find_lowest_rq hook

The function find_lowest_rq now uses 2 parameters, sched_ctx and
exec_ctx.

Bug: 417372724
Change-Id: I14734236420a66025589623332252425361a585a
Signed-off-by: Rick Yiu <rickyiu@google.com>
This commit is contained in:
Rick Yiu
2025-05-13 15:17:28 +00:00
committed by Carlos Llamas
parent bad3ca6c52
commit 2c1385ae0e
2 changed files with 4 additions and 4 deletions

View File

@@ -40,9 +40,9 @@ DECLARE_RESTRICTED_HOOK(android_rvh_can_migrate_task,
TP_ARGS(p, dst_cpu, can_migrate), 1);
DECLARE_RESTRICTED_HOOK(android_rvh_find_lowest_rq,
TP_PROTO(struct task_struct *p, struct cpumask *local_cpu_mask,
int ret, int *lowest_cpu),
TP_ARGS(p, local_cpu_mask, ret, lowest_cpu), 1);
TP_PROTO(struct task_struct *sched_ctx, struct task_struct *exec_ctx,
struct cpumask *local_cpu_mask, int ret, int *lowest_cpu),
TP_ARGS(sched_ctx, exec_ctx, local_cpu_mask, ret, lowest_cpu), 1);
DECLARE_RESTRICTED_HOOK(android_rvh_prepare_prio_fork,
TP_PROTO(struct task_struct *p),

View File

@@ -1937,7 +1937,7 @@ static int find_lowest_rq(struct task_struct *sched_ctx, struct task_struct *exe
sched_ctx, exec_ctx, lowest_mask);
}
trace_android_rvh_find_lowest_rq(sched_ctx, lowest_mask, ret, &cpu);
trace_android_rvh_find_lowest_rq(sched_ctx, exec_ctx, lowest_mask, ret, &cpu);
if (cpu >= 0)
return cpu;