diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2010-03-02 11:35:37 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-03-02 14:06:46 (GMT) |
commit | 320ebf09cbb6d01954c9a060266aa8e0d27f4638 (patch) | |
tree | 0069898e64171dd89834327b0180c6d90860b46a /kernel/perf_event.c | |
parent | bb1165d6882f423f90fc7007a88c6c993b7c2ac4 (diff) | |
download | linux-fsl-qoriq-320ebf09cbb6d01954c9a060266aa8e0d27f4638.tar.xz |
perf, x86: Restrict the ANY flag
The ANY flag can show SMT data of another task (like 'top'),
so we want to disable it when system-wide profiling is
disabled.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/perf_event.c')
-rw-r--r-- | kernel/perf_event.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c index a661e79..482d5e1 100644 --- a/kernel/perf_event.c +++ b/kernel/perf_event.c @@ -56,21 +56,6 @@ static atomic_t nr_task_events __read_mostly; */ int sysctl_perf_event_paranoid __read_mostly = 1; -static inline bool perf_paranoid_tracepoint_raw(void) -{ - return sysctl_perf_event_paranoid > -1; -} - -static inline bool perf_paranoid_cpu(void) -{ - return sysctl_perf_event_paranoid > 0; -} - -static inline bool perf_paranoid_kernel(void) -{ - return sysctl_perf_event_paranoid > 1; -} - int sysctl_perf_event_mlock __read_mostly = 512; /* 'free' kb per user */ /* |