Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1318231pxk; Thu, 10 Sep 2020 12:21:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHiU9zVkph3y6l/U1YGyNoBhodQjH3zor8Qz3zoefoS2iWung1MTmlaUmzigEkohbNQufw X-Received: by 2002:aa7:d68c:: with SMTP id d12mr11321528edr.274.1599765700855; Thu, 10 Sep 2020 12:21:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599765700; cv=none; d=google.com; s=arc-20160816; b=bQ+flz/oMSDZgSpyj/zLEFIVfB6c6kHE66GhU1/nCZLay0tallYzMHMaaG7tNbW6CS BdcR7yEnABPAtyZh5rqZSyt0g6rs9V2THjuxFvl8YOb5HtcL8myh4qqXUpVYcN9ESSko pvvTSkZc9saRwRD78ngpEZv0FDZcwaDwoDBZAjSmeGZNJzRvj1ZxhLJxg6isoWw59dVb /eQrtU2xDuDEp6FZmxZiH62OgTMBPzn/9MQmZg1eo5ySmF/ns9YvFmcvsSZlCejWBFZs mfu3wnP+wX/pm6JAiH3j3LJ2BHCCJhslb6mY4WZDo7CON2HV+9P8A/5nxalXvxF/eVNj Glnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=etC4N6qn30eFLor95FeZmB4oX9yZOoS1Dpapxtt3pvQ=; b=LaGB8GdrqWH8Udnncpu0hNOXHQGIuGW+/02L/gga4Rg5dTCWsx4MTtUnjcrBFIahd8 leKiY36kUBBs5w7GYgUhCMkjsuPC/f/xTRZ+LKa5vPe2JPRSTlI2v4bl85CVGP9IMR4K OFZeUuuXouzr1Z/lyt3/6ZZKUh8UqH+ytH8rFwuze0xP/Yn7YwXp8wQBnKxVLhH50tGf UTEQOF0WxnQSi25/ODD2awBAva5TKvtYfM7OYa7n9WerHgtycJYnBMFH8LcuWK+oB83x cW2Peh7Tk+jqb4nVPy5rmbVnulPOR9Z9QIZTxO1iap+TthwQEgbwc1l/vbYmDj4qVTP2 pvng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="N/0WNm5/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k24si4145760eja.436.2020.09.10.12.21.18; Thu, 10 Sep 2020 12:21:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="N/0WNm5/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727776AbgIJTTR (ORCPT + 99 others); Thu, 10 Sep 2020 15:19:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727032AbgIJTS5 (ORCPT ); Thu, 10 Sep 2020 15:18:57 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85C2FC061573 for ; Thu, 10 Sep 2020 12:18:56 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id k25so9684439ljk.0 for ; Thu, 10 Sep 2020 12:18:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=etC4N6qn30eFLor95FeZmB4oX9yZOoS1Dpapxtt3pvQ=; b=N/0WNm5/4giWTWDefLeUsfFNKp1JHAG/ai3snfAZ5vptNE0pWqEgGwtfAppqq8TfH9 MG28lGOFhMEd1bq0igXIr6UmZhklDeAiosJfg12oK9l6jqBBqlDvssJ4sgJu/R0TZT+Y UvVlc43GfFu4XHK+zLnDLQGRhZYMLvnz5gDVs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=etC4N6qn30eFLor95FeZmB4oX9yZOoS1Dpapxtt3pvQ=; b=RlFlskMOde1kFnShxlZx29+ioOXfi4Ft4AR68mYbN7lhqlVvLDFjtSzr7I6u4fCcq6 pbNWCnoe0maYb93aMjm/PHrPnfTIoIIw/heicXUaNU8sLR05xrGCKllSmuThaRv03QE+ 2B+2/RkXw3y6TucVl7rBbJV4osZHhHhqcC1ZoYje8qGMgYs2GOFwvaoB6Bk+NZOkHLKJ A+KwcKghLWLGk3U43huM3YOmwOvZq01kidsiUSIF1UD3ynYD9C9cHJQ0Oij0zbqFNRVy HE2kMUVfop06ai3GkzPUPiPKoIiz0j9tx4lMNQO+CinwzfmU7mH5qBJqgwl7ofnACeVN lkVg== X-Gm-Message-State: AOAM5306ZNsEivXN1TY0cAov4BdKtmZdWBkeNbwJUA2QuKUEFqlX9Lx8 Y6VDGK9QCmR1cievq0yvQREmEzpXYonxgw== X-Received: by 2002:a2e:a16e:: with SMTP id u14mr5765116ljl.464.1599765534553; Thu, 10 Sep 2020 12:18:54 -0700 (PDT) Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com. [209.85.208.174]) by smtp.gmail.com with ESMTPSA id l82sm1551474lfd.58.2020.09.10.12.18.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Sep 2020 12:18:53 -0700 (PDT) Received: by mail-lj1-f174.google.com with SMTP id r24so9699309ljm.3 for ; Thu, 10 Sep 2020 12:18:53 -0700 (PDT) X-Received: by 2002:a2e:2e04:: with SMTP id u4mr5057221lju.102.1599765533101; Thu, 10 Sep 2020 12:18:53 -0700 (PDT) MIME-Version: 1.0 References: <20200904155808.4997-1-leon@kernel.org> <6fac3754-f8db-85f5-bdb1-b4c8e7ccc046@linux.ibm.com> In-Reply-To: <6fac3754-f8db-85f5-bdb1-b4c8e7ccc046@linux.ibm.com> From: Linus Torvalds Date: Thu, 10 Sep 2020 12:18:37 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH -rc v1] gcov: Disable gcov build with GCC 10 To: Peter Oberparleiter Cc: Leon Romanovsky , Leon Romanovsky , Linux Kernel Mailing List , Colin Ian King , Andrew Morton Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 10, 2020 at 5:52 AM Peter Oberparleiter wrote: > > Fix this by updating the in-kernel GCOV_COUNTERS value. Also re-enable > config GCOV_KERNEL for use with GCC 10. Lovely. Is there some way we could see this value automatically, or at least have a check for it? Right now it's that _very_ magical number that depends on a gcc version in odd and undocumented ways.. IOW - I'm assuming user space gcov infrastructure finds this number some way, and wondering if we couldn't do the same? Or is the gcov tool itself just doing the same kind of thing, and having magic numbers? I get the feeling that somebody who knows gcov would go "You are just doing this all completely incorrectly, you should do XYZ" when they see that GCOV_COUNTERS thing. Maybe just a script that finds the right header file in the gcc installation and extracts it from there, if only to verify the magic number that we have? Linus