[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.1.10.0811122140590.7458@gandalf.stny.rr.com>
Date: Wed, 12 Nov 2008 21:43:02 -0500 (EST)
From: Steven Rostedt <rostedt@...dmis.org>
To: Andrew Morton <akpm@...ux-foundation.org>
cc: linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...e.hu>,
Thomas Gleixner <tglx@...utronix.de>,
Pekka Paalanen <pq@....fi>,
Frederic Weisbecker <fweisbec@...il.com>,
Steven Rostedt <srostedt@...hat.com>
Subject: Re: [PATCH 1/1] ftrace: do not update max buffer with no users
On Wed, 12 Nov 2008, Andrew Morton wrote:
> This sort of thing:
>
> +#ifdef CONFIG_TRACER_MAX_TRACE
> if (current_trace && current_trace->print_max)
> iter->tr = &max_tr;
> else
> +#endif
> iter->tr = inode->i_private;
>
> is particularly regrettable.
Yeah, I know it is particularly ugly :-(
I was hoping to spend some time to find a way to clean it up. The other
answer is to just scrap the config all together, and let the unused max
latency tracer buffer be allocated and take up space (with no users).
-- Steve
--
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