aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/kernel/trace/trace_sched_wakeup.c
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2014-01-10 17:51:01 -0500
committerSteven Rostedt <rostedt@goodmis.org>2014-02-20 12:13:08 -0500
commitbf6065b5c7014ab30383405718c7a6b96d2cbdb2 (patch)
tree4384129e5a26ee055cc58059fc680e5d8e4ca18c /kernel/trace/trace_sched_wakeup.c
parenttracing: Pass trace_array to set_flag callback (diff)
downloadwireguard-linux-bf6065b5c7014ab30383405718c7a6b96d2cbdb2.tar.xz
wireguard-linux-bf6065b5c7014ab30383405718c7a6b96d2cbdb2.zip
tracing: Pass trace_array to flag_changed callback
As options (flags) may affect instances instead of being global the flag_changed() callbacks need to receive the trace_array descriptor of the instance they will be modifying. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_sched_wakeup.c')
-rw-r--r--kernel/trace/trace_sched_wakeup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/trace/trace_sched_wakeup.c b/kernel/trace/trace_sched_wakeup.c
index f0bbdc261028..e14da5e97a69 100644
--- a/kernel/trace/trace_sched_wakeup.c
+++ b/kernel/trace/trace_sched_wakeup.c
@@ -179,8 +179,10 @@ static void wakeup_function_set(int set)
unregister_wakeup_function(is_graph());
}
-static int wakeup_flag_changed(struct tracer *tracer, u32 mask, int set)
+static int wakeup_flag_changed(struct trace_array *tr, u32 mask, int set)
{
+ struct tracer *tracer = tr->current_trace;
+
if (mask & TRACE_ITER_FUNCTION)
wakeup_function_set(set);