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

Re: [PATCH v1 1/3] xen: gcov: add support for gcc 14.1


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Date: Fri, 28 Mar 2025 11:35:18 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=yrzf3LGq1boLqwiyP2pDjyiV6/3r6hlYrCRHXsGYAsw=; b=zGejxt2CMzP+W55ozv9ayQ5AuhM6NgAX8vVgXnKUcXW5q/9See54AjS0jGezw9glbgt2avcepDP+Pn4qQAWcUTI3ZRGhn/5P2CtkFcQaNAYRbcNRp5rEGw0zcryhb99w1lsf/vuM6K4T9HDB4HllZ3hLYb/US9TNS22eu+fCNtfXspA9WNX+4Rr29bEA5llqMKepKiE9HcenPsfKNeV4Cr92dT75xHA7vIs9E5gRUJCBcYZSj0VY9LaIA8f8vDSmeQN+9vY0HszwTadeJ0GbUizseyz1YvtTX0Og6DH2TYAewQwOHlJaJFKDvyQwLnkc2lRhWwD3Wckaqf+vv4yuGw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=QpZrrSvbFxLek1zfWxTSyzOP+uBJOqDLtervp2yY+AmDLzxeFcoT/IdNlv98Z6nsGxR83DpQonNqhLeBJMM632oW3HAl73mj0raNpUzLUewmFeVU0azA0rmTkh8YiUGjF68S8bHk4gE6pz+WCmyicrRjsfiUN0Hcpgrm9b8TAI/SWLgShypnOdUJ2OwzRFUilL4lgQ3ON6D320O74DGA7/puGNTy7/1gcz8B6iE95FKytFuRXOjiZ9/BPJVWApzRhqiVXHNeaRXdoy4eMI0lvZ7KJHVV+2pnlComgVI7T5eUkIktxXPNjD2JrcRfADI/xCQgjFboaIBKW/7l0IoZGw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Jan Beulich <jbeulich@xxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 28 Mar 2025 11:35:24 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHbnrDjP18EuEhGMUmNMUBtvyYXWw==
  • Thread-topic: [PATCH v1 1/3] xen: gcov: add support for gcc 14.1

Hi Andrew,

Andrew Cooper <andrew.cooper3@xxxxxxxxxx> writes:

> On 27/03/2025 10:03 pm, Volodymyr Babchuk wrote:
>> Hi Jan,
>>
>> Jan Beulich <jbeulich@xxxxxxxx> writes:
>>
>>> On 27.03.2025 01:40, Volodymyr Babchuk wrote:
>>>> GCC 14.1 has 9 gcov counters and also can call new merge function
>>>> __gcov_merge_ior(), so we need a new stub for it.
>>>>
>>>> Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>
>>> As to the title - what about 14.2.0? Or the soon to appear 14.3.0? I 
>>> recommend
>>> to say just 14.
>>>
>> According to GCC changelog, it was added in GCC 14.1. And yesterday they
>> added another counter... So probably 14.3 will have 10 counters in total.
>
> Do you have links?

Here is the patch that added a new counter:

https://github.com/gcc-mirror/gcc/commit/8ed2d5d219e999aee42015a0db38612011c2c507

> I'd expect that to mean that GCC 15 will have 10 counters, not GCC 14.3.
>

I can't say for sure, of course. Anyways, it is not released yet so no
sense in trying to cover it in this patches. 


>>>> --- a/xen/common/coverage/gcc_4_7.c
>>>> +++ b/xen/common/coverage/gcc_4_7.c
>>>> @@ -28,8 +28,10 @@
>>>>  #define GCOV_COUNTERS 10
>>>>  #elif GCC_VERSION < 100000
>>>>  #define GCOV_COUNTERS 9
>>>> -#else
>>>> +#elif GCC_VERSION < 140100
>>> The situation is a little less clear here because the development window is
>>> fuzzy to cover. Nevertheless with all other conditionals here using only a
>>> major version, with subversion being 0, I think the same should go for 14.
>>> Unless of course there is a good reason to be inconsistent.
>> As I said, 9nth counter was added in GCC 14.1, GCC 14.0 had less counters.
>
> In GCC's numbering scheme, .0 is the dev window and .1 is the release.
>
> The 9th counter will have appeared somewhere in the dev window, but
> that's all GCC 14 as far as we're concerned.

Ah, okay, thanks. I'll rework the patch to check for major version only.

-- 
WBR, Volodymyr


 


Rackspace

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