Somewhere along this line?<div><br></div><div><div>sudo sh -c "echo 1 > /sys/kernel/debug/tracing/options/latency-format"</div><div>sudo sh -c "echo 1 > /sys/kernel/debug/tracing/tracing_enabled"</div>
<div>sudo sh -c "echo 1 > /sys/kernel/debug/tracing/tracing_on"</div><div>sudo sh -c "echo function > /sys/kernel/debug/tracing/current_tracer"</div><div>###Do whatever you need to do to trigger the bug</div>
<div>###Save the trace log:</div><div>sudo sh -c "bzip2 -c /sys/kernel/debug/tracing/trace > /tmp/trace.bz2"</div><div><br></div><div>But take note that this is possible only if FTRACE is enabled:</div><div><br>
</div><div>Mine Ubuntu 10.10's config (default):</div><div><br></div><div><div>/boot/config-2.6.35-22-generic:CONFIG_HAVE_FTRACE_NMI_ENTER=y</div><div>/boot/config-2.6.35-22-generic:CONFIG_HAVE_DYNAMIC_FTRACE=y</div><div>
/boot/config-2.6.35-22-generic:CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y</div><div>/boot/config-2.6.35-22-generic:CONFIG_FTRACE_NMI_ENTER=y</div><div>/boot/config-2.6.35-22-generic:CONFIG_FTRACE=y</div><div>/boot/config-2.6.35-22-generic:CONFIG_FTRACE_SYSCALLS=y</div>
<div>/boot/config-2.6.35-22-generic:CONFIG_DYNAMIC_FTRACE=y</div><div>/boot/config-2.6.35-22-generic:CONFIG_FTRACE_MCOUNT_RECORD=y</div><div>/boot/config-2.6.35-22-generic:# CONFIG_FTRACE_STARTUP_TEST is not set</div></div>
<div><br></div><div class="gmail_quote">On Tue, Oct 4, 2011 at 2:24 PM, Amit Nagal <span dir="ltr"><<a href="mailto:helloin.amit@gmail.com">helloin.amit@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi ,<br>
<br>
i have a gap of 2-3 ms between 2 usb interrupts callback .<br>
<br>
i want to know which kernel/user threads execute in the gap of 2-3 ms .<br>
<br>
basically i want to log schedule history between 2 usb interrupts callback .<br>
<br>
which data structures / functions can i use to furnish schedule<br>
logging history for this case ?<br>
<br>
Regards<br>
Amit Nagal<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>Peter Teoh<br>
</div>