Re: [PATCH v5 6/9] sched: Adapt sched tracepoints for RV task model

From: Nam Cao
Date: Mon Jul 28 2025 - 12:07:51 EST


On Mon, Jul 28, 2025 at 03:50:18PM +0200, Gabriele Monaco wrote:
> Add the following tracepoint:
> * sched_set_need_resched(tsk, cpu, tif)
> Called when a task is set the need resched [lazy] flag
>
> Remove the unused ip parameter from sched_entry and sched_exit and alter
> sched_entry to have a value of preempt consistent with the one used in
> sched_switch.
>
> Also adapt all monitors using sched_{entry,exit} to avoid breaking build.

Does it make sense to split this patch into two, one for
sched_set_need_resched and another for sched_{entry,exit}?

Nam