Message ID | 20231027033845.90608-8-zhangpeng.00@bytedance.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0DA5C25B47 for <linux-mm@archiver.kernel.org>; Fri, 27 Oct 2023 03:39:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 733A46B0393; Thu, 26 Oct 2023 23:39:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6E3FA6B0394; Thu, 26 Oct 2023 23:39:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5AD496B0395; Thu, 26 Oct 2023 23:39:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 4CEA06B0393 for <linux-mm@kvack.org>; Thu, 26 Oct 2023 23:39:56 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 1DB48120FFD for <linux-mm@kvack.org>; Fri, 27 Oct 2023 03:39:56 +0000 (UTC) X-FDA: 81389837592.23.A4F002B Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by imf26.hostedemail.com (Postfix) with ESMTP id 4CA98140004 for <linux-mm@kvack.org>; Fri, 27 Oct 2023 03:39:54 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=CgvXwu8A; dmarc=pass (policy=quarantine) header.from=bytedance.com; spf=pass (imf26.hostedemail.com: domain of zhangpeng.00@bytedance.com designates 209.85.216.43 as permitted sender) smtp.mailfrom=zhangpeng.00@bytedance.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1698377994; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=h5YTmJUCjjpdhuy3lqQAZ858a5z7S5zSCc8pR4j7dSE=; b=yDejT1MLQkGQt96UURxk+6ve2hgmaz+H2Zcv2BQJAPj1aypVircEaVoDY7WCose/MVYHdO vyHRq0RaRrYTdGHfB6biImrqR4rLxVgE05E4RKsuWVEZJ7zugIsDHu1jn7FpkHoQ0kyWtt 8iFOnyhAUMBCatv0U4KEdJbMdyAKa98= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=CgvXwu8A; dmarc=pass (policy=quarantine) header.from=bytedance.com; spf=pass (imf26.hostedemail.com: domain of zhangpeng.00@bytedance.com designates 209.85.216.43 as permitted sender) smtp.mailfrom=zhangpeng.00@bytedance.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1698377994; a=rsa-sha256; cv=none; b=8GhYg0/Sl4sbCX7lRL1KPN0Cq4XM64itdbTetYmmAopHYPGI24P++9gr0UU+FRETwhuNIJ aUOth/oVwvTIGi27Fh4spRPHLs2WBooK5qwOHyjCkGSPty114Y6ATwrad2tf/1yN61aacu PWnCgOecviu+sLFbKwGk3nNvps6EJyU= Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-27db9fdec0dso1392292a91.0 for <linux-mm@kvack.org>; Thu, 26 Oct 2023 20:39:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1698377993; x=1698982793; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=h5YTmJUCjjpdhuy3lqQAZ858a5z7S5zSCc8pR4j7dSE=; b=CgvXwu8AuAQJqWSomBCoOCZoRU5W/Gk7RMq3ThD+5XZ5BkKRJi34cnI8IlTKpoj6Sr x0b91fW+U+3OwRvAF8bgdG5WMrcxhUAQScQjeo6szttDU4I+kUMlTMPrf87jwvJXQiRX x7FqyyHnR1GC+KuIiHoZYVxBAj3pYmaz9gh1ZYRO9K7xSm80UKyMRX/AIDk/lREsGywq WLyOTJyf9j4e29mQvpvuCWWY4APhfElpFePGm7kJ4b9cKyiFtAnUUFhEocLzXN05Bgfh 6qAE3/2IVZipKXTZ9XotM11dBCL24Jnx3xRmzsuwzoZpi+4MgYT8VAMUdv2a9+M8c2q3 J9+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698377993; x=1698982793; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=h5YTmJUCjjpdhuy3lqQAZ858a5z7S5zSCc8pR4j7dSE=; b=PjwMD5jFSiH17vCxIuK6CvKOjdRWc3aAsgQGVbtmkbS5ZvAUHPr78mPeJCA4dfU7Oe XkLLmXsnqI9Z+s80SISz9g+Ozmwa3vC0T7JaKozxns9m9itzAV1RY9WiFEIaQgHwpICM jtsHO9yvdkaPDL8P3fX+oUYIFarmf9D97hfJud84J+ON3HE73HrJzS01Vw1xXYmLt/HE phXqDHJf35gBdHofl8ywfEwDEDe4Mz1nAH2+VyOw0fGYs0FldDDkOom6XPRDGMrDvGU3 KxO756zScY18i7CFow1zkHoAf19n3m/eXZ8ZL1mHVGp2lTRwJZBemJxAzs6lJaXa3URk pzBQ== X-Gm-Message-State: AOJu0Yx49imRfjVhXe6kfxLQ72z6hdPcgczBauNYkpWjUgnhn4M4eT0m CSSEJmMplHLKyhamKaUeWRV4cg== X-Google-Smtp-Source: AGHT+IGP7vALm36zcf78WOHdDsQMZ6gR6l+CE8E8raNCoeG3jAG7u2Ud7OkIO091/2fqWLXD+y+pYw== X-Received: by 2002:a17:90b:1486:b0:27d:e1c:5345 with SMTP id js6-20020a17090b148600b0027d0e1c5345mr1376337pjb.15.1698377993313; Thu, 26 Oct 2023 20:39:53 -0700 (PDT) Received: from GL4FX4PXWL.bytedance.net ([203.208.189.7]) by smtp.gmail.com with ESMTPSA id ms19-20020a17090b235300b00267d9f4d340sm2345676pjb.44.2023.10.26.20.39.45 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 26 Oct 2023 20:39:52 -0700 (PDT) From: Peng Zhang <zhangpeng.00@bytedance.com> To: Liam.Howlett@oracle.com, corbet@lwn.net, akpm@linux-foundation.org, willy@infradead.org, brauner@kernel.org, surenb@google.com, michael.christie@oracle.com, mjguzik@gmail.com, mathieu.desnoyers@efficios.com, npiggin@gmail.com, peterz@infradead.org, oliver.sang@intel.com, mst@redhat.com Cc: zhangpeng.00@bytedance.com, maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH v7 07/10] maple_tree: Skip other tests when BENCH is enabled Date: Fri, 27 Oct 2023 11:38:42 +0800 Message-Id: <20231027033845.90608-8-zhangpeng.00@bytedance.com> X-Mailer: git-send-email 2.39.3 (Apple Git-145) In-Reply-To: <20231027033845.90608-1-zhangpeng.00@bytedance.com> References: <20231027033845.90608-1-zhangpeng.00@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4CA98140004 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: upid3n7qt79jwpu1w1efbnyu8dq8qqq7 X-HE-Tag: 1698377994-50703 X-HE-Meta: U2FsdGVkX183fuypV8pxiLOq3pkDbvcIht0VvAOme/abtX9+BMGFh/m9pEJuWRvgG3OX4opd7cAEDv7wAXAiQQqzjIlQ6LJTcGht7Yl1CE3zzxZpImHdihmBy7a20pacDZ2E/Vr0pnrsJamEB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dDH6P++9SM/3WiX9xGV6k/M8ja3FQsc8LAemRN8mCCOwAM1Mim2+vobcQArW39jylH3rd0g+WU+xIBlhG8zho7R9ky7i7F6t85CmSiZd62mwAZkbPZdUWWdMM9Lu6OlJZcwf4RS09dM3qR2A3ajRjsv4tSPkAdybbxiL7hP3lxkfeMXKE/u1gJICC0yimY6W7AwUlgYY5tmAJ5ARHbB8ImY8jMLVm6s/aQEmvDzzyY1hcwx8dATaG7cAl5TD/uAw+a7QJ6Xv8= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Introduce __mt_dup() to improve the performance of fork()
|
expand
|
diff --git a/lib/test_maple_tree.c b/lib/test_maple_tree.c index 464eeb90d5ad..de470950714f 100644 --- a/lib/test_maple_tree.c +++ b/lib/test_maple_tree.c @@ -3585,10 +3585,6 @@ static int __init maple_tree_seed(void) pr_info("\nTEST STARTING\n\n"); - mt_init_flags(&tree, MT_FLAGS_ALLOC_RANGE); - check_root_expand(&tree); - mtree_destroy(&tree); - #if defined(BENCH_SLOT_STORE) #define BENCH mt_init_flags(&tree, MT_FLAGS_ALLOC_RANGE); @@ -3646,6 +3642,10 @@ static int __init maple_tree_seed(void) goto skip; #endif + mt_init_flags(&tree, MT_FLAGS_ALLOC_RANGE); + check_root_expand(&tree); + mtree_destroy(&tree); + mt_init_flags(&tree, MT_FLAGS_ALLOC_RANGE); check_iteration(&tree); mtree_destroy(&tree); diff --git a/tools/testing/radix-tree/maple.c b/tools/testing/radix-tree/maple.c index 12b3390e9591..cb5358674521 100644 --- a/tools/testing/radix-tree/maple.c +++ b/tools/testing/radix-tree/maple.c @@ -36299,7 +36299,9 @@ void farmer_tests(void) void maple_tree_tests(void) { +#if !defined(BENCH) farmer_tests(); +#endif maple_tree_seed(); maple_tree_harvest(); }