diff options
Diffstat (limited to 'kernel/sys.c')
-rw-r--r-- | kernel/sys.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index f145c415bc16..c5e7dec4966e 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/prctl.h> | 14 | #include <linux/prctl.h> |
15 | #include <linux/highuid.h> | 15 | #include <linux/highuid.h> |
16 | #include <linux/fs.h> | 16 | #include <linux/fs.h> |
17 | #include <linux/perf_counter.h> | ||
17 | #include <linux/resource.h> | 18 | #include <linux/resource.h> |
18 | #include <linux/kernel.h> | 19 | #include <linux/kernel.h> |
19 | #include <linux/kexec.h> | 20 | #include <linux/kexec.h> |
@@ -1791,6 +1792,12 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3, | |||
1791 | case PR_SET_TSC: | 1792 | case PR_SET_TSC: |
1792 | error = SET_TSC_CTL(arg2); | 1793 | error = SET_TSC_CTL(arg2); |
1793 | break; | 1794 | break; |
1795 | case PR_TASK_PERF_COUNTERS_DISABLE: | ||
1796 | error = perf_counter_task_disable(); | ||
1797 | break; | ||
1798 | case PR_TASK_PERF_COUNTERS_ENABLE: | ||
1799 | error = perf_counter_task_enable(); | ||
1800 | break; | ||
1794 | case PR_GET_TIMERSLACK: | 1801 | case PR_GET_TIMERSLACK: |
1795 | error = current->timer_slack_ns; | 1802 | error = current->timer_slack_ns; |
1796 | break; | 1803 | break; |