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] Simplify trace header some more, and ensure that

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Simplify trace header some more, and ensure that
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 31 Oct 2005 10:50:08 +0000
Delivery-date: Mon, 31 Oct 2005 10:47:54 +0000
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 2947b0df5ffabd3a70af384a8c6d6339142c7af7
# Parent  d8a39152f982f97ba6c1267e58f81dad366ed05b
Simplify trace header some more, and ensure that
construction of arguments for tracing is outlined from
straightline code paths.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r d8a39152f982 -r 2947b0df5ffa xen/common/trace.c
--- a/xen/common/trace.c        Sun Oct 30 22:17:58 2005
+++ b/xen/common/trace.c        Sun Oct 30 22:28:32 2005
@@ -40,7 +40,7 @@
 
 /* a flag recording whether initialization has been done */
 /* or more properly, if the tbuf subsystem is enabled right now */
-int tb_init_done = 0;
+int tb_init_done;
 
 /* which CPUs tracing is enabled on */
 static unsigned long tb_cpu_mask = (~0UL);
diff -r d8a39152f982 -r 2947b0df5ffa xen/include/xen/trace.h
--- a/xen/include/xen/trace.h   Sun Oct 30 22:17:58 2005
+++ b/xen/include/xen/trace.h   Sun Oct 30 22:28:32 2005
@@ -23,12 +23,8 @@
 #ifndef __XEN_TRACE_H__
 #define __XEN_TRACE_H__
 
-#include <asm/page.h>
-#include <xen/types.h>
-#include <xen/sched.h>
+#include <xen/config.h>
 #include <asm/atomic.h>
-#include <asm/current.h>
-#include <asm/msr.h>
 #include <public/dom0_ops.h>
 #include <public/trace.h>
 
@@ -46,7 +42,7 @@
 /* Avoids troubling the caller with casting their arguments to a trace macro */
 #define trace_do_casts(e,d1,d2,d3,d4,d5) \
     do {                                 \
-        if ( tb_init_done )              \
+        if ( unlikely(tb_init_done) )    \
             trace(e,                     \
                  (unsigned long)d1,      \
                  (unsigned long)d2,      \

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Simplify trace header some more, and ensure that, Xen patchbot -unstable <=