Re: [patch] trace: Add user-space event tracing/injection
From: Darren Hart
Date: Thu Nov 18 2010 - 12:07:23 EST
On 11/18/2010 12:55 AM, Ingo Molnar wrote:
* Darren Hart<dvhart@xxxxxxxxxxxxxxx> wrote:
Ideally I would like to see something just like trace_printf()
without having to define it myself in each of my testcases. [...]
We can make the prctl a single-argument thing, at the cost of not allowing \0 in the
content. (which is probably sane anyway)
That way deployment is super-simple:
prctl(35, "My Trace Message");
...
if (asprintf(&msg, "My Trace Message: %d\n", 1234) != -1) {
prctl(35, *msg);
free(*msg);
}
I think that would be ideal.
--
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/