ARM: perf: hook up perf_sample_event_took around pmu irq handling
authorWill Deacon <will.deacon@arm.com>
Tue, 11 Feb 2014 18:08:41 +0000 (18:08 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 21 Feb 2014 11:11:21 +0000 (11:11 +0000)
commit5f5092e72cc25a6a5785308270e0085b2b2772cc
treea3f5d15b978418cd29200a95d7abd33440a16577
parentd84c47837d800c0db1c9f2015a1565504417f812
ARM: perf: hook up perf_sample_event_took around pmu irq handling

Since we indirect all of our PMU IRQ handling through a dispatcher, it's
trivial to hook up perf_sample_event_took to prevent applications such
as oprofile from generating interrupt storms due to an unrealisticly
low sample period.

Reported-by: Robert Richter <rric@kernel.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/perf_event.c