Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp887751rdh; Thu, 26 Oct 2023 20:40:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFi/JcYLFdbIVWRRQkZYVeui+eSxPSwRk92OqjlM7StUozeIRaveyLqpTh4P9JkJLfeNuZV X-Received: by 2002:a05:620a:9049:b0:76d:3244:ec08 with SMTP id rl9-20020a05620a904900b0076d3244ec08mr1169357qkn.44.1698378040793; Thu, 26 Oct 2023 20:40:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698378040; cv=none; d=google.com; s=arc-20160816; b=ogA3C5QyUkCvoJupcKkZvQ43fHMpW825MPZEMAGMvm7CYNgCLKy5QHR8MrQT+R+BJ1 8CQ9om3FGvEtEEx1bGDCRbJ33/tar0lpnrGFxpXfubu5FWd0zu4Qzweh01elTKwm+G+X EAUxrdNLjPF3Oa0rQTXGdB0SQa0OCwDALYIlvaPo8+s2G/ADvd1F4WMyrqlwlDVV0mgG arQiEnTtCzVNrkrm9d3ueKNk7kRQFGBdFNmPumkc6ZthRjVJm+RSMJxU37vnKDqSlM7H gxDv1Ajv1PkuiTfQRv6eBHavLM11Jrlh5isgf7Ya5gjGS+42VjffFF9YQkdQNHObPIgZ kq/w== 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=h5YTmJUCjjpdhuy3lqQAZ858a5z7S5zSCc8pR4j7dSE=; fh=W1ujNbDikRM6mL+MA7cZ93eipzimk+g+Mb7QYnlff5s=; b=FW7UWvAGNozJaasr67UZtDCI1jdZF6F8H1Ba9TAkhDWBvzBgmk7DXveiKwQgGxwc71 2J5JjNc7RtHnWEGzT3xETJZvN7POvgBTrvi0xZ5yInCuDC4o8DRYIyiJCYjGUOqUeMYT CVaaUWcOFw7YVxeQRtgLZsT7MJdBQYQhlOf+rc3bmNzOJJCMywHpU4+IcYxmmwRkyLdy jpFJwbuU72iSgEVHOR1AdbPGu5Bv0747XOdw8vRT44JBuNXtf652NQhfC4pNSZP9+9Q9 ROsP6PsOkKtg+LRmqNo9sXpr9OFw4rr+nkHJBs9nqhDMzwOumidt1PV6OAys/rlpnXyH T+og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b="L0j9qS/c"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id 125-20020a250a83000000b00d9a4a758d53si1272600ybk.83.2023.10.26.20.40.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 20:40:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b="L0j9qS/c"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id E56BA837E9A2; Thu, 26 Oct 2023 20:40:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345391AbjJ0DkQ (ORCPT + 99 others); Thu, 26 Oct 2023 23:40:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345265AbjJ0DkB (ORCPT ); Thu, 26 Oct 2023 23:40:01 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06790D6C for ; Thu, 26 Oct 2023 20:39:54 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-565334377d0so1328741a12.2 for ; Thu, 26 Oct 2023 20:39:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1698377993; x=1698982793; 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=h5YTmJUCjjpdhuy3lqQAZ858a5z7S5zSCc8pR4j7dSE=; b=L0j9qS/c52jpRdSAjdoay53+uq6mhPq/L6aRTherG9grqUTiNk3dXRoy1P2fMTtJIu CiWt//TD1MbQJqHjpXdLChz1Koc+cqTIuMfXKeGo+YtN0PFuM6HoYN0hNWJzszSKg0yB H2rAlSKBT6y/qy1KEGmt2I0N0O3bVCSzjiGxBs/hc2YVAfMgBZZ034kuUzkVKCKgJKjS wUmqlkfASKylqI2ZsxE1j61kifVLNAuFggff8XHWuSU7tWoe8dtz82ydohoymi3tqQst tEJZHrI0W4n4Ji1aJlNjd/aUVZto++1F3u6sQa0ZE0bImicsvsIg7qRu6u9zgDMuR8gL X+5Q== 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=DAtKY5vljTXpk1tuGiK/CO1lXiFW0l7Botwrtz1c49TFbmBBsezb2Wc955DXdhULoy vJS8s5rtNSWTVltUGV3QPUQhHa4/Qh/WZ5rLPbmTyFisXh7S0h/vrF8i5KudDz0yQ+PL dyReRGseeNhrUVJs022mirY8GtCloIm4jrm5XKSKbC/g5w/IAOoYvm50JrMMpYT7I0g1 6VWvLYDdltEphJ7bfq6PO/Iu8MnXDtVppal6gF0u6mDI7NiQZkXBcGSqfNElAvFOfRoQ XET9ifmOQVLGWuIFsd3rBMdeh3telPhWAtmA03hva2MolaB0pDdZc+MdsWx2olSdG9sn gMKw== X-Gm-Message-State: AOJu0YzoHAG0EE+k4xXRCI/wTro0wpK1n/9KoGBAEDsqeMPDhXCVTMZ9 ymlYNqEMRftgFbvn6Rxi3iQRdg== 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 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-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Thu, 26 Oct 2023 20:40:38 -0700 (PDT) Skip other tests when BENCH is enabled so that performance can be measured in user space. Signed-off-by: Peng Zhang Reviewed-by: Liam R. Howlett --- 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 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(); } -- 2.20.1