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] [RFC][PATCH] Hypervisor profiling using GCOV

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [RFC][PATCH] Hypervisor profiling using GCOV
From: Tej <bewith.tej@xxxxxxxxx>
Date: Mon, 16 Feb 2009 22:06:33 +0530
Cc: jeremy@xxxxxxxx, George.Dunlap@xxxxxxxxxxxxx, Peter.Oberparleiter@xxxxxxxxxx, keir.fraser@xxxxxxxxxxxxx, mark.williamson@xxxxxxxxxxxx, stephen.spector@xxxxxxxxxx
Delivery-date: Mon, 16 Feb 2009 08:37:15 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type; bh=Ow95knLfOCqCh4XTRmKfKdL1/8Wm39HjhWK1pYej2ec=; b=wTBPZkvccoJg7TWMHU+4/IkhY3XiOM2B5kQW4CDIJutGprGg8FsivZyYwM1xaSOxLA gAL3o1ZPul8OIqGxn+0B6ta2WFfjw5ZZjzz2orJzbbFL3WR8TBm7QjEKf77sTD87Ti/K sa6GD7eoSKPTC2l8PhITli8KIKjpudq1tquQM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=I469GMy1XXsORq5Z+yL0VSlQx5Dy7SiN/GBHHwA2lXqi/YzeoB/YshUJLRfFfi/4fV rtopN+hJQjP2WttQIkMN6ZzW8EbpIrE2VSZjjvnrmxAl471R3tz2Jyk7JU8wVkw4q+fu YP8HrOOfItrIjH7g/3SZ6d3RydIhrzdt5ELmk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
gcov is a test coverage program. generally used with GCC to analyze
programs to help create more efficient, faster running code and to
discover untested parts of your program. Software developers also use
coverage testing in concert with testsuites,  to make sure software is
actually good enough for a release

Our efforts on the same line added the gcov(gcc) profiling support for
hypervisor only.
Current code base support xen-3.3.onwards, x86_32 and gcc 3.4 to 4.3.

xen-patch: code for hypervisor which populate the gcov_info (gcc 3.4
onward) with data file information, base code is taken from
http://ltp.sourceforge.net/coverage/gcov.php. added xen support and a
way to interact with linux since hypervisor itself cannot populate the
/proc filesystem.

linux-patch: code for linux kernel basically enquire the hypervisor
part to revert all data file information and populate the
/proc/xen/gcov with data and graph file (optional)

command-line/modules parameter:
1. xen-gcov-link: if set, it creates the *.c and *.gcno linking under
/proc/xen/gcov, else to run gcov/lcov we have to create manually
linking.
2. xen-gcov-update: update the data files after xen-gcov-update secs,
default value is 5sec... e.g while running a test suite, requires
lower value of xen-gcov-update.
   tunable xen-gcov-update exist at /proc/sys/xen
   usage: echo <num> >/proc/sys/xen/xen-gcov-update

Running lcov straight-a-way could be problematic because lcov is
written to see profiling info @/proc/gcov. To accomodate
/proc/xen/gcov edit the config file /etc/lcovrc parameter as
lcov_gcov_dir = /proc/gcov to /proc/xen/gcov and perform modprobe
xen-gcov-proc.
We are having patches to accomodate both but changing config file
could be a better options. Still if someone need patch please free to
mail me @bewith.tej@xxxxxxxxx

YES, We are aware that gcov profiling is quite basic profiling
concept, but its a begning from our end to make xen hypervisor best
and robust, in future we will be working on changes required for 64bit
hypervisor, older xen versions (if required), PERFMON features of
Modern CPU's.

Comments, reports, suggestions, and any other types of feedback is
more than welcome

        -tej & team

Attachment: linux-2.6.18-gcov-v1.patch
Description: Text Data

Attachment: xen-3.3.0-gcov-v1.patch
Description: Text Data

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