summaryrefslogtreecommitdiff
path: root/tools/perf/config/utilities.mak
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2016-07-20 08:57:26 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2017-06-21 12:09:51 +0200
commit41b2bc2fe2b5343d7d9e8440846d13203d96f28f (patch)
treefd1d6377a48621043b7c509b5d16e78eddde32c0 /tools/perf/config/utilities.mak
parent4af3251e96d38807fddfe4447b265b3683c3dbcd (diff)
irq: Compute the periodic interval for interruptsnext-irq/4.13-v11.1
An interrupt behaves with a burst of activity with periodic interval of time followed by one or two peaks of longer interval. As the time intervals are periodic, statistically speaking they follow a normal distribution and each interrupts can be tracked individually. This patch does statistics on all interrupts, except the timers which are deterministic by essence. The goal is to extract the periodicity for each interrupt, with the last timestamp and sum them, so we have the next event. Taking the earliest prediction gives the expected wakeup on the system (assuming a timer won't expire before). As stated in the previous patch, this code is not enabled in the kernel by default. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Rafael J. Wysocki <rafael@kernel.org> Cc: Vincent Guittot <vincent.guittot@linaro.org> Cc: Nicolas Pitre <nicolas.pitre@linaro.org> --- Changelog: V11: - No changes V10: - Simplified index/count computation V9: - Deal with 48+16 bits encoded values - Changed irq_stat => irqt_stat to prevent name collision on s390 - Changed div64 by constant IRQ_TIMINGS_SHIFT bit shift for average - Changed div64 by constant IRQ_TIMINGS_SHIFT bit shift for variance
Diffstat (limited to 'tools/perf/config/utilities.mak')
0 files changed, 0 insertions, 0 deletions