From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 40385C43334 for ; Wed, 22 Jun 2022 09:29:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D46D08E00A8; Wed, 22 Jun 2022 05:29:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CD0D48E00A5; Wed, 22 Jun 2022 05:29:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B98118E00A8; Wed, 22 Jun 2022 05:29:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id A77EC8E00A5 for ; Wed, 22 Jun 2022 05:29:21 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 76B03913 for ; Wed, 22 Jun 2022 09:29:21 +0000 (UTC) X-FDA: 79605348522.09.A6A196B Received: from mail-oi1-f193.google.com (mail-oi1-f193.google.com [209.85.167.193]) by imf14.hostedemail.com (Postfix) with ESMTP id 255D910009B for ; Wed, 22 Jun 2022 09:29:17 +0000 (UTC) Received: by mail-oi1-f193.google.com with SMTP id u133so2154480oie.3 for ; Wed, 22 Jun 2022 02:29:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=S7YCwWO403eb6jSUcJPccCfByUA2xjtU4XxYzFljMus=; b=ZbLfSSub1wLryKQq8L9wO1wP9ihM6/OBMWklIOChF/T7wM9LmtVHiKQeSWA3jW4CSy 6uF9/H2AR9d7fTS/UJ2ZtfQTd7ccBHHBigG0VW6UeEX4jkBq8TDgAOhLJ7nQ+DI3fGJO Kgw/4oLNVkcwBpPapON+EMY8TUYF8OJUBMvCGAgJoGLUlaBNSjdjPCqL5EqjzCOxUYNp cC5BQLzMtfn2/fS46cSoMblJhIe+UAa1eNMiPPRNixsPsRHL/cW6KQmbgGTcU/jiKKEX HNrzRlI2/612NSNSlvD2r2RRr8Dhit0MHOLer0bDX61Fglvb5hoEUioPeWCWzIa4YqhE JXxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=S7YCwWO403eb6jSUcJPccCfByUA2xjtU4XxYzFljMus=; b=N1L65CWRVr59YNsG4WDEqDHCzo0KFXouULqLp+a2NSr6YqdXwQ2BgQMj6TDIpUamST +fTXPwoTWAHGM8VWRZu0REAPygGo5ZMqu6NsY1I7BdhbIcTbgCsQVdg9vB0mxHfE6yvS Og7MLmeLaDgnWQvIuWEHmJdhYUV1gdNL4Y5C2i62XrtXVJQtCRfKvaQozUYLrncXbcYB U6T+muciaCLEDnOfi3M8pfyVYqy37lRsf1oRZbV3O+M9h0GtPz15vtuf54Mo4pz3GM/m BiyFu0gejSJqkLok6k6/4vTlZVwDY5cRUYSVmF18sZZS1j+AGiOOSdRScigxJkd20VIG EnqA== X-Gm-Message-State: AJIora8TStEIfQzJtM4CBdT5FA0ztjSI115Gw3XIILuHEUEKEEc/gdpP 5Y5JIK7gFSfXghnRdbYoWKc= X-Google-Smtp-Source: AGRyM1sjhUfEL2Nks508r/8kuyXaGVGQqsgR96YUWnFRtcc/51XoLRZscG7sgTv65Di8sJIzhRRCLg== X-Received: by 2002:aca:e045:0:b0:333:2014:9daa with SMTP id x66-20020acae045000000b0033320149daamr10730307oig.67.1655890154826; Wed, 22 Jun 2022 02:29:14 -0700 (PDT) Received: from bertie (072-190-140-117.res.spectrum.com. [72.190.140.117]) by smtp.gmail.com with ESMTPSA id t21-20020a056808159500b003264a325ecdsm10552414oiw.5.2022.06.22.02.29.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 02:29:14 -0700 (PDT) From: Rebecca Mckeever To: Mike Rapoport , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: David Hildenbrand , Rebecca Mckeever Subject: [PATCH v3 0/4] memblock tests: add VERBOSE and MEMBLOCK_DEBUG Makefile options Date: Wed, 22 Jun 2022 04:29:05 -0500 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655890157; 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:references:dkim-signature; bh=S7YCwWO403eb6jSUcJPccCfByUA2xjtU4XxYzFljMus=; b=rABXFUCy1Yb+ndi7DyZ6UYYzEeOy69WFyZwuMIufarCIAUrOfzAPDqt5sYc/4dkPsI3Gy7 iyaU+7oLELb8WNlaZ4eZHKEMazcjqoi4sGYRkRqAg84jCVtLHZunyom6qBJd5EBbCtbZs/ xsPFy/t/1StewCKKPh/8ErW27QuwmUA= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655890157; a=rsa-sha256; cv=none; b=rCBT/0Coqh6Gra8T/epmTB7uYM7iMwJhCjvu4PNXy7ukxZkKdVJ7tzuUwACWPgnhWiSm8Q +ykfi3gF2z4Py3cLZ1sLgWJ1eUQWmVpXCJ/pMQnYc2iGUewVSEdaCvQlPeDI0kThG0lFjf +heRpt7cRvn29QPBPTMHu5o04PyWANU= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ZbLfSSub; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf14.hostedemail.com: domain of remckee0@gmail.com designates 209.85.167.193 as permitted sender) smtp.mailfrom=remckee0@gmail.com X-Stat-Signature: y6a9jw6yxgnxag87sxgfzo7aah8kopnc X-Rspamd-Queue-Id: 255D910009B Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ZbLfSSub; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf14.hostedemail.com: domain of remckee0@gmail.com designates 209.85.167.193 as permitted sender) smtp.mailfrom=remckee0@gmail.com X-Rspamd-Server: rspam02 X-Rspam-User: X-HE-Tag: 1655890157-577941 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000009, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: These patches add options VERBOSE and MEMBLOCK_DEBUG to Memblock simulator, which can be specified when running make. These patches also implement the functionality for these options. VERBOSE Usage: $ make VERBOSE=1 Passing VERBOSE=1 will enable verbose output from Memblock simulator. For each test, the verbose output includes the name of the memblock function being tested, the name of the test, and whether the test passed or failed. Since all the tests in Memblock simulator run as one monolithic test, this output is a quick way to get a summary of test results. MEMBLOCK_DEBUG Usage: $ make MEMBLOCK_DEBUG=1 Passing MEMBLOCK_DEBUG=1 will enable memblock_dbg() messages. These are debug messages built into several functions in memblock that include information such as the name of the function and the size and start and end addresses of the memblock region. Rebecca Mckeever (4): memblock tests: add user-provided arguments to Makefile memblock tests: add verbose output to memblock tests memblock tests: set memblock_debug to enable memblock_dbg() messages memblock tests: remove completed TODO items tools/testing/memblock/Makefile | 4 + tools/testing/memblock/README | 10 +- tools/testing/memblock/TODO | 14 +- tools/testing/memblock/internal.h | 7 + .../testing/memblock/scripts/Makefile.include | 10 + tools/testing/memblock/tests/alloc_api.c | 241 ++++++++---- .../memblock/tests/alloc_helpers_api.c | 135 +++++-- tools/testing/memblock/tests/alloc_nid_api.c | 371 ++++++++++++------ tools/testing/memblock/tests/basic_api.c | 365 ++++++++++++----- tools/testing/memblock/tests/common.c | 58 +++ tools/testing/memblock/tests/common.h | 54 +++ 11 files changed, 913 insertions(+), 356 deletions(-) --- Changes v1 -> v2 PATCH 2, in common.c: Remove #ifdef VERBOSE around prefixes and related constants Add __maybe_unused to prefixes Move PREFIXES_LEN_MAX, DELIM, and DELIM_LEN so that they are immediately after the other constants Add #ifdef VERBOSE around definitions for test_*() and prefix_*() v2 -> v3 PATCH 1: Add Reviewed-by tag --- -- 2.34.1