Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5578499yba; Thu, 11 Apr 2019 00:50:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzN5K4k3d+B86Akh1X4+M3CIUyrS4J0J+McJdXEYScTNqOLxE/gDlEvy2WYv7oSCllIt2rT X-Received: by 2002:a62:1647:: with SMTP id 68mr48084124pfw.113.1554969028755; Thu, 11 Apr 2019 00:50:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554969028; cv=none; d=google.com; s=arc-20160816; b=j7GAUUgojdXPJ32TIqC+zY+9VRp+nFB9Heq26/pOSu429liBVl2WuK2ZLkjsYw36IH wA5k33iHKBBVycrcfmz5WSLKmyA4B6eeufmX9+xpgA73qgOdymRsFcmwy1wIPQCML9Jo pMy5On+xqBJ6Ss17pdqJZsd3IC6Ab5QWY55Ye8Wdu1nQbKBByz3+ugtkJJnzqcMU67a2 Df2Nx4J9nEhaqejXCPXdEQxsDpFRUuzDvkyd+iMPAAxQlLuwT0tNhJjHuJKFHpMNIl1z RxtaBWXvsu+k4h1WpRFNfaMKketldVJZO4fAKkfSqiYDHvsmMzEhKPgyGsO4uxaFVGqe mzBA== 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; bh=PadkwxOeArX1yDOKAb2JY6JqtcHCRBLq/N+6Huf+AFE=; b=ggr9DEmvjfO+AlmaTxWr/c8d9v03R4rkU6BV8YCBOHlX4IyfPZzB5zgadOdfhTIyWa OpVCwdmszAVy369GaheRwGoZpwsV5mOogY/5e2QSTpksUZILCrruuWU2tc5ArdLbNtX6 jPSuQdP+6BOhGpCUPoBnQunt+u3ClXUPlntT76EyTFQ/ClHvI36o9pk71oDEpwfhY4j+ BdlVi1wPICL6QG+jP0q9kDG7bQMfn3G/6WTtP7tVrf34Q2EPW4guxx37XQ1jz4rEUG7T 8C7PhMFWJMorQeSBib7669yTDE+VqELCW+utQeKz+OatcC3LNmyOhfA63++Ecb6MwzCg b/wA== 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 y9si25112122pgh.55.2019.04.11.00.50.12; Thu, 11 Apr 2019 00:50:28 -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 S1726917AbfDKHsC (ORCPT + 99 others); Thu, 11 Apr 2019 03:48:02 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:39479 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbfDKHsC (ORCPT ); Thu, 11 Apr 2019 03:48:02 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1697789|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.105179-0.00301162-0.891809;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03306;MF=han_mao@c-sky.com;NM=1;PH=DS;RN=2;RT=2;SR=0;TI=SMTPD_---.EJoNtGn_1554968879; Received: from localhost(mailfrom:han_mao@c-sky.com fp:SMTPD_---.EJoNtGn_1554968879) by smtp.aliyun-inc.com(10.147.42.198); Thu, 11 Apr 2019 15:47:59 +0800 Date: Thu, 11 Apr 2019 15:40:29 +0800 From: Mao Han To: Arnaldo Carvalho de Melo Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/3] perf: use hweight64 instead of hweight_long Message-ID: <20190411074024.GA8981@vmh-VirtualBox> References: <29ad7947dc8fd1ff0abd2093a72cc27a2446be9f.1554883878.git.han_mao@c-sky.com> <20190410130841.GE13888@kernel.org> <20190410131042.GF13888@kernel.org> <20190410132837.GG13888@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190410132837.GG13888@kernel.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 10, 2019 at 10:28:37AM -0300, Arnaldo Carvalho de Melo wrote: > > > You forgot to convert that one, doing it for you, > > > > Also in perf_event__sample_event_size() we need to do the same thing, > > right? > > and perf_event__synthesize_sample() > > Done, resulting patch is at the end of this messages, and matches the > kernel, that uses only hweight64(). > > I've also added Fixes tags to the patches that used hweight_long() in > various places, to help with the stable trees backporting process, > please consider doing it next time. > > - Arnaldo > Thanks for help improving the patch and the suggestion. Tested with the new patch on C-SKY, seems work fine. Mao Han