public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Ftrace: can trace kthread?
@ 2010-10-21  7:55 Figo.zhang
  2010-10-21  8:10 ` Yong Zhang
  2010-10-21 13:33 ` Steven Rostedt
  0 siblings, 2 replies; 13+ messages in thread
From: Figo.zhang @ 2010-10-21  7:55 UTC (permalink / raw)
  To: Li Zefan, linux-kernel@vger.kernel.org, Steven Rostedt

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




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-10-21 13:33 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-21  7:55 Ftrace: can trace kthread? Figo.zhang
2010-10-21  8:10 ` Yong Zhang
2010-10-21  8:21   ` Figo.zhang
2010-10-21  8:39     ` Yong Zhang
2010-10-21  8:44       ` Figo.zhang
2010-10-21  8:54         ` Yong Zhang
2010-10-21  8:59           ` Figo.zhang
2010-10-21  9:08             ` Yong Zhang
2010-10-21  9:52               ` Figo.zhang
2010-10-21 10:08                 ` KOSAKI Motohiro
2010-10-21 10:12             ` Peter Zijlstra
2010-10-21 13:31               ` Steven Rostedt
2010-10-21 13:33 ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox