Re: [ANNOUNCE] New utility: 'trace'

From: Darren Hart
Date: Tue Nov 16 2010 - 17:48:16 EST


On 11/16/2010 02:09 PM, Darren Hart wrote:
On 11/16/2010 02:03 PM, Peter Zijlstra wrote:
On Tue, 2010-11-16 at 22:59 +0100, Ingo Molnar wrote:


Would you be interested in helping out with (and testing) such a more
generic
approach?

how about having perf-record open a named pipe and rewriting everything
that comes in through that as an event and storing it in the buffer?

When I'm tracing an app or test-case, I want to be able to quickly add
and change strings. I like the trace_printk sort of access as it avoids
having to do a bunch of string formatting (sprintf()) calls in the test
app.

Sorry - fprintf would work for Peter's suggestion. I had the PR_SET_NAME with a short string or another call with jsut a plain C string - those would require the user doing the string formatting first.

--
Darren Hart
Yocto Linux Kernel
--
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/