]> Pileus Git - ~andy/linux/commit
ftrace: Clean up function probe methods
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Tue, 12 Mar 2013 19:07:59 +0000 (15:07 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 Mar 2013 04:36:02 +0000 (00:36 -0400)
commite67efb93f0e9130174293ffaa5975f87b301b531
tree344cadb55d5d50e0ae0473a8404a6893d8a3183b
parent57d01ad09721fb7719c4c8c72b434398186f35a0
ftrace: Clean up function probe methods

When a function probe is created, each function that the probe is
attached to, a "callback" method is called. On release of the probe,
each function entry calls the "free" method.

First, "callback" is a confusing name and does not really match what
it does. Callback sounds like it will be called when the probe
triggers. But that's not the case. This is really an "init" function,
so lets rename it as such.

Secondly, both "init" and "free" do not pass enough information back
to the handlers. Pass back the ops, ip and data for each time the
method is called. We have the information, might as well use it.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/ftrace.h
kernel/trace/ftrace.c