diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index e3d2c7dd59b9..8203d70928d5 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -49,6 +49,7 @@ | |||
49 | #include <linux/reboot.h> | 49 | #include <linux/reboot.h> |
50 | #include <linux/ftrace.h> | 50 | #include <linux/ftrace.h> |
51 | #include <linux/slow-work.h> | 51 | #include <linux/slow-work.h> |
52 | #include <linux/perf_counter.h> | ||
52 | 53 | ||
53 | #include <asm/uaccess.h> | 54 | #include <asm/uaccess.h> |
54 | #include <asm/processor.h> | 55 | #include <asm/processor.h> |
@@ -910,6 +911,16 @@ static struct ctl_table kern_table[] = { | |||
910 | .child = slow_work_sysctls, | 911 | .child = slow_work_sysctls, |
911 | }, | 912 | }, |
912 | #endif | 913 | #endif |
914 | #ifdef CONFIG_PERF_COUNTERS | ||
915 | { | ||
916 | .ctl_name = CTL_UNNUMBERED, | ||
917 | .procname = "perf_counter_privileged", | ||
918 | .data = &sysctl_perf_counter_priv, | ||
919 | .maxlen = sizeof(sysctl_perf_counter_priv), | ||
920 | .mode = 0644, | ||
921 | .proc_handler = &proc_dointvec, | ||
922 | }, | ||
923 | #endif | ||
913 | /* | 924 | /* |
914 | * NOTE: do not add new entries to this table unless you have read | 925 | * NOTE: do not add new entries to this table unless you have read |
915 | * Documentation/sysctl/ctl_unnumbered.txt | 926 | * Documentation/sysctl/ctl_unnumbered.txt |