[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

R: Xen 4.4.2, coverage does not work properly (zithro)


  • To: "xen-users@xxxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxxx>
  • From: Giuseppe De Rosa <giuseppe.de.rosa@xxxxxxxxxx>
  • Date: Fri, 5 May 2023 13:50:25 +0000
  • Accept-language: it-IT, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=k8dIjWzLrm/eGD+c8RlaPd3DQPE4y6q8xmyNQg6cT1Q=; b=E8JCIdgoTTsl6lt7KV2jlP4r97mN67xc895eK9annydICNM88Rsvz6q+g1NxhHnADR0rw641IcPMFKVq8XC4fRGeM12ebQUeNgUV+iA1GmsnSEbLJ12ictSNhBMwwP5+BKOEQjHRfvQJ7Nk/XTrD2x/LaZWkWAy6SGT5grlefxlR8I3Yhc50RKma+/txtSfxc0RLsXtqT5NTabUWKoZEGSUWde1H9tx49+mNi/mHj9mIM4YiIejaREDkO4yafhoOuazy9bfxVbDqi1MK2Tf9sFHfgr6eLJwSBDq0YQ7dT6i8Ym0jx1QecBNn3ypnp4rA7e3fRNvK+95f+3rffyvFHQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PoXhBGHJhgCWx43PkAYymCZb7oADf1729UKupAG9WzAsb2pruIh2bJ4nLbbQMMTbPgA1m/6BsAv7io08BzaO4/FMKvkDIjj5GLtzc8zN/O+ZnRT9dCaZ5uBJw3D6JnLgQvfB1ob8JqIf6vA+E+PlxwQQeoDHoMClCH4hoFPGAirUZgfTaPY+zjc3TQw8Zd++x1Q586TPwexN13DIGiGmnIgR2gJWs7+Pb1Fu88hE03T9QKexJdkZiqy6cRoa05S5qgAo5DztCqyIlYCEAfmwyvh+WdLEEHJ9B+fAftgeieVVHulUDVF5YU75IhfCZa3hH2JAwquWCOhC2oJxnLtYhQ==
  • Delivery-date: Fri, 05 May 2023 13:51:18 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>
  • Thread-index: AQHZf1iLisx+jFFlZkeurvQkOz2Baw==
  • Thread-topic: Xen 4.4.2, coverage does not work properly (zithro)

Hello zithro,

 

thanks for the fast reply. I tried using xencov reset, I also tried to install Xen 4.4.4 on Debian 8 (Jessie) and Xen 4.7.6 on Ubuntu 16.04 but unfortunately I had the same problem with the xencov read.

 

I too am afraid that the coverage support on the older versions is slightly buggy.

 

Thank you for the guide you linked, that one is a reference for the new versions. I also have a machine with Xen 4.16 where the coverage support works fine.

 

Unfortunately, there are no Kconfig files with the CONFIG_COVERAGE option in the old versions. The older versions used a macro called TEST_COVERAGE that had the same purpose but was a little different.

 

I will continue to look for patches in hopes of solving it.

 

Da: xen-users-request@xxxxxxxxxxxxxxxxxxxx
Inviato: venerdì 5 maggio 2023 14:01
A: xen-users@xxxxxxxxxxxxxxxxxxxx
Oggetto: Xen-users Digest, Vol 219, Issue 3

 

Send Xen-users mailing list submissions to
        xen-users@xxxxxxxxxxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.xenproject.org/mailman/listinfo/xen-users
or, via email, send a message with subject or body 'help' to
        xen-users-request@xxxxxxxxxxxxxxxxxxxx

You can reach the person managing the list at
        xen-users-owner@xxxxxxxxxxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Xen-users digest..."


Today's Topics:

   1. Re: Xen 4.4.2, coverage does not work properly (zithro)


----------------------------------------------------------------------

Message: 1
Date: Thu, 4 May 2023 23:39:25 +0200
From: zithro <slack@xxxxxxxxx>
To: xen-users@xxxxxxxxxxxxxxxxxxxx
Subject: Re: Xen 4.4.2, coverage does not work properly
Message-ID: <2005246c-531c-d207-a293-05d04b75cefe@xxxxxxxxx>
Content-Type: text/plain; charset=UTF-8; format=flowed

On 02 May 2023 14:23, Giuseppe De Rosa wrote:
> Hello everybody,
>
> I apologize for asking for help on such an outdated version of Xen. I would like to understand why xencov read always returns the same dat file as shown in the attached file.
>
> I followed this guide https://wiki.xenproject.org/index.php?title=Compiling_Xen_From_Source&oldid=17237 (14 September 2016 version) to compile Xen from source and this guide to enable coverage support https://xenbits.xen.org/docs/4.8-testing/misc/coverage.html. I also applied this patch https://lists.xenproject.org/archives/html/xen-devel/2016-08/msg03353.html because I had some compilation errors.
>
> Everything went fine until I used xencov read. The result is always the same (4 bytes returned, always .CTX) but the file is malformed because xencov_split cannot read that.
>
> I am using Ubuntu 14.04. I made sure to enable test coverage support under xen/Config.mk and gcov under tools/qemu-xen/configure. I checked the compilation logs and every file was instrumented with the -ftest-coverage option.
>
>

Maybe look for more 4.4 bug reports about coverage, as another patch is
needed ?
I found that they almost totally rewrote coverage in 4.7.

The current man page about coverage
(https://xenbits.xen.org/docs/unstable/hypervisor-guide/code-coverage.html)
is a bit different.
"enable CONFIG_COVERAGE in Kconfig".
(mentionned in
"https://lists.xenproject.org/archives/html/xen-devel/2016-08/msg03363.html").
There's also "xencov reset".

But honestly this is above me. Maybe try the xen-devel ML ?

PS: at first I thought your post was a prank, but no, just discovered
"xl li == xl lis == xl list" ! Why not "xl l" though ^^



------------------------------

Subject: Digest Footer

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-users


------------------------------

End of Xen-users Digest, Vol 219, Issue 3
*****************************************

 


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.