From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: virtio-dev-return-2725-cohuck=redhat.com@lists.oasis-open.org Sender: List-Post: List-Help: List-Unsubscribe: List-Subscribe: Received: from lists.oasis-open.org (oasis-open.org [66.179.20.138]) by lists.oasis-open.org (Postfix) with ESMTP id 2B3D55819127 for ; Wed, 29 Nov 2017 06:18:51 -0800 (PST) Message-ID: <5A1EC23A.5090900@intel.com> Date: Wed, 29 Nov 2017 22:20:42 +0800 From: Wei Wang MIME-Version: 1.0 References: <1509696786-1597-1-git-send-email-wei.w.wang@intel.com> <1509696786-1597-3-git-send-email-wei.w.wang@intel.com> <20171106170000.GA1195@bombadil.infradead.org> In-Reply-To: <20171106170000.GA1195@bombadil.infradead.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: [virtio-dev] Re: [PATCH v17 2/6] radix tree test suite: add tests for xbitmap To: Matthew Wilcox Cc: virtio-dev@lists.oasis-open.org, linux-kernel@vger.kernel.org, qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, linux-mm@kvack.org, mst@redhat.com, mhocko@kernel.org, akpm@linux-foundation.org, mawilcox@microsoft.com, david@redhat.com, penguin-kernel@I-love.SAKURA.ne.jp, cornelia.huck@de.ibm.com, mgorman@techsingularity.net, aarcange@redhat.com, amit.shah@redhat.com, pbonzini@redhat.com, liliang.opensource@gmail.com, yang.zhang.wz@gmail.com, quan.xu@aliyun.com List-ID: On 11/07/2017 01:00 AM, Matthew Wilcox wrote: > On Fri, Nov 03, 2017 at 04:13:02PM +0800, Wei Wang wrote: >> From: Matthew Wilcox >> >> Add the following tests for xbitmap: >> 1) single bit test: single bit set/clear/find; >> 2) bit range test: set/clear a range of bits and find a 0 or 1 bit in >> the range. >> >> Signed-off-by: Wei Wang >> Cc: Matthew Wilcox >> Cc: Andrew Morton >> Cc: Michael S. Tsirkin >> --- >> tools/include/linux/bitmap.h | 34 ++++ >> tools/include/linux/kernel.h | 2 + >> tools/testing/radix-tree/Makefile | 7 +- >> tools/testing/radix-tree/linux/kernel.h | 2 - >> tools/testing/radix-tree/main.c | 5 + >> tools/testing/radix-tree/test.h | 1 + >> tools/testing/radix-tree/xbitmap.c | 278 ++++++++++++++++++++++++++++++++ > Umm. No. You've duplicated xbitmap.c into the test framework, so now it can > slowly get out of sync with the one in lib/. That's not OK. > > Put it back the way it was, with the patch I gave you as patch 1/n > (relocating xbitmap.c from tools/testing/radix-tree to lib/). > Then add your enhancements as patch 2/n. All you should need to > change in your 1/n from > http://git.infradead.org/users/willy/linux-dax.git/commit/727e401bee5ad7d37e0077291d90cc17475c6392 > is a bit of Makefile tooling. Leave the test suite embedded in the file; > that way people might remember to update the test suite when adding > new functionality. > Thanks for you suggestions. Please have a check the v18 patches: The original implementation is put in patch 4, and the proposed changes are separated into patch 5 (we can merge them to patch 4 later if they look good to you), and the new APIs are in patch 6. Best, Wei --------------------------------------------------------------------- To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Wang Subject: Re: [PATCH v17 2/6] radix tree test suite: add tests for xbitmap Date: Wed, 29 Nov 2017 22:20:42 +0800 Message-ID: <5A1EC23A.5090900@intel.com> References: <1509696786-1597-1-git-send-email-wei.w.wang@intel.com> <1509696786-1597-3-git-send-email-wei.w.wang@intel.com> <20171106170000.GA1195@bombadil.infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: virtio-dev@lists.oasis-open.org, linux-kernel@vger.kernel.org, qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, linux-mm@kvack.org, mst@redhat.com, mhocko@kernel.org, akpm@linux-foundation.org, mawilcox@microsoft.com, david@redhat.com, penguin-kernel@I-love.SAKURA.ne.jp, cornelia.huck@de.ibm.com, mgorman@techsingularity.net, aarcange@redhat.com, amit.shah@redhat.com, pbonzini@redhat.com, liliang.opensource@gmail.com, yang.zhang.wz@gmail.com, quan.xu@aliyun.com To: Matthew Wilcox Return-path: In-Reply-To: <20171106170000.GA1195@bombadil.infradead.org> Sender: owner-linux-mm@kvack.org List-Id: kvm.vger.kernel.org On 11/07/2017 01:00 AM, Matthew Wilcox wrote: > On Fri, Nov 03, 2017 at 04:13:02PM +0800, Wei Wang wrote: >> From: Matthew Wilcox >> >> Add the following tests for xbitmap: >> 1) single bit test: single bit set/clear/find; >> 2) bit range test: set/clear a range of bits and find a 0 or 1 bit in >> the range. >> >> Signed-off-by: Wei Wang >> Cc: Matthew Wilcox >> Cc: Andrew Morton >> Cc: Michael S. Tsirkin >> --- >> tools/include/linux/bitmap.h | 34 ++++ >> tools/include/linux/kernel.h | 2 + >> tools/testing/radix-tree/Makefile | 7 +- >> tools/testing/radix-tree/linux/kernel.h | 2 - >> tools/testing/radix-tree/main.c | 5 + >> tools/testing/radix-tree/test.h | 1 + >> tools/testing/radix-tree/xbitmap.c | 278 ++++++++++++++++++++++++++++++++ > Umm. No. You've duplicated xbitmap.c into the test framework, so now it can > slowly get out of sync with the one in lib/. That's not OK. > > Put it back the way it was, with the patch I gave you as patch 1/n > (relocating xbitmap.c from tools/testing/radix-tree to lib/). > Then add your enhancements as patch 2/n. All you should need to > change in your 1/n from > http://git.infradead.org/users/willy/linux-dax.git/commit/727e401bee5ad7d37e0077291d90cc17475c6392 > is a bit of Makefile tooling. Leave the test suite embedded in the file; > that way people might remember to update the test suite when adding > new functionality. > Thanks for you suggestions. Please have a check the v18 patches: The original implementation is put in patch 4, and the proposed changes are separated into patch 5 (we can merge them to patch 4 later if they look good to you), and the new APIs are in patch 6. Best, Wei -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753176AbdK2OSw (ORCPT ); Wed, 29 Nov 2017 09:18:52 -0500 Received: from mga07.intel.com ([134.134.136.100]:25261 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751546AbdK2OSt (ORCPT ); Wed, 29 Nov 2017 09:18:49 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,473,1505804400"; d="scan'208";a="181957549" Message-ID: <5A1EC23A.5090900@intel.com> Date: Wed, 29 Nov 2017 22:20:42 +0800 From: Wei Wang User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Matthew Wilcox CC: virtio-dev@lists.oasis-open.org, linux-kernel@vger.kernel.org, qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, linux-mm@kvack.org, mst@redhat.com, mhocko@kernel.org, akpm@linux-foundation.org, mawilcox@microsoft.com, david@redhat.com, penguin-kernel@I-love.SAKURA.ne.jp, cornelia.huck@de.ibm.com, mgorman@techsingularity.net, aarcange@redhat.com, amit.shah@redhat.com, pbonzini@redhat.com, liliang.opensource@gmail.com, yang.zhang.wz@gmail.com, quan.xu@aliyun.com Subject: Re: [PATCH v17 2/6] radix tree test suite: add tests for xbitmap References: <1509696786-1597-1-git-send-email-wei.w.wang@intel.com> <1509696786-1597-3-git-send-email-wei.w.wang@intel.com> <20171106170000.GA1195@bombadil.infradead.org> In-Reply-To: <20171106170000.GA1195@bombadil.infradead.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/07/2017 01:00 AM, Matthew Wilcox wrote: > On Fri, Nov 03, 2017 at 04:13:02PM +0800, Wei Wang wrote: >> From: Matthew Wilcox >> >> Add the following tests for xbitmap: >> 1) single bit test: single bit set/clear/find; >> 2) bit range test: set/clear a range of bits and find a 0 or 1 bit in >> the range. >> >> Signed-off-by: Wei Wang >> Cc: Matthew Wilcox >> Cc: Andrew Morton >> Cc: Michael S. Tsirkin >> --- >> tools/include/linux/bitmap.h | 34 ++++ >> tools/include/linux/kernel.h | 2 + >> tools/testing/radix-tree/Makefile | 7 +- >> tools/testing/radix-tree/linux/kernel.h | 2 - >> tools/testing/radix-tree/main.c | 5 + >> tools/testing/radix-tree/test.h | 1 + >> tools/testing/radix-tree/xbitmap.c | 278 ++++++++++++++++++++++++++++++++ > Umm. No. You've duplicated xbitmap.c into the test framework, so now it can > slowly get out of sync with the one in lib/. That's not OK. > > Put it back the way it was, with the patch I gave you as patch 1/n > (relocating xbitmap.c from tools/testing/radix-tree to lib/). > Then add your enhancements as patch 2/n. All you should need to > change in your 1/n from > http://git.infradead.org/users/willy/linux-dax.git/commit/727e401bee5ad7d37e0077291d90cc17475c6392 > is a bit of Makefile tooling. Leave the test suite embedded in the file; > that way people might remember to update the test suite when adding > new functionality. > Thanks for you suggestions. Please have a check the v18 patches: The original implementation is put in patch 4, and the proposed changes are separated into patch 5 (we can merge them to patch 4 later if they look good to you), and the new APIs are in patch 6. Best, Wei From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eK3CP-0001Cy-O5 for qemu-devel@nongnu.org; Wed, 29 Nov 2017 09:18:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eK3CL-0006Lm-OS for qemu-devel@nongnu.org; Wed, 29 Nov 2017 09:18:53 -0500 Received: from mga04.intel.com ([192.55.52.120]:30118) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eK3CL-0006LQ-EU for qemu-devel@nongnu.org; Wed, 29 Nov 2017 09:18:49 -0500 Message-ID: <5A1EC23A.5090900@intel.com> Date: Wed, 29 Nov 2017 22:20:42 +0800 From: Wei Wang MIME-Version: 1.0 References: <1509696786-1597-1-git-send-email-wei.w.wang@intel.com> <1509696786-1597-3-git-send-email-wei.w.wang@intel.com> <20171106170000.GA1195@bombadil.infradead.org> In-Reply-To: <20171106170000.GA1195@bombadil.infradead.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v17 2/6] radix tree test suite: add tests for xbitmap List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Matthew Wilcox Cc: virtio-dev@lists.oasis-open.org, linux-kernel@vger.kernel.org, qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, linux-mm@kvack.org, mst@redhat.com, mhocko@kernel.org, akpm@linux-foundation.org, mawilcox@microsoft.com, david@redhat.com, penguin-kernel@I-love.SAKURA.ne.jp, cornelia.huck@de.ibm.com, mgorman@techsingularity.net, aarcange@redhat.com, amit.shah@redhat.com, pbonzini@redhat.com, liliang.opensource@gmail.com, yang.zhang.wz@gmail.com, quan.xu@aliyun.com On 11/07/2017 01:00 AM, Matthew Wilcox wrote: > On Fri, Nov 03, 2017 at 04:13:02PM +0800, Wei Wang wrote: >> From: Matthew Wilcox >> >> Add the following tests for xbitmap: >> 1) single bit test: single bit set/clear/find; >> 2) bit range test: set/clear a range of bits and find a 0 or 1 bit in >> the range. >> >> Signed-off-by: Wei Wang >> Cc: Matthew Wilcox >> Cc: Andrew Morton >> Cc: Michael S. Tsirkin >> --- >> tools/include/linux/bitmap.h | 34 ++++ >> tools/include/linux/kernel.h | 2 + >> tools/testing/radix-tree/Makefile | 7 +- >> tools/testing/radix-tree/linux/kernel.h | 2 - >> tools/testing/radix-tree/main.c | 5 + >> tools/testing/radix-tree/test.h | 1 + >> tools/testing/radix-tree/xbitmap.c | 278 ++++++++++++++++++++++++++++++++ > Umm. No. You've duplicated xbitmap.c into the test framework, so now it can > slowly get out of sync with the one in lib/. That's not OK. > > Put it back the way it was, with the patch I gave you as patch 1/n > (relocating xbitmap.c from tools/testing/radix-tree to lib/). > Then add your enhancements as patch 2/n. All you should need to > change in your 1/n from > http://git.infradead.org/users/willy/linux-dax.git/commit/727e401bee5ad7d37e0077291d90cc17475c6392 > is a bit of Makefile tooling. Leave the test suite embedded in the file; > that way people might remember to update the test suite when adding > new functionality. > Thanks for you suggestions. Please have a check the v18 patches: The original implementation is put in patch 4, and the proposed changes are separated into patch 5 (we can merge them to patch 4 later if they look good to you), and the new APIs are in patch 6. Best, Wei