public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Entry conditions for perf_event_do_pending?
@ 2010-01-13  4:14 Paul Mackerras
  2010-01-13  9:27 ` Peter Zijlstra
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Mackerras @ 2010-01-13  4:14 UTC (permalink / raw)
  To: Ingo Molnar, Peter Zijlstra
  Cc: linux-kernel, Milton Miller, Benjamin Herrenschmidt

We're seeing some perf-related crashes on powerpc related to having
irqs in an inconsistent state (soft-enable vs. hard-enable
vs. trace-irqs state) when entering perf_event_do_pending().
We're fixing that, but along the way we have struck a question about
what conditions are required on entry to perf_event_do_pending.

Its use of __get_cpu_var implies that it at least needs to be called
with either interrupts or preemption disabled.  Does it in fact need
to be called with irqs off?  Do we need to call irq_enter()/irq_exit()
around it?  Are there any other requirements that people can think of?

Paul.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-21 13:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-13  4:14 Entry conditions for perf_event_do_pending? Paul Mackerras
2010-01-13  9:27 ` Peter Zijlstra
2010-01-21 13:54   ` [tip:perf/urgent] perf: Fix perf_event_do_pending() fallback callsite tip-bot for Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox