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)
committerJiri Slaby <jslaby@suse.cz>
Fri, 20 Jun 2014 15:33:49 +0000 (17:33 +0200)
commit22259d1fa4111413d7969bae6ad425fbc7fcf3e1
treebd59038532d912df4bcc70142437952d10097bc3
parent4ce1386883095638c80190a37677b978e9650365
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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/arm/kernel/perf_event.c