[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xentrace: Move register_cpu_notifier() call into boot-time init.



# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1302101570 -3600
# Node ID 94cef9aaf0cd029cd32a792bd294c1b2ef9d82dc
# Parent  dc8b05d22a598e3a3a139682754cee827089e693
xentrace: Move register_cpu_notifier() call into boot-time init.

We can't do it lazily from alloc_trace_bufs() as that gets called
later if tracing is enabled later by dom0.

Signed-off-by: Keir Fraser <keir@xxxxxxx>
---


diff -r dc8b05d22a59 -r 94cef9aaf0cd xen/common/trace.c
--- a/xen/common/trace.c        Wed Apr 06 11:40:54 2011 +0100
+++ b/xen/common/trace.c        Wed Apr 06 15:52:50 2011 +0100
@@ -225,8 +225,6 @@
     t_buf_highwater = data_size >> 1; /* 50% high water */
     opt_tbuf_size = pages;
 
-    register_cpu_notifier(&cpu_nfb);
-
     printk("xentrace: initialised\n");
     wmb(); /* above must be visible before tb_init_done flag set */
     tb_init_done = 1;
@@ -309,6 +307,8 @@
  */
 void __init init_trace_bufs(void)
 {
+    register_cpu_notifier(&cpu_nfb);
+
     if ( opt_tbuf_size && alloc_trace_bufs(opt_tbuf_size) )
     {
         printk(XENLOG_INFO "xentrace: allocation size %d failed, disabling\n",

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.