From a69e027fa5e84e07e1354a617e18fd07cdea94aa Mon Sep 17 00:00:00 2001 From: Pavankumar Kondeti Date: Mon, 27 Apr 2020 09:00:38 +0530 Subject: [PATCH] sched: rt: print sched_rt_runtime during throttling Print the rt_runtime allowed for a given rt_rq in throttling debug message dump. This helps in catching suboptimal RT runtime tuning issues. Change-Id: I58027cb94500cf93eb42b44dcec9a5e68670b5e9 Signed-off-by: Pavankumar Kondeti --- kernel/sched/rt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 03cc6ac1876b..59ca24cb73f3 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -967,9 +967,10 @@ static void dump_throttled_rt_tasks(struct rt_rq *rt_rq) rt_rq, cpu_of(rq_of_rt_rq(rt_rq))); pos += snprintf(pos, end - pos, - "rt_period_timer: expires=%lld now=%llu period=%llu\n", + "rt_period_timer: expires=%lld now=%llu runtime=%llu period=%llu\n", hrtimer_get_expires_ns(&rt_b->rt_period_timer), - ktime_get_ns(), sched_rt_period(rt_rq)); + ktime_get_ns(), sched_rt_runtime(rt_rq), + sched_rt_period(rt_rq)); if (bitmap_empty(array->bitmap, MAX_RT_PRIO)) goto out;