lkml.org 
[lkml]   [2010]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectEntry conditions for perf_event_do_pending?
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.


\
 
 \ /
  Last update: 2010-01-13 05:17    [W:0.039 / U:1.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site