diff options
-rw-r--r-- | kernel/trace/trace_event_perf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_event_perf.c b/kernel/trace/trace_event_perf.c index 80c36bcf66e8..78e27e3b52ac 100644 --- a/kernel/trace/trace_event_perf.c +++ b/kernel/trace/trace_event_perf.c | |||
@@ -26,7 +26,7 @@ static int perf_trace_event_perm(struct ftrace_event_call *tp_event, | |||
26 | { | 26 | { |
27 | /* The ftrace function trace is allowed only for root. */ | 27 | /* The ftrace function trace is allowed only for root. */ |
28 | if (ftrace_event_is_function(tp_event) && | 28 | if (ftrace_event_is_function(tp_event) && |
29 | perf_paranoid_kernel() && !capable(CAP_SYS_ADMIN)) | 29 | perf_paranoid_tracepoint_raw() && !capable(CAP_SYS_ADMIN)) |
30 | return -EPERM; | 30 | return -EPERM; |
31 | 31 | ||
32 | /* No tracing, just counting, so no obvious leak */ | 32 | /* No tracing, just counting, so no obvious leak */ |