Re: Ftrace: can trace kthread?
From: Steven Rostedt
Date: Thu Oct 21 2010 - 09:33:55 EST
Just a quick note. Please send email to my rostedt@xxxxxxxxxxx address.
I do not check my srostedt@xxxxxxxxxx address as often.
I know, I know, I have it as my Author tag (but not my signed off by)
and I had to add it to my business card. I just could not be so bold as
to put my goodmis.org address on my Red Hat business card ;-) And there
was no good way to add it as a secondary.
-- Steve
On Thu, 2010-10-21 at 15:55 +0800, Figo.zhang wrote:
> hi,
>
> is it ftrace in 2.6.36-rc8 can trace the kthread? i want to trace the
> kswapd/bdi_writeback_thread, but not success. i am sure that kswapd is
> running, because i let the system eat huge memory. i can trace some
> function such as __do_fault. what is issue on it?
>
> Best,
> Figo.zhang
>
>
> here is my ftrace script.
> i = 1
> while true;
> do
> echo 1 > /proc/sys/kernel/ftrace_enabled
> echo function_graph > /sys/kernel/debug/tracing/current_tracer
> echo kswapd > /sys/kernel/debug/tracing/set_graph_function
> echo 1 > /sys/kernel/debug/tracing/tracing_on
> echo 1 > /sys/kernel/debug/tracing/tracing_enabled
> sleep 1
> echo 0 > /sys/kernel/debug/tracing/tracing_enabled
> cat /sys/kernel/debug/tracing/trace > ftrace.kswap.log.$i
>
> let i=i+1;
>
> done
>
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/