Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e1c68c5 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

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: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 0bdcb849
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -927,9 +927,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;