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] [PATCH-0/2] Hypervisor profiling using GCOV (64bit Hype

To: Gianluca Guida <gianluca.guida@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH-0/2] Hypervisor profiling using GCOV (64bit Hypervisor)
From: Tej <bewith.tej@xxxxxxxxx>
Date: Sat, 28 Feb 2009 12:53:11 +0530
Cc: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Keir Fraser <Keir.Fraser@xxxxxxxxxxxxx>
Delivery-date: Fri, 27 Feb 2009 23:23:35 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=jUwFCi7PQc25N2/TUg5SRCKlyqbQGHA/UMUJK/pUjE8=; b=vLKbJHd8z3cY3HbBRaWV2iGoltSTqSM0pjJVCnZKNa8lftgdSpbH/08cFn0KgyIzJc A7WDL9U9+djnIQjaJLq3j/KbvJDK/U0OFV0fDJQPt9FJ0uxVdDxoZAAjMnpom0UMpyAC QRZeCJrrfrVbM+ZOmSCJZ7+fg2rB5Ryi87hKk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=NfknpMs4VpiUiW6LHq/Vej37kAbY2MUYgysol/eVqo5UCk6z9NntKb3Q6iZiALWoct XvoOAZAeH8l9j8D4balq+po5L7FnuwyPYf5O52gB2O3bwcWUYe0HcMtgtVno7GSa4eF+ Q3V6waqnu4F9mVrlUtS9188/2ntAq6QnbepF0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49A838BE.40801@xxxxxxxxxxxxx>
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: <f1c9d250902260709s35714c06k990b07a3221afc66@xxxxxxxxxxxxxx> <49A838BE.40801@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Sat, Feb 28, 2009 at 12:32 AM, Gianluca Guida
<gianluca.guida@xxxxxxxxxxxxx> wrote:
> Hi,
>
> Tej wrote:
>>
>> Sending Patches for the 64 bit Hypervisor, We have tested patches on
>> AMD-64 (Athlon(tm) 64 X2 Dual Core Processor 4600+) machine with
>> gcc-4.2 & gcc-3.4. Please refer the previous GCOV RFC in same mail for
>> more info on Hypervisor profiling.
>> We have added support to 32bit and 64bit Kernel.
>>
>> In addition to patches for hypervisor profiling, we did a little work
>> on *lcov* to work with hypervisor.
>> README could be useful, for naive lcov user. locv-diff.patch show our
>> change in lcov scripts.
>>
>> any comments, feedback and suggestion are more than welcome
>
> While I still need to test the patch (building 3.3 right now) and to
> understand gcov internals, I think that a few comments can be done, mostly
> aestethicals.
>
> - xen coding style: Using four-spaces tabs is generally the tradition. Also
> I do prefer to have brackets that start code blocks on a new line aligned to
> the previous line, but that's not followed everywhere in the code.

thanks for your comments and general feedback
Generally we uses Lindent script for tab/alignment problem...  i will
incorporate above said coding styles and resubmit
>
> - Makefiles: while the num=$*.c is still a mystery to me, my question is: do
> you really need to make links with different names to files compiled

num=$*.c changes mainly added to run lcov smoothly... Let me take an example

in hap directory Makefile generate guest_walk_%level.o and gcov option
generates guest_walk_%level.gcno... but there is no
guest_walk_%level.c files , so lcov script give me warning/error
saying guest_walk_%level.gcno file does not have correspoding *.c.. so
we have added some Makefile trick to generate *.c link at compile
time.

> multiple times? If so, it would be useful to remove them on 'make clean'.
nice point
thats absolutely needed,  so i will incorporated the changes

> Also, it would be useful to make this feature enabled with a compile-time
> option.

i will look into this also and resubmit the patches on Monday...
>
> More comments to follow as I test it.

thanks for your review and comments

>
> Thanks,
> Gianluca
>

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

<Prev in Thread] Current Thread [Next in Thread>