summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorYafang Shao <laoar.shao@gmail.com>2025-01-03 05:24:08 +0300
committerPeter Zijlstra <peterz@infradead.org>2025-01-13 16:10:26 +0300
commita6fd16148fdd7e9da143037106956a3447c247a8 (patch)
treee2e8d1f87bba29d38768ddd64ef1e21bb7d8d386 /tools/perf/scripts/python/task-analyzer.py
parent763a744e24a8cfbcc13f699dcdae13a627b8588e (diff)
downloadlinux-a6fd16148fdd7e9da143037106956a3447c247a8.tar.xz
sched, psi: Don't account irq time if sched_clock_irqtime is disabled
sched_clock_irqtime may be disabled due to the clock source. When disabled, irq_time_read() won't change over time, so there is nothing to account. We can save iterating the whole hierarchy on every tick and context switch. Signed-off-by: Yafang Shao <laoar.shao@gmail.com> Signed-off-by: Yafang Shao <laoar.shao@gmail.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Michal Koutný <mkoutny@suse.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Link: https://lore.kernel.org/r/20250103022409.2544-4-laoar.shao@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions