lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1260506225.2146.347.camel@gandalf.stny.rr.com>
Date:	Thu, 10 Dec 2009 23:37:05 -0500
From:	Steven Rostedt <rostedt@...dmis.org>
To:	monstr@...str.eu
Cc:	wuzhangjin@...il.com, linux-kernel@...r.kernel.org,
	John Williams <john.williams@...alogix.com>
Subject: Re: dynamic ftrace - graph

Hi Michal,

Sorry for such a late reply, you sent this email to me at the worst
time. My wife was having shoulder surgery and I heading for a
conference. I fell very far behind in email and I only now just noticed
this.


I'll answer these ever though you may already figured it out.

On Mon, 2009-11-09 at 17:52 +0100, Michal Simek wrote:
> 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.

Have you seen any difference in output with this?

I never thought about this order too much.

-- Steve

> 
> 
> 
> # 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
> 
> 


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ