diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-04-09 04:53:45 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-09 05:50:52 -0400 |
commit | 1ccd15497869f3ed83b5225d410df53a96e52757 (patch) | |
tree | 67c475136503f53c2b2d9d9ada1c281aef0a162b /include/linux/perf_counter.h | |
parent | 9ee318a7825929bc3734110b83ae8e20e53d9de3 (diff) |
perf_counter: sysctl for system wide perf counters
Impact: add sysctl for paranoid/relaxed perfcounters policy
Allow the use of system wide perf counters to everybody, but provide
a sysctl to disable it for the paranoid security minded.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
LKML-Reference: <20090409085524.514046352@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r-- | include/linux/perf_counter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index c22363a4f746..981432885301 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -568,6 +568,8 @@ struct perf_callchain_entry { | |||
568 | 568 | ||
569 | extern struct perf_callchain_entry *perf_callchain(struct pt_regs *regs); | 569 | extern struct perf_callchain_entry *perf_callchain(struct pt_regs *regs); |
570 | 570 | ||
571 | extern int sysctl_perf_counter_priv; | ||
572 | |||
571 | #else | 573 | #else |
572 | static inline void | 574 | static inline void |
573 | perf_counter_task_sched_in(struct task_struct *task, int cpu) { } | 575 | perf_counter_task_sched_in(struct task_struct *task, int cpu) { } |