diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-06-11 05:18:36 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-11 10:48:38 -0400 |
commit | 0764771dab80d7b84b9a271bee7f1b21a04a3f0c (patch) | |
tree | 36cb6400e257393208779a95b4868df2f9af6cf6 /kernel/sysctl.c | |
parent | 106b506c3a8b74daa5751e83ed3e46438fcf9a52 (diff) |
perf_counter: More paranoia settings
Rename the perf_counter_priv knob to perf_counter_paranoia (because
priv can be read as private, as opposed to privileged) and provide
one more level:
0 - permissive
1 - restrict cpu counters to privilidged contexts
2 - restrict kernel-mode code counting and profiling
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 0c4bf863afa..344a65981de 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -916,9 +916,9 @@ static struct ctl_table kern_table[] = { | |||
916 | #ifdef CONFIG_PERF_COUNTERS | 916 | #ifdef CONFIG_PERF_COUNTERS |
917 | { | 917 | { |
918 | .ctl_name = CTL_UNNUMBERED, | 918 | .ctl_name = CTL_UNNUMBERED, |
919 | .procname = "perf_counter_privileged", | 919 | .procname = "perf_counter_paranoid", |
920 | .data = &sysctl_perf_counter_priv, | 920 | .data = &sysctl_perf_counter_paranoid, |
921 | .maxlen = sizeof(sysctl_perf_counter_priv), | 921 | .maxlen = sizeof(sysctl_perf_counter_paranoid), |
922 | .mode = 0644, | 922 | .mode = 0644, |
923 | .proc_handler = &proc_dointvec, | 923 | .proc_handler = &proc_dointvec, |
924 | }, | 924 | }, |