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] xentrace event mask for memory management class

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] xentrace event mask for memory management class
From: INAKOSHI Hiroya <inakoshi.hiroya@xxxxxxxxxxxxxx>
Date: Fri, 18 Aug 2006 13:36:50 +0900
Delivery-date: Thu, 17 Aug 2006 21:39:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.5 (Windows/20060719)
Since TRC_MEM is defined as 0x000af000 in xen/include/public/trace.h,
TRC_MEM = TRC_SCHED | TRC_VMX.  I feel strange about this.  I do not
think scheduling is a part of memory management.  Am I right?

If not, please tell me the background TRC_MEM is defined as TRC_SCHED
| TRC_VMX.  If so, please apply this patch.

This patch defines TRC_MEM as an independent event mask.  In addition,
xentrace accepts '-e mem' option so that it puts memory management
events in trace buffers.  The manual page (xentrace.8) is also
modified accordingly.

Tested by compiling on x86 and ia64, booting Dom0 and DomU, taking a
xentrace log with '-e mem' option.

Signed-off-by: Hiroya INAKOSHI <inakoshi.hiroya@xxxxxxxxxxxxxx>


# HG changeset patch
# User inakoshi@xxxxxxxxxxxxxxxxxxxxx
# Node ID 408bc956d5cb00816bc1c903e53f74d590d96cec
# Parent  ec03b24a2d83273ec62db8596506b80577a0e41e
This patch defines TRC_MEM as an independent event mask.  In addition,
xentrace accepts '-e mem' option so that it puts memory management
events in trace buffers.  The manual page (xentrace.8) is also
modified accordingly.

Tested by compiling on x86 and ia64, booting Dom0 and DomU, taking a
xentrace log with '-e mem' option.


Signed-off-by: Hiroya INAKOSHI <inakoshi.hiroya@xxxxxxxxxxxxxx>

diff -r ec03b24a2d83 -r 408bc956d5cb tools/xentrace/xentrace.8
--- a/tools/xentrace/xentrace.8 Tue Aug 15 19:53:55 2006 +0100
+++ b/tools/xentrace/xentrace.8 Fri Aug 18 13:32:40 2006 +0900
@@ -61,7 +61,7 @@ gathered by xentrace:
         0x0002f000          TRC_SCHED
         0x0004f000          TRC_DOM0OP          
         0x0008f000          TRC_VMX
-        0x000af000          TRC_MEM
+        0x0010f000          TRC_MEM
         0xfffff000          TRC_ALL 
 
 
@@ -99,9 +99,9 @@ collects the following events from the t
         0x0002f014         TRC_SCHED_SWITCH_INFPREV
         0x0002f015         TRC_SCHED_SWITCH_INFNEXT
 
-        0x000af001         TRC_MEM_PAGE_GRANT_MAP
-        0x000af002         TRC_MEM_PAGE_GRANT_UNMAP
-        0x000af003         TRC_MEM_PAGE_GRANT_TRANSFER
+        0x0010f001         TRC_MEM_PAGE_GRANT_MAP
+        0x0010f002         TRC_MEM_PAGE_GRANT_UNMAP
+        0x0010f003         TRC_MEM_PAGE_GRANT_TRANSFER
 
         0x00081001         TRC_VMX_VMEXIT
         0x00081002         TRC_VMX_VMENTRY
diff -r ec03b24a2d83 -r 408bc956d5cb tools/xentrace/xentrace.c
--- a/tools/xentrace/xentrace.c Tue Aug 15 19:53:55 2006 +0100
+++ b/tools/xentrace/xentrace.c Fri Aug 18 13:32:40 2006 +0900
@@ -348,6 +348,8 @@ int parse_evtmask(char *arg, struct argp
         setup->evt_mask |= TRC_DOM0OP;
     } else if(strcmp(arg, "vmx") == 0){ 
         setup->evt_mask |= TRC_VMX;
+    } else if(strcmp(arg, "mem") == 0){ 
+        setup->evt_mask |= TRC_MEM;
     } else if(strcmp(arg, "all") == 0){ 
         setup->evt_mask |= TRC_ALL;
     } else {
diff -r ec03b24a2d83 -r 408bc956d5cb xen/include/public/trace.h
--- a/xen/include/public/trace.h        Tue Aug 15 19:53:55 2006 +0100
+++ b/xen/include/public/trace.h        Fri Aug 18 13:32:40 2006 +0900
@@ -14,7 +14,7 @@
 #define TRC_SCHED   0x0002f000    /* Xen Scheduler trace      */
 #define TRC_DOM0OP  0x0004f000    /* Xen DOM0 operation trace */
 #define TRC_VMX     0x0008f000    /* Xen VMX trace            */
-#define TRC_MEM     0x000af000    /* Xen memory trace         */
+#define TRC_MEM     0x0010f000    /* Xen memory trace         */
 #define TRC_ALL     0xfffff000
 
 /* Trace subclasses */
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>