Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4019143imm; Mon, 25 Jun 2018 08:24:40 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJXoet3q8JBKndOF8ThPLHOPBwOQr/rHdKVN+xaex+kTfwQ/rYOZ7kr88A1VR9W3mBXA9/D X-Received: by 2002:a62:3687:: with SMTP id d129-v6mr3314924pfa.137.1529940280536; Mon, 25 Jun 2018 08:24:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529940280; cv=none; d=google.com; s=arc-20160816; b=H661G94gYgsj2iTzva2hjaVWM1bk7NCjvO9UQ7/Mf8d29xxusmUkkS2zObjHUPJ+RA 4/El9kn96EQgLCqa4FgIoUIanIDC+W+Caik64ljwaHaHMl0gug/6ZyUe7byTL5jxxsmI 4Cay6hu/nfZZHDgnQ8bSgrnyYPYffh/RrysrglUv5nPWdri9JEd04qVCs8k/ikxRsidL aAIznUw8PJO6iLPOON1BJc+2xNR2Cy5MdOEMxeKV4B/OrwC3F2GMJ7dcqL7qW484Sjs1 QrrDVFZC8dabA9qq1e849B88B35zTguoYvjF9EEESAzIo2vSKWmT8Apqc+wMpuz6yd+P PJ+g== 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:dkim-signature:arc-authentication-results; bh=//ZsFiahOmIUzl2Q1wxaKiAu2vudkvolCbII4sfKZTY=; b=WJaOLZGjiAOd+Ojgo3gr7r3ZIIv8hnOIsOptgTxez98dNySPdakSoreVzQJYiQOMzl MTDnKhD/DLQaGIduWdmlsPEboyEiGsKZVRUej9arnFYYa9sMVgtT7IrI/fgTWe+QXseD vwErOV/3o7+gVXamwXTn2e6rilqWzjYKuSr3l9+jIH8YrnqZe1arBNj/+WhyTs8zAUfr /toQHoTxAhPnLBEtSWcxLKvlOBBovGs7T4ONXPGxrqxUkMHN/8fEZ064EnY/8MioHZ1U 50MJzxL5DAFFVHRzM1HtTdYgsFvmj7n7Y7s/7pX06KwIQI2lcsm8qEJ7XEykVV29Zw1c UXjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WPK3cxjq; 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 x81-v6si1875612pfj.289.2018.06.25.08.24.25; Mon, 25 Jun 2018 08:24:40 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WPK3cxjq; 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 S1755684AbeFYPXM (ORCPT + 99 others); Mon, 25 Jun 2018 11:23:12 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:49668 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751018AbeFYPXK (ORCPT ); Mon, 25 Jun 2018 11:23:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=//ZsFiahOmIUzl2Q1wxaKiAu2vudkvolCbII4sfKZTY=; b=WPK3cxjqjUFB4kT4EekQvO1f0 LKPmTt8mg+TbfUIapDBela3rtMJUgudHAR5TG68clX07oKTlnMM499moC5ptTIrpWYFHkdP/0inUz 93AKKFfYl1uq0HbZ3y/iYHXlmv1kHc+cyuQaBiVlM5eKImF3GbYEicQwaIA8/pO15ji1Yz0MyISV2 0HS8vd8wPVbACuV2MO73OHV0F+/B1hbzzAwuEqCMnIqXBxqxNckLeS1V7L9eW2MD6KzLpg1hKA9lV 25ndXPZMkmsboyLrcwSreXXBr0wpMaEFiPKY99UAZ06CtO+wHEmYEoaGkG7mkXInJheaUAAsrq+pO HOyTQ3XEw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fXTKX-0006fg-VN; Mon, 25 Jun 2018 15:23:02 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A91CD2029F1D7; Mon, 25 Jun 2018 17:22:59 +0200 (CEST) Date: Mon, 25 Jun 2018 17:22:59 +0200 From: Peter Zijlstra To: Mark Rutland Cc: linux-kernel@vger.kernel.org, will.deacon@arm.com, boqun.feng@gmail.com, arnd@arndb.de, aryabinin@virtuozzo.com, catalin.marinas@arm.com, dvyukov@google.com, glider@google.com, hpa@zytor.com, linuxdrivers@attotech.com, mingo@redhat.com, parri.andrea@gmail.com, peter@hurleysoftware.com, tglx@linutronix.de Subject: Re: [PATCHv2 00/11] atomics: generate atomic headers / instrument arm64 Message-ID: <20180625152259.GD2494@hirez.programming.kicks-ass.net> References: <20180625105952.3756-1-mark.rutland@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180625105952.3756-1-mark.rutland@arm.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 25, 2018 at 11:59:41AM +0100, Mark Rutland wrote: > That scripting comes to ~900 lines, and replaces ~1700 lines of hand-written > boilerplate with ~4700 lines of generated code. Some of that increase in line > count is due to filling in missing portions of the API (e.g. adding all the > ordering variants to the instrumented atomics), while some of that is due to > expanding fallbacks in place, and consistently spreading these across multiple > lines. > Mark Rutland (10): > atomics/x86: reduce arch_cmpxchg64*() instrumentation > atomics: simplify cmpxchg() instrumentation > atomics/treewide: instrument xchg() > atomics: instrument cmpxchg_double*() > atomics/treewide: rework ordering barriers > atomics: add common header generation files > atomics: switch to generated fallbacks > atomics: switch to generated atomic-long > atomics: switch to generated instrumentation > arm64: use instrumented atomics Awesome work Mark, thanks for doing that! Aside from the nitpicks I mentioned on IRC (mostly spelling and Changelog inconsistencies), Acked-by: Peter Zijlstra (Intel)