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

From: Ingo Molnar
Date: Tue Mar 24 2009 - 13:54:19 EST



* Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/