From f7fe6d674912f7ca4afa3f38cf7ec7ed26acb466 Mon Sep 17 00:00:00 2001 From: Stephen Dickey Date: Wed, 14 Apr 2021 16:32:18 -0700 Subject: [PATCH] sched/walt: add rt_time to dump_throttled_rt_tasks Add rq->rt.rt_time to debug output to better track the accumulated time that exceeded runtime. This will allow us to have a better understanding of the decision made to throttle RT threads. Change-Id: Icd8bc43583bddd61019f0d7f73a2315a8103d94a Signed-off-by: Stephen Dickey --- kernel/sched/walt/walt_debug.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/sched/walt/walt_debug.c b/kernel/sched/walt/walt_debug.c index 0165b354d3a4..935c3626b427 100644 --- a/kernel/sched/walt/walt_debug.c +++ b/kernel/sched/walt/walt_debug.c @@ -4,6 +4,7 @@ */ #include +#include #include @@ -14,8 +15,9 @@ static void dump_throttled_rt_tasks(void *unused, int cpu, u64 clock, ktime_t rt_period, u64 rt_runtime, s64 rt_period_timer_expires) { printk_deferred("sched: RT throttling activated for cpu %d\n", cpu); - printk_deferred("rt_period_timer: expires=%lld now=%llu runtime=%llu period=%llu\n", - rt_period_timer_expires, ktime_get_ns(), rt_runtime, rt_period); + printk_deferred("rt_period_timer: expires=%lld now=%llu rt_time=%llu runtime=%llu period=%llu\n", + rt_period_timer_expires, ktime_get_ns(), + task_rq(current)->rt.rt_time, rt_runtime, rt_period); printk_deferred("potential CPU hogs:\n"); #ifdef CONFIG_SCHED_INFO if (sched_info_on())