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-devel

[Xen-devel] [PATCH 4 of 5] xenalyze: Decrease verbosity

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 4 of 5] xenalyze: Decrease verbosity
From: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
Date: Fri, 7 Oct 2011 11:39:42 +0100
Cc: george.dunlap@xxxxxxxxxxxxx
Delivery-date: Fri, 07 Oct 2011 03:40:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1317983978@elijah>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1317983978@elijah>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.4.3
Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>

diff -r a2044b64720b -r 21e56bad8f2c xenalyze.c
--- a/xenalyze.c        Fri Oct 07 11:33:28 2011 +0100
+++ b/xenalyze.c        Fri Oct 07 11:35:45 2011 +0100
@@ -128,6 +128,7 @@ enum error_level {
     ERR_SYSTEM, /* System error: cannot allocate memory, short read, &c */
 };
 
+int verbosity = 5;
 
 struct {
     unsigned 
@@ -8163,7 +8164,7 @@ void process_cpu_change(struct pcpu_info
     struct record_info *ri = &p->ri;
     struct cpu_change_data *r = (typeof(r))ri->d;
 
-    if(opt.dump_all) {
+    if(opt.dump_all && verbosity >= 6) {
         printf("]%s cpu_change this-cpu %u record-cpu %u window_size 
%u(0x%08x)\n",
                ri->dump_header, p->pid, r->cpu, r->window_size,
                r->window_size);

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