[ltt-dev] [patch 5/9] LTTng instrumentation scheduler fix task migration

Ingo Molnar mingo at elte.hu
Tue Mar 24 13:53:17 EDT 2009


* Mathieu Desnoyers <mathieu.desnoyers at 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




More information about the lttng-dev mailing list