Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4553028ybi; Tue, 30 Jul 2019 04:07:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsfquwnaF4xy2jdTOc/LrenuB+rVj+sYTuCPSIKp19PVAbUvb4bqopyY0sIJrSY5gE1W9J X-Received: by 2002:a62:ac1a:: with SMTP id v26mr42104195pfe.184.1564484857502; Tue, 30 Jul 2019 04:07:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564484857; cv=none; d=google.com; s=arc-20160816; b=vWe3xRG88Z3eLpb+EG5PFDG6dQVmKg4YbDpFS4ubKe8iP8E33k5B/wmFqwB2gG0/X3 p7AV15okmbJNHpGAQvGKxeGlYhNox9hhGu2Z82r0Qc4ah8c+sl5pMVJPV3oQYmymqlEZ un7fu2Zy+Uqa5lgnKocFGGza4XjiEXgJb2RDSzs34OHkxDobB7GsrxJIJfSs++rPRBLQ zp08nfIqjwQ1Z1KnOb+Gon1SfaROgyWAm77fDV+lgJJNojEwH/r7ztwoQ76HzWnSFLwj 3FmQVxvTn8NODOn+kKcslWr6xLpVNF2UuFrHuR8uZstGlOx0orfAK/zo4hDOpZhNhJGx Mwqg== 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; bh=y3iFGUlRLtMdNYNKd2rPyoY/5unGucudlv15bLsbMXQ=; b=GFZt4hy9gPV/wsFdOeMpANDTrljjKffgmyEiTf7hy7s1jwkR8WV48xcVM+UOjBL4A9 s/YZ2F+MpwfGalenz3a4pz6pZ58oaQKHXRHyeh+kmiz0TOh1HfPTjpn6gbTWOMAqk8vV SCxP6c8I4MpoWhE1NfQcV7fzmBiBF++foQXog41kjGaHAkQZkSwnB7D3mSxjAM7BaC8f nYC2cWbdj3IwiGKl0w4JgE6EP7h+HEJXwvraVjq4prVPfpBIUAwSo/L0UBCMEdkTfIVa txlKTZJTgd/uJKWe+DyFvYU2lVFyDSCxULOB7eT53+0y+wdXVJl9jhKYm49FHDY/g+CI WqMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=epaSeSql; 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 v137si29780528pfc.190.2019.07.30.04.07.22; Tue, 30 Jul 2019 04:07:37 -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=merlin.20170209 header.b=epaSeSql; 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 S1730890AbfG3IIv (ORCPT + 99 others); Tue, 30 Jul 2019 04:08:51 -0400 Received: from merlin.infradead.org ([205.233.59.134]:55920 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730839AbfG3IIu (ORCPT ); Tue, 30 Jul 2019 04:08:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=y3iFGUlRLtMdNYNKd2rPyoY/5unGucudlv15bLsbMXQ=; b=epaSeSql5Ltv22UQ0FpT70mNB txTtD475/TBnKgqzZqFZNu9hwPS5tMfzbOtHpJUQngl6rt/7v6kvfj3+rYw3jsSTcOoI2mKrHtcDK AtrKAHVjM0WCx7GKyJRaolGHRFiDda8K2vFnSwWzvY9M18XGN2BmWxGBorYdrrcieQtg2/yGC8wC/ LRomltpyYrbTzBTqW5wA7k1NZJy/7XCV34DzizooFC+f+WX+nkRouPkkwmqWITg6wK4OZwQjw1tFM IdSVow4M0IleXzUzGO0RRsLxMZ84RVeQ1gHklKHrjbG5wBG2OFGYkcd/UcQVX7cwFDVLLVOpHjE8B 9fvvM2kzg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hsNBc-0005JA-Fx; Tue, 30 Jul 2019 08:08:44 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 42CE320AFFE9F; Tue, 30 Jul 2019 10:08:43 +0200 (CEST) Date: Tue, 30 Jul 2019 10:08:43 +0200 From: Peter Zijlstra To: Alexey Dobriyan Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86: drop REG_OUT macro from hweight functions Message-ID: <20190730080843.GG31381@hirez.programming.kicks-ass.net> References: <20190728115140.GA32463@avx2> <20190729094329.GW31381@hirez.programming.kicks-ass.net> <20190729100447.GD31425@hirez.programming.kicks-ass.net> <20190729204417.GA2146@avx2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190729204417.GA2146@avx2> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 29, 2019 at 11:44:17PM +0300, Alexey Dobriyan wrote: > On Mon, Jul 29, 2019 at 12:04:47PM +0200, Peter Zijlstra wrote: > > +#define _ASM_ARG1B __ASM_FORM_RAW(dil) > > +#define _ASM_ARG2B __ASM_FORM_RAW(sil) > > +#define _ASM_ARG3B __ASM_FORM_RAW(dl) > > +#define _ASM_ARG4B __ASM_FORM_RAW(cl) > > +#define _ASM_ARG5B __ASM_FORM_RAW(r8b) > > +#define _ASM_ARG6B __ASM_FORM_RAW(r9b) > > I preprocessed percpu code once to see what precisely it does because > it was easier than wading through forest of macroes. Per cpu is easy, try reading the tracepoint code ;-)