[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090227004513.f53ed532.akpm@linux-foundation.org>
Date: Fri, 27 Feb 2009 00:45:13 -0800
From: Andrew Morton <akpm@...ux-foundation.org>
To: Ingo Molnar <mingo@...e.hu>
Cc: Frederic Weisbecker <fweisbec@...il.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
linux-kernel@...r.kernel.org, Steven Rostedt <rostedt@...dmis.org>,
Lai Jiangshan <laijs@...fujitsu.com>,
Peter Zijlstra <peterz@...radead.org>
Subject: Re: [PATCH][RFC] vsprintf: unify the format decoding layer for its
3 users
On Fri, 27 Feb 2009 09:32:12 +0100 Ingo Molnar <mingo@...e.hu> wrote:
>
>
> a printf variant that outputs not into a string buffer but into
> a binary-values buffer.
Oh, OK.
Of course, parsing a printf string (using our
nobody-bothered-optimising-it parser) isn't particularly efficient
either.
Is there a case here for adding a new way of describing how to
serialise the incoming data? Perhaps with a new and simpler control
string or perhaps even
struct ftrace_thing ft;
init_ftrace_thing(&ft, "%d %l %s");
add_ftrace_thing_int(&ft, some_int);
add_ftrace_thing_long(&ft, some_long);
add_ftrace_thing_string(&ft, some_string);
emit_ftrace_thing(&ft);
or some similar thing.
--
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