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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Jun 2014 19:03:27 +0000 (12:03 -0700)
commitc318d7b4db9b4f47e0e29c24f4cac6f5e0644dc1
treee12b1e6d87b36168dd1c56c0db569951fa0b634d
parent02f98e3e36da106338b7c732fed516420fb20e2a
ARM: perf: hook up perf_sample_event_took around pmu irq handling

commit 5f5092e72cc25a6a5785308270e0085b2b2772cc upstream.

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>
Cc: Weng Meiling <wengmeiling.weng@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/kernel/perf_event.c