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

Re: [Xen-devel] Error message using xentrace.

To: "Parisa Heidari" <parisa.heidari@xxxxxxxxxx>
Subject: Re: [Xen-devel] Error message using xentrace.
From: "Thomas Friebel" <thomas.friebel@xxxxxxx>
Date: Wed, 25 Apr 2007 15:34:59 +0200
Cc: Diwaker Gupta <diwaker.lists@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 25 Apr 2007 06:34:06 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1176662861.4622734dbba6f@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>
References: <1176662861.4622734dbba6f@xxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Sun, 2007-04-15 at 14:47 -0400, Parisa Heidari wrote:
> $xentrace_format  /etc/xen/formats < ~/Traces/xentrace.dat > ~/Traces/def1
> Traceback (most recent call last):
>   File "./xentrace_format", line 108, in ?
>     (tsc, event, d1, d2, d3, d4, d5) = struct.unpack(TRCREC, line)
> struct.error: unpack str size does not match format

This happens from time to time. I think the reason is that xentrace
writes the trace records in two steps: first the CPU number and second
the rest of the trace record. When you interrupt (CTRL-C) xentrace
between these two writes then the last trace entry in the file is
incomplete.

If you need to work around this you might want to pause the VM before
stopping xentrace, so you don't interrupt it at work. But I think it is
save to ignore the error.


> However it gives me a file. And the output is like:
> CPU0  1637436031845 (+       0)  do_block               [ domid = 0x00000000,
> edomid = 0x00000000 ]
> CPU0  1637436034822 (+    2977)  unknown (0x000000000002f00e)  [ 0x00000000
> 0x0002f2aa 0x00000000 0x00000000 0x00000000 ]
> CPU0  1637436035370 (+     548)  unknown (0x000000000002f00f)  [ 0x00007fff
> 0x0002f2aa 0x01c9c380 0x00000000 0x00000000 ]

These two event IDs (0x2f00e and 0x2f00f) are defined and used in the
code since changeset 7801. But there has not been a description added to
the formats file yet.

Cheers
  Thomas


-- 
Thomas Friebel
Operating System Research Center
AMD Saxony, Dresden, Germany
--
Legal Stuff:
           AMD Saxony Limited Liability Company & Co. KG
         Wilschdorfer Landstr. 101, 01109 Dresden, Germany
                  Register Court Dresden: HRA 4896
              General Partner authorized to represent:
             AMD Saxony LLC (Wilmington, Delaware, US)
 General Manager of AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>