From patchwork Mon Jul 18 19:28:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 12921675 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 7013BC433EF for ; Mon, 18 Jul 2022 19:29:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8DF1E940013; Mon, 18 Jul 2022 15:29:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7A53694000D; Mon, 18 Jul 2022 15:29:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5D15C940013; Mon, 18 Jul 2022 15:29:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 4052894000D for ; Mon, 18 Jul 2022 15:29:07 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id D7CD3343C3 for ; Mon, 18 Jul 2022 19:29:06 +0000 (UTC) X-FDA: 79701208692.23.02A7ECB Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) by imf15.hostedemail.com (Postfix) with ESMTP id 5B54CA0075 for ; Mon, 18 Jul 2022 19:29:06 +0000 (UTC) Received: by mail-qt1-f176.google.com with SMTP id h22so9531846qta.3 for ; Mon, 18 Jul 2022 12:29:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=Y6DPpRFLDofGUL30b8+74GM4qwE4L2Zyq6sG1ZF6ebc=; b=dJrCdDdqoGBgCDi7uWoyd5h17sRa80Fs9GLm+P5DflfdZGuXJIVujeqX7lMRY06I8S t67bwzKyDstdRzhhUJT0vfUUmKANMlnUrNgw70sKglBzGUmW7C376hy4i3UQnjZifkek /9+PVCJu47AzGcSDT0BMA8vnweK45F4w3DfYiIC12NYsnjiEIPVVk5+271whtyjRYaNN N9ewHE3z8dFgGz8xroMMjlLM9s5XJQjkXW67JbGA6OgtOLqZ6+prLIpP2wjU2YHGx838 2Rnf2t9y4v4gfPTyeAgE+qUm/m8zeflm6dFi7d626bdAey5662yUyGEU3mpx0x/jNXL7 +mkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Y6DPpRFLDofGUL30b8+74GM4qwE4L2Zyq6sG1ZF6ebc=; b=5/JW1a3voXy82uyMQjybHzej+3ygJ3uZKQ+67b+1uvszHzEc0bBeOLssjVu3YLM17O 6gsl/FMZUlRlLGfkjIgPORI6msbH1uAYLni4jLQAyusnNRqS+DBSEHrrHXobLj8EyHkq TsHVPE/IH55VoHfs1i4+x0Fd/8P3DvYnuQcilNLjLEx/EZ4CVlEM9M4UbujVJt29r3Ny i9GAH3hmTOKhxDJ3vEGam6phOyziw7xbjQiHW8vfsERcbVK1ouUXQ1TNzOBTcBmDdkIS 1ZZ0TFMdd+Ej6MttqqbIICpJVsk53hrJF0h5rJZuNuXxUfu9uMeEsMkwTEy9rVTzKckb E6bw== X-Gm-Message-State: AJIora/9R33KckHJ35twTZ0eomzk7eH3Cjd5vRIAduIVEWJe+FpZB3DD 5AsXBSQ+B3rEkY9GRbQGapQ= X-Google-Smtp-Source: AGRyM1syCvkoM65NB7O+4/9AZzHgi6k/66P3Xg8nH/ToRSp+ANBXlBuAKKOv4tS6vWWn7KIVfqErdQ== X-Received: by 2002:a05:622a:1211:b0:31e:ba39:41e8 with SMTP id y17-20020a05622a121100b0031eba3941e8mr22777530qtx.189.1658172545549; Mon, 18 Jul 2022 12:29:05 -0700 (PDT) Received: from localhost ([2601:4c1:c100:1230:ab01:d009:465a:5ab1]) by smtp.gmail.com with ESMTPSA id dm1-20020a05620a1d4100b006b5c87e9eb1sm11659333qkb.102.2022.07.18.12.29.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jul 2022 12:29:05 -0700 (PDT) From: Yury Norov To: linux-kernel@vger.kernel.org, Alexander Lobakin , Alexei Starovoitov , Alexey Klimov , Andrew Morton , Andrii Nakryiko , Andy Shevchenko , Ben Segall , Christoph Lameter , Dan Williams , Daniel Borkmann , Daniel Bristot de Oliveira , Dennis Zhou , Dietmar Eggemann , Eric Dumazet , Frederic Weisbecker , Guenter Roeck , Ingo Molnar , Isabella Basso , John Fastabend , Josh Poimboeuf , Juergen Gross , Juri Lelli , KP Singh , Kees Cook , Martin KaFai Lau , Mel Gorman , Miroslav Benes , Nathan Chancellor , "Paul E . McKenney" , Peter Zijlstra , Randy Dunlap , Rasmus Villemoes , Sebastian Andrzej Siewior , Song Liu , Steven Rostedt , Tejun Heo , Thomas Gleixner , Valentin Schneider , Vincent Guittot , Vlastimil Babka , Yonghong Song , Yury Norov , linux-mm@kvack.org, netdev@vger.kernel.org, bpf@vger.kernel.org Subject: [PATCH 16/16] lib: create CONFIG_DEBUG_BITMAP parameter Date: Mon, 18 Jul 2022 12:28:44 -0700 Message-Id: <20220718192844.1805158-17-yury.norov@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220718192844.1805158-1-yury.norov@gmail.com> References: <20220718192844.1805158-1-yury.norov@gmail.com> MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1658172546; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Y6DPpRFLDofGUL30b8+74GM4qwE4L2Zyq6sG1ZF6ebc=; b=U0TPavUSDUhRpfQMexrpx1JQfgdNsqqINfzQbAQmc7Dw36d/bkNCPCPrX/uEHJrMOB47a8 tTQJXm1lzoNHbo06gdZpUKh7tzVAJUt0Q8WQKbIIk7/mJhV1XDF8fCoXm+i6CPFbnhPJQp e5LGoqHo0YicLOZJV+1CDuJjsvWr9lU= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=dJrCdDdq; spf=pass (imf15.hostedemail.com: domain of yury.norov@gmail.com designates 209.85.160.176 as permitted sender) smtp.mailfrom=yury.norov@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1658172546; a=rsa-sha256; cv=none; b=iIGJGkyrzFZFNBAZtTM2HYbn5nKiQ2sT8z7cfW6rgj2bT1gnQwiGcak/JtOZM3oxhGX4wI /b/aiAG9fuG167GtQulp2KgvQ8p5gtTn4oUrDOB3JZVJGAoVB+s2yYDcnJM0X8Hs3Gdip8 FkQ3lErWR1ICqCnjW2ho0/Wc5TsaES0= Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=dJrCdDdq; spf=pass (imf15.hostedemail.com: domain of yury.norov@gmail.com designates 209.85.160.176 as permitted sender) smtp.mailfrom=yury.norov@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 5B54CA0075 X-Stat-Signature: x79pzjtprjfp1deg6sezji19oap7hoqf X-Rspam-User: X-HE-Tag: 1658172546-255959 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: Create CONFIG_DEBUG_BITMAP parameter to let people use new option. Default is N. Signed-off-by: Yury Norov --- lib/Kconfig.debug | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 2e24db4bff19..cde1b5b7bb9d 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -533,6 +533,13 @@ config DEBUG_FORCE_WEAK_PER_CPU endmenu # "Compiler options" +config DEBUG_BITMAP + bool "Debug bitmaps" + help + Say Y here if you want to check bitmap functions parameters at + the runtime. Enable CONFIG_DEBUG_BITMAP only for debugging because + it may affect performance. + menu "Generic Kernel Debugging Instruments" config MAGIC_SYSRQ