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 fe8cdc80ff02..18943985ddee 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -46,6 +46,7 @@ | |||
46 | #include <linux/nfs_fs.h> | 46 | #include <linux/nfs_fs.h> |
47 | #include <linux/acpi.h> | 47 | #include <linux/acpi.h> |
48 | #include <linux/reboot.h> | 48 | #include <linux/reboot.h> |
49 | #include <linux/ftrace.h> | ||
49 | 50 | ||
50 | #include <asm/uaccess.h> | 51 | #include <asm/uaccess.h> |
51 | #include <asm/processor.h> | 52 | #include <asm/processor.h> |
@@ -463,6 +464,16 @@ static struct ctl_table kern_table[] = { | |||
463 | .mode = 0644, | 464 | .mode = 0644, |
464 | .proc_handler = &proc_dointvec, | 465 | .proc_handler = &proc_dointvec, |
465 | }, | 466 | }, |
467 | #ifdef CONFIG_FTRACE | ||
468 | { | ||
469 | .ctl_name = CTL_UNNUMBERED, | ||
470 | .procname = "ftrace_enabled", | ||
471 | .data = &ftrace_enabled, | ||
472 | .maxlen = sizeof(int), | ||
473 | .mode = 0644, | ||
474 | .proc_handler = &ftrace_enable_sysctl, | ||
475 | }, | ||
476 | #endif | ||
466 | #ifdef CONFIG_KMOD | 477 | #ifdef CONFIG_KMOD |
467 | { | 478 | { |
468 | .ctl_name = KERN_MODPROBE, | 479 | .ctl_name = KERN_MODPROBE, |