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 <[email protected]> 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 > [email protected] > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > -- Regards, Peter Teoh
_______________________________________________ Kernelnewbies mailing list [email protected] http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
