Revision 95ef1e52922cf75b1ea2eae54ef886f2cc47eecb authored by Avi Kivity on 15 November 2011, 12:59:07 UTC, committed by Avi Kivity on 20 November 2011, 08:53:48 UTC
Prevent tracing of preempt_disable() in get_cpu_var() in kvm_clock_read(). When CONFIG_DEBUG_PREEMPT is enabled, preempt_disable/enable() are traced and this causes the function_graph tracer to go into an infinite recursion. By open coding the preempt_disable() around the get_cpu_var(), we can use the notrace version which prevents preempt_disable/enable() from being traced and prevents the recursion. Based on a similar patch for Xen from Jeremy Fitzhardinge. Tested-by: Gleb Natapov <gleb@redhat.com> Acked-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Avi Kivity <avi@redhat.com>
1 parent bb75c62
File | Mode | Size |
---|---|---|
af_irda.h | -rw-r--r-- | 2.9 KB |
crc.h | -rw-r--r-- | 880 bytes |
discovery.h | -rw-r--r-- | 3.5 KB |
ircomm_core.h | -rw-r--r-- | 3.9 KB |
ircomm_event.h | -rw-r--r-- | 2.6 KB |
ircomm_lmp.h | -rw-r--r-- | 1.4 KB |
ircomm_param.h | -rw-r--r-- | 4.7 KB |
ircomm_ttp.h | -rw-r--r-- | 1.4 KB |
ircomm_tty.h | -rw-r--r-- | 4.2 KB |
ircomm_tty_attach.h | -rw-r--r-- | 3.2 KB |
irda.h | -rw-r--r-- | 3.9 KB |
irda_device.h | -rw-r--r-- | 10.1 KB |
iriap.h | -rw-r--r-- | 2.9 KB |
iriap_event.h | -rw-r--r-- | 2.3 KB |
irias_object.h | -rw-r--r-- | 3.1 KB |
irlan_client.h | -rw-r--r-- | 1.6 KB |
irlan_common.h | -rw-r--r-- | 6.1 KB |
irlan_eth.h | -rw-r--r-- | 1.2 KB |
irlan_event.h | -rw-r--r-- | 2.1 KB |
irlan_filter.h | -rw-r--r-- | 1.3 KB |
irlan_provider.h | -rw-r--r-- | 1.7 KB |
irlap.h | -rw-r--r-- | 9.8 KB |
irlap_event.h | -rw-r--r-- | 3.5 KB |
irlap_frame.h | -rw-r--r-- | 5.3 KB |
irlmp.h | -rw-r--r-- | 8.9 KB |
irlmp_event.h | -rw-r--r-- | 2.9 KB |
irlmp_frame.h | -rw-r--r-- | 2.3 KB |
irmod.h | -rw-r--r-- | 3.6 KB |
irqueue.h | -rw-r--r-- | 3.1 KB |
irttp.h | -rw-r--r-- | 7.4 KB |
parameters.h | -rw-r--r-- | 3.2 KB |
qos.h | -rw-r--r-- | 3.0 KB |
timer.h | -rw-r--r-- | 3.6 KB |
wrapper.h | -rw-r--r-- | 1.8 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...