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] no cycles for certain xentrace entries

To: Olaf Hering <olaf@xxxxxxxxx>
Subject: Re: [Xen-devel] no cycles for certain xentrace entries
From: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>
Date: Thu, 30 Sep 2010 10:56:37 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 30 Sep 2010 02:57:36 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=+v3X6v9QyZE/rktChAsMrR/1Xksce5TaQFZMUHj/AsM=; b=gvG+0Wxpe2+H6r9Gf08RFkbo2JnEtO8MKesLeq6CuxNpx5woDKvDCx8YJKHhRRHb9Z eQKm4OGIjhFLzV5wnR5/O4fm6GWHFwMDjrNWaAlU1/FeyrfgCdQRTKqXkHEGe+F1lEKI x58DUwZ48N7yz6/WyE7qKP4SVP5zMj7nS2MXg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=M+h2FaYWZvRmfQc53UyWuKVZFbkpQwP9DEgoI2H6O1R6fzGPTUeNysqE6GN0AZQOq9 bX7nViXKI4ld3igPGCp6XupBVQjhIcM9baCtB3foNNR1kQ+Y2c7+evVmqBviZ1PkkS16 s2xnS/7KSi1C7Beo/qYbX5FOZIeJMRg2FFgS0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100929080929.GA24421@xxxxxxxxx>
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: <20100831184458.GA24018@xxxxxxxxx> <20100929080929.GA24421@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
The reason for the parameter is that cycles take up space, and are
often redundant information.  An HVM_IOPORT_READ, for example, will
always occur shortly after a VMEXIT and before a VMENTER, both of
which have cycles.  Adding the cycles parameter doubles the size of
that record.  When taking long traces, every little bit of space
saving helps.

Have you tried using xenalyze to analyze your trace?

http://xenbits.xensource.com/ext/xenalyze.hg

It does all the hard work of sorting by TSC value, including trying to
infer tsc drift.  It's designed to handle records that don't have a
tsc value in a reasonable way.

 -George

On Wed, Sep 29, 2010 at 9:09 AM, Olaf Hering <olaf@xxxxxxxxx> wrote:
> On Tue, Aug 31, Olaf Hering wrote:
>
>> what is the reason for the empty tsc for some xentracing calls, like
>> TRC_HVM_IOPORT_READ?
>> It makes sorting the resulting logfile by tsc value difficult because
>> the 0 entries end up at the beginning of the logfile.
>
> This change appears to work for me.
> So, what is the reason for the cycles parameter to trace_var()?
>
> --- xen-4.0.1-testing.orig/xen/common/trace.c
> +++ xen-4.0.1-testing/xen/common/trace.c
> @@ -631,6 +631,7 @@ void __trace_var(u32 event, bool_t cycle
>     if( !tb_init_done )
>         return;
>
> +    cycles = 1;
>     /* Convert byte count into word count, rounding up */
>     extra_word = (extra / sizeof(u32));
>     if ( (extra % sizeof(u32)) != 0 )
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>

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