Received: by 10.192.165.148 with SMTP id m20csp982031imm; Sat, 5 May 2018 02:14:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqb++VFnnlpvKDEQkabd9OIj/Z3XeRmUUwuObXCamnxi8rtDW9kIEJUL8RL9xFdh/pLqSwt X-Received: by 10.98.8.69 with SMTP id c66mr18020827pfd.189.1525511690724; Sat, 05 May 2018 02:14:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525511690; cv=none; d=google.com; s=arc-20160816; b=L54T0ytl0wLBK9gcIKFOemVG03lWoVgcMAyNDwRUwwbPRnqBmp/77gXb8dxKLkm68Y V4b3iqO6H/euBzkukrdxG6Q2hRGdsLtoc4VcFDKUoGG1+GGwUfsnflHyth7Wyus/X/dv JphyFSSiU+ahVTLhzGRfYljZwYXJdIBOl3iN2sh8QDJsluZ5wpratMU+KZOb+KgFcyUC QBH8Faog7NToa14jT0HUdbEzUhaa3C6ooQIx2qH/jpvxPNcg/lgQTW+s70yYj8eujEq1 RjZxznBcKaMpVOZFkL+8zzUU8onHsYS2bb1VNZky4bDQiwiOhHp2od5zwdRUOczhfSov eKbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=poQGHxP5gYW258J84Xlf//IzcG4bvYAXHU2aWBTlw04=; b=FPrx/TTA1tRXGpWWHMyM8RoVon+ZfYsdCj+eajLoV6Aj/nU3pvyuxK89i0QUt1FUhm oRDoPO5jqjg9Xj8bDvt8p+aFTwC4UchD8bQg3Hr1ppOcbniQHInt+Mii4VqtObKr/T5O GPG8JFhbYqFiWWNtrjyBa8zRKoLiK36/OYu5sLZasT/K6hjpslnU1bZANmF6Ih5xtG4K nAY+ww6w0uKOUL8/V2HNSfbcOLJ/PEjPjIlwGwVi13B5/n+1Ujgg1Y3sEYW4WArpSi1S 7CDZsThGOID6ujlM1NA1oeOAyY5O+SGxsHnPLeczlcCoIo5v+HudRbPZRBjFQIF7ymoz hVSA== 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 b10-v6si17733290plb.177.2018.05.05.02.14.36; Sat, 05 May 2018 02:14:50 -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 S1751807AbeEEJMj (ORCPT + 99 others); Sat, 5 May 2018 05:12:39 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:33616 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751266AbeEEJMi (ORCPT ); Sat, 5 May 2018 05:12:38 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CCEE380D; Sat, 5 May 2018 02:12:37 -0700 (PDT) Received: from salmiak (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CD98B3F25D; Sat, 5 May 2018 02:12:35 -0700 (PDT) Date: Sat, 5 May 2018 10:12:29 +0100 From: Mark Rutland To: Peter Zijlstra Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, aryabinin@virtuozzo.com, boqun.feng@gmail.com, catalin.marinas@arm.com, dvyukov@google.com, mingo@kernel.org, will.deacon@arm.com Subject: Re: [PATCH 1/6] locking/atomic, asm-generic: instrument ordering variants Message-ID: <20180505091229.smbvp7vlgpyld7dn@salmiak> References: <20180504173937.25300-1-mark.rutland@arm.com> <20180504173937.25300-2-mark.rutland@arm.com> <20180504180105.GS12217@hirez.programming.kicks-ass.net> <20180504180909.dnhfflibjwywnm4l@lakrids.cambridge.arm.com> <20180504182422.GT12217@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180504182422.GT12217@hirez.programming.kicks-ass.net> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 04, 2018 at 08:24:22PM +0200, Peter Zijlstra wrote: > On Fri, May 04, 2018 at 07:09:09PM +0100, Mark Rutland wrote: > > On Fri, May 04, 2018 at 08:01:05PM +0200, Peter Zijlstra wrote: > > > On Fri, May 04, 2018 at 06:39:32PM +0100, Mark Rutland wrote: > > > > > include/asm-generic/atomic-instrumented.h | 1195 ++++++++++++++++++++++++----- > > > > 1 file changed, 1008 insertions(+), 187 deletions(-) > > > > > > Is there really no way to either generate or further macro compress this? > > > > I can definitely macro compress this somewhat, but the bulk of the > > repetition will be the ifdeffery, which can't be macro'd away IIUC. > > Right, much like what we already have in linux/atomic.h I suspect, > having to duplicating that isn't brilliant either. > > > Generating this with a script is possible -- do we do anything like that > > elsewhere? > > There's include/generated/ in your build directory. But nothing on this > scale I think. Sure. I'm not familiar with how we generate those, so I'll go digging through the build infrastructure. Thanks, Mark.