On Fri, 13 Sep 2013 02:57:35 +0000
"Du, Yuyang" <[email protected]> wrote:

> Yeah.. thanks.

Without knowing what state you want to trace, I have no idea how to
implement it. But what you could do is to write a module and basically
implement your own trace on/off, as tracing_on/off can be done by
modules

tracing_on()
tracing_off()

and you can create your own tracepoint in the module that traces the
state you want to trace. Or just use trace_printk().

        tracing_on();
        trace_printk("on state = %d\n", state);


[...]


        trace_printk("off state = %d\n", state);
        tracing_off();

-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-trace-users" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to