aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 6a463716ecbf..a7e4eb0525b1 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>
@@ -920,6 +921,32 @@ static struct ctl_table kern_table[] = {
920 .child = slow_work_sysctls, 921 .child = slow_work_sysctls,
921 }, 922 },
922#endif 923#endif
924#ifdef CONFIG_PERF_COUNTERS
925 {
926 .ctl_name = CTL_UNNUMBERED,
927 .procname = "perf_counter_paranoid",
928 .data = &sysctl_perf_counter_paranoid,
929 .maxlen = sizeof(sysctl_perf_counter_paranoid),
930 .mode = 0644,
931 .proc_handler = &proc_dointvec,
932 },
933 {
934 .ctl_name = CTL_UNNUMBERED,
935 .procname = "perf_counter_mlock_kb",
936 .data = &sysctl_perf_counter_mlock,
937 .maxlen = sizeof(sysctl_perf_counter_mlock),
938 .mode = 0644,
939 .proc_handler = &proc_dointvec,
940 },
941 {
942 .ctl_name = CTL_UNNUMBERED,
943 .procname = "perf_counter_max_sample_rate",
944 .data = &sysctl_perf_counter_sample_rate,
945 .maxlen = sizeof(sysctl_perf_counter_sample_rate),
946 .mode = 0644,
947 .proc_handler = &proc_dointvec,
948 },
949#endif
923/* 950/*
924 * NOTE: do not add new entries to this table unless you have read 951 * NOTE: do not add new entries to this table unless you have read
925 * Documentation/sysctl/ctl_unnumbered.txt 952 * Documentation/sysctl/ctl_unnumbered.txt