Message ID | 20230512182036.359030-17-Liam.Howlett@oracle.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 C19F6C7EE26 for <linux-mm@archiver.kernel.org>; Fri, 12 May 2023 18:21:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5CEEF6B00A3; Fri, 12 May 2023 14:21:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 558786B00A4; Fri, 12 May 2023 14:21:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 38356900002; Fri, 12 May 2023 14:21:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 22F906B00A3 for <linux-mm@kvack.org>; Fri, 12 May 2023 14:21:40 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id E942FA101C for <linux-mm@kvack.org>; Fri, 12 May 2023 18:21:39 +0000 (UTC) X-FDA: 80782421118.20.C23C0AE Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf19.hostedemail.com (Postfix) with ESMTP id 660291A000C for <linux-mm@kvack.org>; Fri, 12 May 2023 18:21:36 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=fTFr2gXa; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=PP8XspEC; spf=pass (imf19.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1683915696; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=vsLFD4dVDOFW21XGcSvKmJrAPSFOY+0Jw3IhJz6RmFw=; b=dN2MyMXcRuVFEUf03g4EzxxJzCbJzqNfTwVyLQ59HQchjiM94ibY9agjQBUmCQdRab84jU 0uT1O+KMgu2MueIuzZGGjo5ah4aKHkd+fugBZMrm0P+BZjaJG/F3aw+Lu0kF2E8iMdL3d4 iW848JZh8jza9mIlbtbX+I7qWBkpNm4= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1683915696; a=rsa-sha256; cv=pass; b=ZGXpxr8SgHqFz2oZQahq0kPxmNSAip/12Dmy72uXY4aPoAny9ZcCEf4UUBKsbQcEQnujwM bCdJW/yMtVHl6NXB9zvSKw6MjksT7OjIOIit9Vj3wp2DOsqJUwS3yhYYYtqktzp0OpRAzQ ECO6TSGEhEAjECMh26FhEz2Dizuf7Wo= ARC-Authentication-Results: i=2; imf19.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=fTFr2gXa; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=PP8XspEC; spf=pass (imf19.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34CF4aQt021751; Fri, 12 May 2023 18:21:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=vsLFD4dVDOFW21XGcSvKmJrAPSFOY+0Jw3IhJz6RmFw=; b=fTFr2gXaRTK89SB2zGTd+b5FFRmQcMEYQ2mq41xEt5KQ5iAMNCaboEIi9Xikl0bPPeci ILAlQMyWaOGH3ZHtoDHBMuHmdJMs7nQlqNzsSEKJqftxOd3eQTkE3vmTzVZQE5+/daoG 9dg4TLVsXuIV6x3QDaGM2bMdtCljvooUeFvD1coZB7nrOJUp0I2/+CNxgFSwkhRz/eoo 84yUl1BF/BT7hG/NcD2LoXH1M4hEUa6AWxLW6e5jKIshQYxczoAIJc8w0dv6IkEkCkd7 f06GYWMXQeIhjbtuXp/jTtUE5OYYCuLRnCwFZSdcw4pKVcqy23+lPGOueE05A/m526Yn 7Q== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qf7793h30-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 May 2023 18:21:34 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 34CHaQV7011740; Fri, 12 May 2023 18:21:34 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2104.outbound.protection.outlook.com [104.47.55.104]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3qf8156yrf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 May 2023 18:21:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YExGPVHpZLX4k5PfVk6DcSf8WwBme1ewBCZzrSLdYbI4DUbiDDoDwdI7Wf+6a6nmlaC1iZqBCj3tVIpupZfGQ9d+yF/YM8z7xU7AqFs8Ssc1d4bR/TDbrycjmCw//sPQAhOvo2uGZ0vRLri0fjBBsHwptaq0GWqfsksUBZk9E8VU4UunMnwEwv9/tUouhUtNd52eq526/1zPQf+GPKoh6NnTUrvyjJ1G17cdzjF0Xb1hP+cY0yekeTgXYzt4UIiEpT/lrpV1owe925QDyVqGWMvMINkDO5NMxWyjxSmuPOmP+Bi8lE0J8EUlV5sR8xnLBT2rpTmSv3ed/yGPBhm+nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vsLFD4dVDOFW21XGcSvKmJrAPSFOY+0Jw3IhJz6RmFw=; b=Q5RxfCXBloU47lH8gfN1z/r8Oe+f9tdXgDNwyvxCDk0+IloD7VzRs8O3rkePvbHtjG2TzmjiD1ULi6h41WVkZ7BMeAUszvxcY6FvE78DWAt6mCZZ4zKEnJNWlJ1Xxr5e1YFWPW4sPqQQQfBEpjIDl+8ZUJxIonQwIHiWTVBxCbTKZwrm9EBV3ETdvXn0tn55na0ELHh9nntK4IIgzt2VLoK/13FBCED49Vm65BOTTN+s86TlOTWH1z58DG+p1bK6E5vyI7Xs+a4ERw0zlHUQ127aqe6nrQYZ0rZ+L61ukVIXGvVDmmOQX1InzWv/BvqIXHS1qcJWQyMjA1lxIqPsVg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vsLFD4dVDOFW21XGcSvKmJrAPSFOY+0Jw3IhJz6RmFw=; b=PP8XspECtzMnRVAPnpMiXZxFfiyHNXTy14JQlPDK+lKhpnzVqsDU4SY+K2QVm9fC+kmklH5O1+LoB8wZhovS54orFIvT3aRZPNdj95GC80kvjX+2hTU03cFrs4eAiE0WxwISZyux6ubYSK4SL1ws8iFX3/swpPsR0mjCEUT61tc= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by CY5PR10MB6143.namprd10.prod.outlook.com (2603:10b6:930:35::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.31; Fri, 12 May 2023 18:21:32 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::c478:d218:8f15:37c]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::c478:d218:8f15:37c%6]) with mapi id 15.20.6363.032; Fri, 12 May 2023 18:21:32 +0000 From: "Liam R. Howlett" <Liam.Howlett@oracle.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Liam R. Howlett" <Liam.Howlett@oracle.com> Subject: [PATCH v3 16/35] maple_tree: Make test code work without debug enabled Date: Fri, 12 May 2023 14:20:17 -0400 Message-Id: <20230512182036.359030-17-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230512182036.359030-1-Liam.Howlett@oracle.com> References: <20230512182036.359030-1-Liam.Howlett@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: YT4PR01CA0271.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:109::18) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|CY5PR10MB6143:EE_ X-MS-Office365-Filtering-Correlation-Id: b6dc8788-83e9-4eb1-1361-08db5315b677 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NBB+HZ8khRdcUct9TZ0KKH1EtUUw/lvgX1noGb23/MOZiHFPmIPNCDfm/06PRnnGhvRT82NSvTp4+ykZL+FDCIhOUBUHtZttGsbdDA88MY9romQ47eEz9to0sxJu38vp/KigmKyPzM4XauqXhwhdT5p+dGhfeoJTc25naAlb0EffhEkKd800vjzo/VAT4ETZgc0AsRfNHTU4R3v6lG3k65LQXSbTEK2jCmbYiltbRlTamp+G+cXVJeTNQvUPKhzHhbLlydZmgWrVQkXeb0E4HDFpjIAqDJ0Unbq9to9vM1IW2xdUnFzSXmGelgP6SupmWgSwrg3nLVfHjcj9FcLOhHFAd5n8pCyqYgkngRm3wIPzMmz3pNs/aqwPx+9en8hB0s5FMJm57uvgWnKOlChEMAo1HfG80Mb9xTIYqXVVzuQO5NT110a1T0LLtdzcqRQA4Grd5vRLhtdeRUUundZKoqV+UOR7Rc8FbUkciFO17W3gZbXx1Z7bnSNWZnY2Phy8hpPR0Ie371IWJkWCQI+XbbUxaq+YLtkHP5j7QiNYqTzF8leVUT9O33m496Jq9XpI X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR10MB3022.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(376002)(136003)(366004)(346002)(39860400002)(396003)(451199021)(2906002)(6486002)(66946007)(41300700001)(316002)(66556008)(8676002)(5660300002)(36756003)(4326008)(8936002)(66476007)(6916009)(107886003)(1076003)(86362001)(6666004)(26005)(6512007)(186003)(83380400001)(6506007)(2616005)(478600001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703rlw8IM3iaGHSWcDvoXuh3czDgoGKcVsuROIjnmBaqvJ1c+DSDQX6FRxPRY4Ftc2pxbvxLUSLu42hwE4Wf40VJLGsOdSc6/cq/Ik32VJTWX+8+vp2pl3rqm0HSOtagnYsT9tL/FfhUjYPlqhJ6XUZlmhKjTNUeapywWoh8vCEX5NO7RPTHh+fXG3M78z+ubZEyugnLMScU0yx3TL7Z28xIYn/aXmxapLXnT2kbDwDlLiij7dZv8y6VHgxi6nyk/qT/5mGLpBRqaStqevKWCGbbaGhbX19cwOq3Wz+tScDEMGPcDQYPcBmCKoqYYZ3P5uLbaQW+sgOEATIFd7o332r5b4U7kDHmwzCZSxNsV+jxZprHy0o0X/3nqzBzZhC4vII8shKPHEQcJ8ccFeOQcA/B410MpAYLDPLMvfHDZYE5rRD3e4D1DxBdi0YCf7F0fzsSDZrmbV8z3LLzSupOsCUfI64HirrRUX3/qY64xBtwu8Y/G2bD0Kc8Sus3uHDsc2nOR9oQJxdxC+mqiDEeQlowwj9ugKLGK/5fVOgXoA== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: b6dc8788-83e9-4eb1-1361-08db5315b677 X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2023 18:21:32.4761 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: TOVNffpnKP7EWekZluOC+rLUMuoQaMRFzyQdqMa3LEvEffjEgtUL/uEGfIYTbMlCtXKHQEuz/TCo7qCVQoVCRw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR10MB6143 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-12_11,2023-05-05_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 phishscore=0 adultscore=0 spamscore=0 suspectscore=0 malwarescore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305120153 X-Proofpoint-GUID: NgssMYgMZ5KHkwM3wUa8O8qOLsNbKrkD X-Proofpoint-ORIG-GUID: NgssMYgMZ5KHkwM3wUa8O8qOLsNbKrkD X-Stat-Signature: ksna5du6fb6m775jsqrkjhwu9ukcqb7d X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: 660291A000C X-HE-Tag: 1683915696-866218 X-HE-Meta: U2FsdGVkX18xMGW7sg9opaGe2uwix2C/0DRlszRz41bestpjzGRQi8Rvz7lgwZSvb5rWxjsq5Rupw8LGiEoB7uGr/e8S2obMB56xC8W/rhLWPEvaWMaP2vzAgQ/y+jKiyWe/FPsNHHXoIiVj8k9J+Cz6zp1lNt21QzHXUOkJsc7extoR2edW+hmkLHP4UyGjJ1Cdlv94frSqOGC0WQ4dMZxGB0vVlCEPDMLMZ94JMGnBct2xdgLOTXxN8jQe4aVprCz2uHD+9uCb500LmS03sF2u4CFIkQrx2GtIy1aVpfXEpUpQhYNp0P449zI9M4ydvuTXBh47EohC5buPMGn0RPA1cCkeqQFSCHvTkkcy4oXMC98OUhXVHCIoPWodTyfHtCMuo3xjcd2yk04z5DrkSB4rDeO/Y4rnC/56c8lWzBCOQIluKRGBx3KzR3KXuAc+chojU5cn1zUcg+QOOrW2CHJCNtMDnFF3PeSIoaJncAgoEJgEQu4yNH2d4/RVW0lcR4YXhY+9wn7U9elTaR5wTr9kYRH8SAYkT49JHO5HrDpR0KPHa1nzjnOJj9DrUmQUXeaJrqoxPb3WR0Ujf2arUn+eAoSaAxNocD0A8EKTZGcLmk4oGu9dSYVAqLmViQtSGvP6bNqmIsmaUXTGfasj6XFSQWlkLcbYTD2Eq3ZzB2Cyjn8ED2DQOurj0DjFXHnANHbd6cPRtWkDQCjFnEKXkNxqGO6LSCAMzlRZ3WI+0ns6aZ9TdURLCkvqoNVHtgm0yPBpKlpBXmV63sQ+hOKlaxersNW71bUlQvGSltiPYlv+fK7rqC9iwAuKmtrx0x6oIiBZJ+Jm/UavvWfNYnGKwGjd1kfSY2Yyad4FBUJ6477IzIbaAaDD8U+WgYzrywUNWYzzUAWEH+iphmB7yuyiEXsuQVgTzwWJz8Gje5Cgjut7awEmulvYcj3lI1eNK72aIz4rcZiCBHQuiAco0BW 7HMtvKby IgrbO5nREqfwKpbeTt7rQt0+Za73E9bUstV4glwiP1nPRy2g1nt7Xdn3u1w0TZcfHqF9iO55K5XQaS8cnmN9BvXqufO7KzhsbH7xaeJirbBD21sA78Gers7lDoJibRl4XfJgcmCUloSMJaOSS0AJtyKp12C7f/7gkb1dBeUi8En10i0O9B58zd5Iuur/ilhbN17Ce4ZOXSTDIHGyE9X1o13ReIbe5QUqUZB3IsJokZbSRubYT8tctOR2KGTzc+gRnfaoSkJ43rWjtGXK35lyVBaUVhm33bvRgWhFwQXogbr7TBwAIxK/akoa9jcQw/w4dVXA6kDlY4CzKvKosgefTbaSZXmQX+LnLBWrtRGZkZOynNjDT12vSRHT7cb1Z00lu/SQW0RPfu7x+ZLgOBC7Bt78f3yGu0mJVHOfNa07+/NkANamAquBdoNix7MwGVBsKeIunMWi40MKww7YLZ0sbmyzYMg== 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> |
Series |
Maple tree mas_{next,prev}_range() and cleanup
|
expand
|
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index be272aa2fc0a4..17ba96a3c7bfe 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -2293,9 +2293,13 @@ config TEST_XARRAY tristate "Test the XArray code at runtime" config TEST_MAPLE_TREE - depends on DEBUG_KERNEL - select DEBUG_MAPLE_TREE - tristate "Test the Maple Tree code at runtime" + tristate "Test the Maple Tree code at runtime or module load" + help + Enable this option to test the maple tree code functions at boot, or + when the module is loaded. Enable "Debug Maple Trees" will enable + more verbose output on failures. + + If unsure, say N. config TEST_RHASHTABLE tristate "Perform selftest on resizable hash table" diff --git a/lib/test_maple_tree.c b/lib/test_maple_tree.c index d6929270dd36a..93b40a78c4f55 100644 --- a/lib/test_maple_tree.c +++ b/lib/test_maple_tree.c @@ -11,12 +11,33 @@ #include <linux/module.h> #define MTREE_ALLOC_MAX 0x2000000000000Ul -#ifndef CONFIG_DEBUG_MAPLE_TREE -#define CONFIG_DEBUG_MAPLE_TREE -#endif #define CONFIG_MAPLE_SEARCH #define MAPLE_32BIT (MAPLE_NODE_SLOTS > 31) +#ifndef CONFIG_DEBUG_MAPLE_TREE +#define mt_dump(mt, fmt) do {} while (0) +#define mt_validate(mt) do {} while (0) +#define mt_cache_shrink() do {} while (0) +#define mas_dump(mas) do {} while (0) +#define mas_wr_dump(mas) do {} while (0) +atomic_t maple_tree_tests_run; +atomic_t maple_tree_tests_passed; +#undef MT_BUG_ON + +#define MT_BUG_ON(__tree, __x) do { \ + atomic_inc(&maple_tree_tests_run); \ + if (__x) { \ + pr_info("BUG at %s:%d (%u)\n", \ + __func__, __LINE__, __x); \ + pr_info("Pass: %u Run:%u\n", \ + atomic_read(&maple_tree_tests_passed), \ + atomic_read(&maple_tree_tests_run)); \ + } else { \ + atomic_inc(&maple_tree_tests_passed); \ + } \ +} while (0) +#endif + /* #define BENCH_SLOT_STORE */ /* #define BENCH_NODE_STORE */ /* #define BENCH_AWALK */ diff --git a/tools/testing/radix-tree/maple.c b/tools/testing/radix-tree/maple.c index ebcb3faf85ea9..cf37ed9ab6c4d 100644 --- a/tools/testing/radix-tree/maple.c +++ b/tools/testing/radix-tree/maple.c @@ -22,7 +22,6 @@ #define dump_stack() assert(0) #include "../../../lib/maple_tree.c" -#undef CONFIG_DEBUG_MAPLE_TREE #include "../../../lib/test_maple_tree.c" #define RCU_RANGE_COUNT 1000
The test code is less useful without debug, but can still do general validations. Define mt_dump(), mas_dump() and mas_wr_dump() as a noop if debug is not enabled and document it in the test module information that more information can be obtained with another kernel config option. MT_BUG_ON() will report a failures without tree dumps, and the output will be less useful. Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> --- lib/Kconfig.debug | 10 +++++++--- lib/test_maple_tree.c | 27 ++++++++++++++++++++++++--- tools/testing/radix-tree/maple.c | 1 - 3 files changed, 31 insertions(+), 7 deletions(-)