WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xentrace: Move register_cpu_notifier() ca

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xentrace: Move register_cpu_notifier() call into boot-time init.
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Sat, 09 Apr 2011 09:20:19 +0100
Delivery-date: Sat, 09 Apr 2011 01:23:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xentrace: Move register_cpu_notifier() call into boot-time init., Xen patchbot-unstable <=