summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2017-10-11 09:45:31 +0200
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2017-10-17 00:13:28 +0200
commit1dd311e6dcda4020c603bcf9f390a577d439d509 (patch)
tree6af127326bda1474092b87042bf0b813bcb367a7 /kernel
parentperf/ftrace: Fix function trace events (diff)
downloadlinux-1dd311e6dcda4020c603bcf9f390a577d439d509.tar.xz
linux-1dd311e6dcda4020c603bcf9f390a577d439d509.zip
perf/ftrace: Small cleanup
ops->flags _should_ be 0 at this point, so setting the flag using bitwise or is a bit daft. Link: http://lkml.kernel.org/r/20171011080224.315585202@infradead.org Requested-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/trace_event_perf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_event_perf.c b/kernel/trace/trace_event_perf.c
index e73f9ab15939..55d6dff37daf 100644
--- a/kernel/trace/trace_event_perf.c
+++ b/kernel/trace/trace_event_perf.c
@@ -363,7 +363,7 @@ static int perf_ftrace_function_register(struct perf_event *event)
{
struct ftrace_ops *ops = &event->ftrace_ops;
- ops->flags |= FTRACE_OPS_FL_RCU;
+ ops->flags = FTRACE_OPS_FL_RCU;
ops->func = perf_ftrace_function_call;
ops->private = (void *)(unsigned long)nr_cpu_ids;