summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJoonwoo Park <joonwoop@codeaurora.org>2015-03-02 11:25:17 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:01:50 -0700
commitb40bf941f61756bcca03a818b4c8fa857612f8cd (patch)
tree27f8532b5cebdc76f82afe08ecc60441ff751319 /include/linux
parent8f90803a45d3aa349a4d0f1051b194767ece5e26 (diff)
sched: add scheduling latency tracking procfs node
Add a new procfs node /proc/sys/kernel/sched_max_latency_us to track the worst scheduling latency. It provides easier way to identify maximum scheduling latency seen across the CPUs. Change-Id: I6e435bbf825c0a4dff2eded4a1256fb93f108d0e [joonwoop@codeaurora.org: fixed conflict in update_stats_wait_end().] Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched/sysctl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sched/sysctl.h b/include/linux/sched/sysctl.h
index fdb75cab5243..c614b17c6069 100644
--- a/include/linux/sched/sysctl.h
+++ b/include/linux/sched/sysctl.h
@@ -132,6 +132,10 @@ extern unsigned int sysctl_sched_autogroup_enabled;
#ifdef CONFIG_SCHEDSTATS
extern unsigned int sysctl_sched_latency_panic_threshold;
extern unsigned int sysctl_sched_latency_warn_threshold;
+
+extern int sched_max_latency_sysctl(struct ctl_table *table, int write,
+ void __user *buffer, size_t *lenp,
+ loff_t *ppos);
#endif
extern int sched_rr_timeslice;