Re: [patch 5/9] LTTng instrumentation scheduler fix task migration

Ingo Molnar
2009-03-24T17:54:19Z

* Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> wrote:

> The scheduler migration only needs to pass the task struct pointer
> and the destination CPU. The source CPU can be found by using
> task_cpu(p) in the probe.

> +++ linux-2.6-lttng/include/trace/sched.h 2009-01-30 10:43:19.000000000 -0500
> @@ -30,8 +30,8 @@ DECLARE_TRACE(sched_switch,
> TPARGS(rq, prev, next));
>
> DECLARE_TRACE(sched_migrate_task,
> - TPPROTO(struct task_struct *p, int orig_cpu, int dest_cpu),
> - TPARGS(p, orig_cpu, dest_cpu));
> + TPPROTO(struct task_struct *p, int dest_cpu),
> + TPARGS(p, dest_cpu));

Makes sense. Since this tracepoint has been changed in the tracing
tree already, mind doing this change in that context?

Thanks,

Ingo