public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* dynamic ftrace - graph
@ 2009-11-09 16:52 Michal Simek
  2009-12-11  4:37 ` Steven Rostedt
  0 siblings, 1 reply; 9+ messages in thread
From: Michal Simek @ 2009-11-09 16:52 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: wuzhangjin, linux-kernel, John Williams

Hi Steve and others,

I have working dynamic ftrace function. :-)

I look at __ftrace_modify_code function and I have one question about.
Below are function which are called when I enable function_graph.

I personally think that make more sense to call 
ftrace_enable_ftrace_graph_caller before ftrace_update_ftrace_func.
The reason for it is that graph_caller enable calling graph tracing 
which should be setup before ftrace_update_ftrace_func which enable 
whole tracing function.



# cd ; mkdir /debug; mount -t debugfs none /debug; cat 
/debug/tracing/available_tracers; echo function_graph > 
/debug/tracing/current_tracer;echo 0 > /debug/tra
cing/tracing_enabled;cat /debug/tracing/trace | head -n 10
function_graph function sched_switch nop

ftrace_update_ftrace_func 0xc0009100 0xc00091c4, 0xb000c000, 0x32809100
ftrace_enable_ftrace_graph_caller
# tracer: function_graph


For disabling graph trace is sequence ok I think.

# echo function > /debug/tracing/current_tracer
ftrace_disable_ftrace_graph_caller
ftrace_update_ftrace_func 0xc006afe4 0xc00091c4, 0xb000c006, 0x3280afe4


What do you think?

Thanks,
Michal


-- 
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian

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

end of thread, other threads:[~2009-12-11 16:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-09 16:52 dynamic ftrace - graph Michal Simek
2009-12-11  4:37 ` Steven Rostedt
2009-12-11  7:29   ` Michal Simek
2009-12-11 14:37     ` Steven Rostedt
2009-12-11 14:40       ` Michal Simek
2009-12-11 14:54         ` Steven Rostedt
2009-12-11 15:28           ` Michal Simek
2009-12-11 15:54             ` Steven Rostedt
2009-12-11 16:42               ` Michal Simek

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