schedule history between 2 interrupts
Peter Teoh
htmldeveloper at gmail.com
Tue Oct 4 22:42:04 EDT 2011
Somewhere along this line?
sudo sh -c "echo 1 > /sys/kernel/debug/tracing/options/latency-format"
sudo sh -c "echo 1 > /sys/kernel/debug/tracing/tracing_enabled"
sudo sh -c "echo 1 > /sys/kernel/debug/tracing/tracing_on"
sudo sh -c "echo function > /sys/kernel/debug/tracing/current_tracer"
###Do whatever you need to do to trigger the bug
###Save the trace log:
sudo sh -c "bzip2 -c /sys/kernel/debug/tracing/trace > /tmp/trace.bz2"
But take note that this is possible only if FTRACE is enabled:
Mine Ubuntu 10.10's config (default):
/boot/config-2.6.35-22-generic:CONFIG_HAVE_FTRACE_NMI_ENTER=y
/boot/config-2.6.35-22-generic:CONFIG_HAVE_DYNAMIC_FTRACE=y
/boot/config-2.6.35-22-generic:CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
/boot/config-2.6.35-22-generic:CONFIG_FTRACE_NMI_ENTER=y
/boot/config-2.6.35-22-generic:CONFIG_FTRACE=y
/boot/config-2.6.35-22-generic:CONFIG_FTRACE_SYSCALLS=y
/boot/config-2.6.35-22-generic:CONFIG_DYNAMIC_FTRACE=y
/boot/config-2.6.35-22-generic:CONFIG_FTRACE_MCOUNT_RECORD=y
/boot/config-2.6.35-22-generic:# CONFIG_FTRACE_STARTUP_TEST is not set
On Tue, Oct 4, 2011 at 2:24 PM, Amit Nagal <helloin.amit at gmail.com> wrote:
> Hi ,
>
> i have a gap of 2-3 ms between 2 usb interrupts callback .
>
> i want to know which kernel/user threads execute in the gap of 2-3 ms .
>
> basically i want to log schedule history between 2 usb interrupts callback
> .
>
> which data structures / functions can i use to furnish schedule
> logging history for this case ?
>
> Regards
> Amit Nagal
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
--
Regards,
Peter Teoh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20111005/40b6c638/attachment.html
More information about the Kernelnewbies
mailing list