Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp698680imm; Thu, 4 Oct 2018 01:41:17 -0700 (PDT) X-Google-Smtp-Source: ACcGV63Ado3JyFj/Ozc3hZhjFJvIUPfVT98iUGXVLVAs4KQzkAsqniQgQtFM2XcNiRb8jSXH6MKv X-Received: by 2002:a17:902:8bc3:: with SMTP id r3-v6mr5510802plo.218.1538642477499; Thu, 04 Oct 2018 01:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538642477; cv=none; d=google.com; s=arc-20160816; b=vpMu/36kCc8MRYmpug9q0EbUgMhBvIqAFOM9HG5OutyLUF8ggP2kJomIMQLmSy9MTO BLIbW+6vmVVCdbcoZangSgg8kH+oz2DMQ9v4PlaIlYXOXa94w+t45siWTEN4+hgUPgmx QRyrYnYdM3WnoE0UD8HPZSp2OOQV7lBMPSc6B+ONn92RJUKihDr0kf9FyBLWFWkNhYaO kNcwuPJyrSu76OMqKN3PUvsXcw/YPLzGmim0SHf26+sXVbxkjvNuvwjgN2nb4nBnaaf6 /wfmRDuLdtmXn6MLhEnnXUw+NiNM9pJVk7F0y2ABCGDVov1O7cHmPZEVMlpxJPls+Rb6 uhDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date; bh=QXlBEBU2psYscjR1tRxgsDsHr9xOiKjtgld9StExPUs=; b=Wyeh4EbI3GY6TgeNtjhrdaWdmKhcihUbtmvCxy9b0eecKsSm6JRQb48xgs5CpqhGmo AwEdW+GFmnETFLrAvDUQ8QPcTxwE/JAO+u2DDhMg3wPTvZteNcRkfq2r+MNwye5kupwL 3IPr2+e5fvE6c6P8EgsSKgIkvgbzMFMQZdrvT1rgBQaHe9ejXXx1VbBWsBfsmmGUJAYA K3vT1DcNoOi1a3yH0QFZYHbaRWaI5b9cNe3c3XSRXNqxNGQHIQkX3R3dEDgislu4b7bl 9Is9Xh+TQgMzJkHIE6q16gSGxW+OpTGbp5a8Tk9X3+7QQcyGk9W2d8TfEddyn7LWqO+5 HwnA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i23-v6si4542540pfj.269.2018.10.04.01.41.01; Thu, 04 Oct 2018 01:41:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727483AbeJDPcq convert rfc822-to-8bit (ORCPT + 99 others); Thu, 4 Oct 2018 11:32:46 -0400 Received: from terminus.zytor.com ([198.137.202.136]:54133 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726857AbeJDPcq (ORCPT ); Thu, 4 Oct 2018 11:32:46 -0400 Received: from wld62.hos.anvin.org (c-24-5-245-234.hsd1.ca.comcast.net [24.5.245.234] (may be forged)) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id w948eQ8f2678722 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 4 Oct 2018 01:40:27 -0700 Date: Thu, 04 Oct 2018 01:40:20 -0700 User-Agent: K-9 Mail for Android In-Reply-To: <20181004083333.GA9802@gmail.com> References: <20181003213100.189959-1-namit@vmware.com> <20181003213100.189959-5-namit@vmware.com> <20181004075755.GA3353@gmail.com> <20181004083333.GA9802@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Subject: Re: [PATCH v9 04/10] x86: refcount: prevent gcc distortions To: Ingo Molnar , Nadav Amit CC: Ingo Molnar , linux-kernel@vger.kernel.org, x86@kernel.org, Thomas Gleixner , Jan Beulich , Josh Poimboeuf , Linus Torvalds , Peter Zijlstra , Andy Lutomirski From: hpa@zytor.com Message-ID: <10D29A50-C352-4407-A824-0C3C06CD8592@zytor.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On October 4, 2018 1:33:33 AM PDT, Ingo Molnar wrote: > >* Ingo Molnar wrote: > >> I'm also somewhat annoyed at the fact that this series carries a >boatload >> of reviewed-by's and acked-by's, yet none of those reviewers found it >> important to point out the large chasm that is gaping between >description >> and reality. > >Another problem I just realized is that we now include >arch/x86/kernel/macros.S in every >translation pass when building the kernel, right? > >But arch/x86/kernel/macros.S expands to a pretty large hiearchy of >header files: > > $ make arch/x86/kernel/macros.s > >$ cat $(grep include arch/x86/kernel/macros.s | cut -d\" -f2 | sort | >uniq) | wc -l > 4128 > >That's 4,100 extra lines of code to be preprocessed for every >translation unit, of >which there are tens of thousands. More if other pieces of code get >macrofied in >this fasion in the future. > >If we assume that a typical distribution kernel build has ~20,000 >translation units >then this change adds 82,560,000 more lines to be preprocessed, just to >work around >a stupid GCC bug? > >I'm totally unhappy about that. Can we do this without adding macros.S? > >It's also a pretty stupidly central file anyway that moves source code >away >from where it's used. > >Thanks, > > Ingo It's not just for working around a stupid GCC bug, but it also has a huge potential for cleaning up the inline asm in general. I would like to know if there is an actual number for the build overhead (an actual benchmark); I have asked for that once already. -- Sent from my Android device with K-9 Mail. Please excuse my brevity.