mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 03:27:03 +02:00
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 <dickey@codeaurora.org>
This commit is contained in:
parent
8237cc8693
commit
f7fe6d6749
|
|
@ -4,6 +4,7 @@
|
|||
*/
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/sched.h>
|
||||
|
||||
#include <trace/hooks/sched.h>
|
||||
|
||||
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user