Re: [PATCH v3] sched_ext: Implement SCX_OPS_TRACK_MIGRATION
From: Henry Huang
Date: Thu Jun 26 2025 - 23:44:00 EST
On Wed, 25 Jun 2025 13:07:04 -1000, Tejun Heo wrote:
> Even in such cases, wouldn't something like the following work?
>
> void my_running(struct task_struct *p)
> {
> struct my_task_ctx *taskc;
>
> if (!(taskc = lookup_task_ctx(p)))
> return;
> if (taskc->cpu != scx_bpf_task_cpu(p)) {
> /* update other stuff */
> taskc->cpu = scx_bpf_task_cpu(p);
> }
> }
Thank you for your reply. I will try it again and will reach out via
email if I have any other questions.
--
Henry