Files
android_kernel_xiaomi_sm8450/arch/arm/kernel
Will Deacon a737823d37 ARM: 6835/1: perf: ensure overflows aren't missed due to IRQ latency
If a counter overflows during a perf stat profiling run it may overtake
the last known value of the counter:

    0        prev     new                0xffffffff
    |----------|-------|----------------------|

In this case, the number of events that have occurred is
(0xffffffff - prev) + new. Unfortunately, the event update code will
not realise an overflow has occurred and will instead report the event
delta as (new - prev) which may be considerably smaller than the real
count.

This patch adds an extra argument to armpmu_event_update which indicates
whether or not an overflow has occurred. If an overflow has occurred
then we use the maximum period of the counter to calculate the elapsed
events.

Acked-by: Jamie Iles <jamie@jamieiles.com>
Reported-by: Ashwin Chaugule <ashwinc@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2011-03-26 10:06:09 +00:00
..
2008-08-12 19:54:09 +01:00
2011-03-16 23:35:27 +00:00
2008-05-30 10:33:49 +02:00
2011-02-02 21:23:26 +00:00
2011-01-13 12:26:17 +01:00
2011-01-06 22:32:03 +00:00
2011-03-16 23:35:27 +00:00
2008-09-06 12:10:45 +01:00
2010-12-20 23:07:36 +08:00
2010-10-29 13:14:40 -05:00
2011-03-16 23:35:27 +00:00
2010-12-20 23:07:36 +08:00
2011-03-16 23:35:25 +00:00
2011-03-16 23:35:25 +00:00
2011-01-15 09:27:04 +00:00