]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5b72d18a5eae3a8bf4493a72f6f1feeefe736dfa
treea3f5d15b978418cd29200a95d7abd33440a16577
parent9d496d3c81ebc782371c58b364ff94e58603c799
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