From b40bf941f61756bcca03a818b4c8fa857612f8cd Mon Sep 17 00:00:00 2001 From: Joonwoo Park Date: Mon, 2 Mar 2015 11:25:17 -0800 Subject: 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 --- include/linux/sched/sysctl.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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; -- cgit v1.2.3