Re: [RFC PATCH 10/11] mcount tracer show task comm and pid

From: Ingo Molnar
Date: Sun Jan 06 2008 - 10:38:48 EST



* Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxx> wrote:

> > @@ -34,6 +34,7 @@ mctracer_add_trace_entry(struct mctracer
> > {
> > unsigned long idx, idx_next;
> > struct mctracer_entry *entry;
> > + struct task_struct *tsk = current;
>
> Aren't there situations, like in the middle of a context switch, where
> current is not valid ? Is also poses a problem for early boot, and NMI
> tracing.

no such problems on x86.

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/