Re: Query: is it possible to trace at exactly start and end time of tracing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 13 Sep 2013 02:57:35 +0000
"Du, Yuyang" <yuyang.du@xxxxxxxxx> 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux