Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4104468rwi; Mon, 17 Oct 2022 01:14:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5LLFk3LFTvEepYuMukarpVshXAZNNWEQzhJQJRR56JXEk6c/5FNqbw7bf7QVPOrhJisBC6 X-Received: by 2002:a17:90b:1d03:b0:20d:a935:944e with SMTP id on3-20020a17090b1d0300b0020da935944emr12284406pjb.38.1665994449821; Mon, 17 Oct 2022 01:14:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665994449; cv=none; d=google.com; s=arc-20160816; b=EvIxmTXytnIFq72G+ctOfomec0avMJfyaRZQ0ml2IV7llA5wW0DYxk6MjDz0/4Rb88 N9LM9sCcHL9NS28o8Lads9ACYhHM6x7dpInOUGbVZvoUCJe+C4YFrP+/UZnXcjm4y2e+ +KMDWx4gdFvR+4DF27u2sTWe029hKNuuBQu54Q1zmCYR/uRVrzY0gM7J/4XxN94sl303 qIgeqXVYkSIqERACA2oPy0gu0t2lCLWd+lVPmx6R/cinDHsF5WwL/vcpF/9khUIvlt6g UFO96SeFfkOzFHsqA0KRsoFcQPfBix8sezy8RlFSkXKIufD27BkVSEqr0cB/dpUzASI5 3wYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=ycjdaftggo2cqyYiI1y6JhKzuwDu6ReGWlgIK8aFjrk=; b=M2jU15pUqruL2r8/4kZKT2Led86FFvKaejaWFtVmKqD0kletqh1Di/xWaHxeBqcRrw Q11VLVKJJR2n+unCPj1HK8aIuAEF6ZhiM7QaWevAG7R9yvzI9Dumtn7D9NaCNz5vTfZ1 eWKCeId41vVzrDZvCdJIbMFLgevR5qjvHiojkVpfvawuyjP6Lj8C6SvlObY+lJnm9is0 FVxRLr1rAAfCK5VOPW8fp+n5B5ci0h1KgrG5/fzQdjBJDxrnArvpyZ8NQh8gyGMk8PsP wulQIM8m4jF7XLLUtp6uxuSgvaQ1/sQ6+DII110riVGPN0XbWs0+nM5VKF1LxaMWjegr 2dCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=r1DZCa9K; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=hPvjewTc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g11-20020a17090a640b00b00206012b593csi16285302pjj.33.2022.10.17.01.13.56; Mon, 17 Oct 2022 01:14:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=r1DZCa9K; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=hPvjewTc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229995AbiJQIDE (ORCPT + 99 others); Mon, 17 Oct 2022 04:03:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230026AbiJQIC4 (ORCPT ); Mon, 17 Oct 2022 04:02:56 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B9C45B7BE for ; Mon, 17 Oct 2022 01:02:55 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id AFA89201AB; Mon, 17 Oct 2022 08:02:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1665993773; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ycjdaftggo2cqyYiI1y6JhKzuwDu6ReGWlgIK8aFjrk=; b=r1DZCa9K8TzNKBGhH14smD1KIx1wZfUT0D3Pyns+hb5m1HSCzYAsXvEgzy7cT0UoGEieJr xwfz9o4/GmAcKvyes5SeQvesqrlleXwOvbZ9tXdVm+WPcMBM6smM6iHGm1bAOTgSl5KVfB 8lyFzuiJ9UPrGR3TBvyiHZUEICts/o4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1665993773; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ycjdaftggo2cqyYiI1y6JhKzuwDu6ReGWlgIK8aFjrk=; b=hPvjewTcFFuKnaMAdsfHtxjRQW7Ry4bJ4xOX3EP56rehbsBdxCQVWa1Hvpo0V326iI2S0n 4LRHjcutTf86CiBw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8A63D13ABE; Mon, 17 Oct 2022 08:02:53 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id GUTXIC0MTWPbDQAAMHmgww (envelope-from ); Mon, 17 Oct 2022 08:02:53 +0000 Message-ID: <0a04e3ed-aeba-9df9-212e-03232f02da6e@suse.cz> Date: Mon, 17 Oct 2022 10:02:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH] gcov: support GCC 12.1 and newer compilers Content-Language: en-US To: Andrew Morton , Peter Oberparleiter Cc: linux-kernel@vger.kernel.org References: <624bda92-f307-30e9-9aaa-8cc678b2dfb2@suse.cz> <581f6037-ff43-4f91-cabf-d9aa0d72bbe6@linux.ibm.com> <20221016174033.d33a998b4c91b7d18b3dc310@linux-foundation.org> From: =?UTF-8?Q?Martin_Li=c5=a1ka?= In-Reply-To: <20221016174033.d33a998b4c91b7d18b3dc310@linux-foundation.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_SOFTFAIL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/17/22 02:40, Andrew Morton wrote: > On Fri, 14 Oct 2022 11:30:51 +0200 Peter Oberparleiter wrote: > >> On 13.10.2022 09:40, Martin Liška wrote: >>> Starting with GCC 12.1, there are 2 significant changes to the .gcda >>> file format that needs to be supported: >>> >>> a) [gcov: Use system IO buffering] (23eb66d1d46a34cb28c4acbdf8a1deb80a7c5a05) changed >>> that all sizes in the format are in bytes and not in words (4B) >>> b) [gcov: make profile merging smarter] (72e0c742bd01f8e7e6dcca64042b9ad7e75979de) >>> add a new checksum to the file header. >>> >>> Tested with GCC 7.5, 10.4, 12.2 and the current master. >>> >>> Signed-off-by: Martin Liska >> >> Looks good, thanks! I successfully tested this patch on s390 using GCC >> 12.2 and 11.2. >> >> Tested-by: Peter Oberparleiter >> Reviewed-by: Peter Oberparleiter >> >> Andrew, could you add this patch via your tree? > > Sure. > > The changelog doesn't tell us what the user-visible effects of this are > (please, it should do so), but it sounds to me like those effects are > "gcov is utterly busted". Hi. Sorry for the missing user-visible effect. You are correct, the created .gcda format can't be read by gcov tool since GCC 12.1 release. Thanks, Martin > > So I'll add a cc:stable to this, so that people can use new gcc > versions to build older kernels.