[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100121132255.GI5017@nowhere>
Date: Thu, 21 Jan 2010 14:22:58 +0100
From: Frederic Weisbecker <fweisbec@...il.com>
To: Lai Jiangshan <laijs@...fujitsu.com>
Cc: Ingo Molnar <mingo@...e.hu>, Steven Rostedt <rostedt@...dmis.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] tracing, function_graph: simplify test for tracing
On Wed, Jan 13, 2010 at 07:38:30PM +0800, Lai Jiangshan wrote:
>
> For function_graph, a calling function is to be traced only when
> it is enabled or it is nested in a enabled function.
>
> Current code uses TSK_TRACE_FL_GRAPH to test whether it is nested or not.
> read the code, we can get this:
> (trace->depth > 0) <==> (TSK_TRACE_FL_GRAPH is set)
>
> trace->depth is more explicit to tell that it is nested.
> So we use trace->depth directly and simplify the code.
>
> No functionality is changed.
> TSK_TRACE_FL_GRAPH is not removed now, it is left for future usage.
>
> Signed-off-by: Lai Jiangshan <laijs@...fujitsu.com>
> ---
I've queued it. Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists