Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2261906rdg; Sun, 15 Oct 2023 20:24:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGC8rJkvV9DXKyANwoLskjmVuMXVE3mZ2pQS31PoM3hu8jGS5tMfFo8/9RLM8xIePtE27Le X-Received: by 2002:a17:90b:360d:b0:27d:655f:6ea4 with SMTP id ml13-20020a17090b360d00b0027d655f6ea4mr2085751pjb.42.1697426688435; Sun, 15 Oct 2023 20:24:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697426688; cv=none; d=google.com; s=arc-20160816; b=L2RX2if/g9lOziYMyN7ADdYhAH60vn6DSfLo8XqRDrIlNF13rnXZG6p0aCep8VFpZi eFTYnbE/bdE2j3IldVtFWTcmisFdg/Qps6p7d98D6bZ256tJTGC3fxX03vpk7uKeqjvd 75rznvcAQFedwf5YZN2PflPSKqt3tmtGkA3MmPcX0F7VDxQPyO0jib1zdSy0x6CHIfPa hgn6lBImGPPik3TTqXCbc/FBkcnknfjZiqhi/EzFYg8kBJKGQrkOuT3GEVYXZOj2baqr ToIB0wAsHsyADiDnXbww0a3KL72fhNXddihjsNRLA5v0h375UTkTzzmYx769PvP17BLU Tfqg== 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=QmT9t2gNl7JC/Wj/BeBLe/fYUtz3EaMSD0bTELVUlD4=; fh=W1ujNbDikRM6mL+MA7cZ93eipzimk+g+Mb7QYnlff5s=; b=PFCC74MV5ZO/K2S/bpfTAIbdCTOKIk9ucr2G84tq0fQPrtnaCGUoHiTBRIhL/dWy8E +APECZidGP81o1I6Q2uEHtWmp3DWVtvrcevAF9EtRo69keYnZTfFjIGZNrTFdk1+g8Zf z0F5WIjvu80W5zY742Bq21APOqEJ9K/85cocfNjJhuAc1eU6WTv0OxoH8IFipyI/np5d f+um0VAecBapdp0H7oJLUvfnem/RmOvxXuP4iNLGaFbwG8lUzbQ2p5MmYm5RRt5kG3uJ fD2ieHsNdkfQQVTKBkYM/B0KpmrnQm+bVcXBDvm5j1cfD78LWecxI0Fef823lfNaG0rJ XhsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=PGqbqWCd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id ot4-20020a17090b3b4400b0027756e1f0c2si5711973pjb.7.2023.10.15.20.24.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 20:24:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=PGqbqWCd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 7CC5A805A5CD; Sun, 15 Oct 2023 20:24:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231547AbjJPDYT (ORCPT + 99 others); Sun, 15 Oct 2023 23:24:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231587AbjJPDYA (ORCPT ); Sun, 15 Oct 2023 23:24:00 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99775102 for ; Sun, 15 Oct 2023 20:23:29 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-6bd96cfb99cso500625b3a.2 for ; Sun, 15 Oct 2023 20:23:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1697426608; x=1698031408; 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=QmT9t2gNl7JC/Wj/BeBLe/fYUtz3EaMSD0bTELVUlD4=; b=PGqbqWCdExRsioHDuhcF8pwe4rhDYhMiyYzpENET4J8HssE32sg5UT+tPIiLfnGHSS qf5Ubjwg/btvdCzgY0RRW/5jmsfBXJH9o9xjijTkWbq42NA2/cT4SrAPyXQRlbIVg7oS XvbYUpObqP0jpqdiZiVGQ8fIl1mz6hBbtDP2ZMx1buFYCrN86DV/YjDgbWxTCR6/SV7u oaTYx/mnAOs0+xlSlBaZeq2jwDTccLFbG6m7SmXayyZWkcwP1Vh2l5OWqYsVXYCeAsxX YZEzL77M++I5C9xdMppQ1ViLBU4TPbLQFGa9y1qc9B+rzSkMZ++Lo7NSaqKYRp7qmcjw bA3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697426608; x=1698031408; 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=QmT9t2gNl7JC/Wj/BeBLe/fYUtz3EaMSD0bTELVUlD4=; b=Q2NCSRiLp27JGfUcBJmB9DkgwlqW7laNxG9ansQDgg+AOo5sdpSXQvmeR70eDBpczI chea6kRNez/WiQTPKOfPdUmhC/ebiDfJ1ZinBFxm5xiQzgcV7uDP36p5R3rIKvx60M83 AHqDUIa7CzATFATkHBsk+mm2IoeIdUhdhWCE28ByUt8RP7wMFoSRNmzET5SOTgxmL3G3 RSPEM3h6vJ/vVbTnTT2j+NbM76Afgds5I2WkUJN9hKdXlFUNCzk1njgrY9+uQOr5i0R7 32LCvnkQdQ7u974mvqFOKtLGA/hS0IhDD78HTD2PvX0rttPwdFlxavBxw9gZ5v2ecq8V zkfQ== X-Gm-Message-State: AOJu0YwDsnAb4rwMmDjF2iiqgS9N2BwBYre1yexV3CpwO6ACzvONUq6B eaRWVQiRv4N6cFx4gXCm15iBDg== X-Received: by 2002:a05:6a21:a58b:b0:15d:607b:5a39 with SMTP id gd11-20020a056a21a58b00b0015d607b5a39mr34613164pzc.30.1697426608596; Sun, 15 Oct 2023 20:23:28 -0700 (PDT) Received: from GL4FX4PXWL.bytedance.net ([139.177.225.232]) by smtp.gmail.com with ESMTPSA id d8-20020a17090ae28800b0027758c7f585sm3452770pjz.52.2023.10.15.20.23.22 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 15 Oct 2023 20:23:28 -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 v5 07/10] maple_tree: Skip other tests when BENCH is enabled Date: Mon, 16 Oct 2023 11:22:23 +0800 Message-Id: <20231016032226.59199-8-zhangpeng.00@bytedance.com> X-Mailer: git-send-email 2.39.3 (Apple Git-145) In-Reply-To: <20231016032226.59199-1-zhangpeng.00@bytedance.com> References: <20231016032226.59199-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 howler.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 (howler.vger.email [0.0.0.0]); Sun, 15 Oct 2023 20:24:41 -0700 (PDT) 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 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