From: Ingo Molnar Date: Sun, 06 Jan 2008 15:37:58 +0000 Subject: Re: [RFC PATCH 10/11] mcount tracer show task comm and pid Message-Id: <20080106153758.GA27863@elte.hu> List-Id: References: <20080103071609.478486470@goodmis.org> <20080103072228.212967487@goodmis.org> <20080103175650.GE30582@Krystal> In-Reply-To: <20080103175650.GE30582@Krystal> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Mathieu Desnoyers Cc: Steven Rostedt , LKML , Linus Torvalds , Andrew Morton , Peter Zijlstra , Christoph Hellwig , Gregory Haskins , Arnaldo Carvalho de Melo , "William L. Irwin" , Steven Rostedt * Mathieu Desnoyers 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