Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1766439rdb; Mon, 9 Oct 2023 02:05:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFikzR51XkaWt9VUu5nQF8Taf9WViNnDEGcZhac2Za1D2FctKZ8iotHowkuvfxLplM5fNFR X-Received: by 2002:a17:903:32cf:b0:1c7:56b9:eae with SMTP id i15-20020a17090332cf00b001c756b90eaemr14731682plr.32.1696842311545; Mon, 09 Oct 2023 02:05:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696842311; cv=none; d=google.com; s=arc-20160816; b=jQ/NYLVyP7KzqBOVU7/HCHUZgD66T1fm12jMgtWrFy79xpiAYdRYgbCtgTEcYk+Vhu Qa3gfam1Liy6VJ0Bzx8Vsr7acvOfV6zhpI6+1GPvYobhisD+VWs6rcOUIHOegBp5Vp89 YKClhkybEg/PZfNmnlt3/Qy9VrkQBn+GOa1xYPon6KUDav/OF2byt5nMP/VEI83Om+zP HEwmEHM4VizfooVq7JJ1E4gs1UQM1zup94v0wie64Cn6h72HHoqFv84WqsOnfXLpRx/b qy2FEVZVDJV/7x1Czp7FVAg4pUA6on6Lr4nzGA2g3DNZAAPxx8mFoQNLBv+Hbrn9uGkD xl0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jnskIBrvSZEYEyApxx0F6Uk1TEGei79sZvSWDi4Yrxw=; fh=W1ujNbDikRM6mL+MA7cZ93eipzimk+g+Mb7QYnlff5s=; b=FIbt2T3rndOlXzjJlJ1s5jyq3x9okyD7CSgNIJ15ii3XK+JNGFysBeeTgubbmea6gW 6iy4W+NA4uNcLaAzzn4j2Ra6A9ouYhOS+GUcQloZNJB0xAbnfLWPFZRZlcNjD0/97TMb /bCKaoSCmeL+mHuR+k8lZkuSyyk7iuOueKS9cPgAMFrre/NGEZPx9h1MsFyuYIqzFv2O cK7+/vuT1s8L3WLcdxQT9raUPh+KunWrL/M8lW2IMXyoCkByPlNUTF856J0Hs4pp6f5V Sh7OC3Kz6NW1LQhjJWcLsCEQzyF6Ar9irBDAxQi5ds7nFGQb13nPyFck7Cix2DksWGy1 0ADA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=EOOXF6+W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id y12-20020a17090322cc00b001beeb49d890si9634413plg.185.2023.10.09.02.05.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 02:05:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=EOOXF6+W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 64491804A22B; Mon, 9 Oct 2023 02:05:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345700AbjJIJEq (ORCPT + 99 others); Mon, 9 Oct 2023 05:04:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345763AbjJIJEc (ORCPT ); Mon, 9 Oct 2023 05:04:32 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4156118 for ; Mon, 9 Oct 2023 02:04:29 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-692eed30152so3081968b3a.1 for ; Mon, 09 Oct 2023 02:04:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1696842269; x=1697447069; darn=vger.kernel.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=jnskIBrvSZEYEyApxx0F6Uk1TEGei79sZvSWDi4Yrxw=; b=EOOXF6+WmJ4nbCNN47RG75CZ/Zoa26nQoJa9aAjFw74VVXF5CyxclEVCoOjul1szQo np+gYpoXQZsOpcQQIUZgdGXDP2uR+dF2E6VLO98ZgPZd9q86Yx/5fYb3xeGMUOowtl3y KPPQRjYTNU1K09PTho+jl+E8mmKrmh7rLqbPofLsU9tpzXSGC//ZOGjou/H8OI8oVA+8 brRqTiMZjkMsNha0l0O8QQtL0mw44g8PRiCYmybAqwNN3bdY0JkiekSbZfHRGFbb1/n9 xNHXvAbgft/YEiBjfokkLbNrGtB3nEeydy8utUv6hp7G4n0TfhNEx48tuf+UMN9nRiVZ 98wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696842269; x=1697447069; 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=jnskIBrvSZEYEyApxx0F6Uk1TEGei79sZvSWDi4Yrxw=; b=P+JTDsy3ahU25Dpn171eXi3E2EoFVQyB6or97rmZp3Cde7kTN0qKWR0H65cJWZbPI+ 3Uy0c+2efrX3YSIMD+WKAsTil0BsubSLGsxKXf4TuH2URHxlwsVULN/nVtoX0VQ7/qjm HZ2NAAMmngOWbpUBRsv037XzmkKecXvWr+BsM3OAa0e4v/nbtAMcX0lccV3ng9bB4ueJ yO16WwC5+BdMJ2TEi0YdgtTb6nz/v4M2S6g1wDIXwe57kpC8Yjzsp93G30MxAIlhjstI J3bY+NWzsmrILlWMGrncTqnhFS+vYUlMm/Ak+h4nk5BxKV3eJdzF9eA798FYX1B+vKWE ZGgQ== X-Gm-Message-State: AOJu0YydAiHug2BHxJx2L6Qr5I4ae19Pbkxtz7n78rB8Z77uiqoDQSLd UsAH5/QHFUUtAb+dFYh1zubzig== X-Received: by 2002:a05:6a21:1a6:b0:16b:afc2:3b69 with SMTP id le38-20020a056a2101a600b0016bafc23b69mr8157702pzb.36.1696842269350; Mon, 09 Oct 2023 02:04:29 -0700 (PDT) Received: from GL4FX4PXWL.bytedance.net ([139.177.225.243]) by smtp.gmail.com with ESMTPSA id fk3-20020a056a003a8300b00690ca4356f1sm5884847pfb.198.2023.10.09.02.04.23 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 09 Oct 2023 02:04:29 -0700 (PDT) From: Peng Zhang 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 v4 07/10] maple_tree: Skip other tests when BENCH is enabled Date: Mon, 9 Oct 2023 17:03:17 +0800 Message-Id: <20231009090320.64565-8-zhangpeng.00@bytedance.com> X-Mailer: git-send-email 2.37.0 (Apple Git-136) In-Reply-To: <20231009090320.64565-1-zhangpeng.00@bytedance.com> References: <20231009090320.64565-1-zhangpeng.00@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 09 Oct 2023 02:05:08 -0700 (PDT) X-Spam-Level: ** Skip other tests when BENCH is enabled so that performance can be measured in user space. Signed-off-by: Peng Zhang --- lib/test_maple_tree.c | 8 ++++---- tools/testing/radix-tree/maple.c | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/test_maple_tree.c b/lib/test_maple_tree.c index 06959165e2f9..27d424fad797 100644 --- a/lib/test_maple_tree.c +++ b/lib/test_maple_tree.c @@ -3572,10 +3572,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); @@ -3633,6 +3629,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(); } -- 2.20.1