From patchwork Thu Dec 14 11:06:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Potapenko X-Patchwork-Id: 178663 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp8461493dys; Thu, 14 Dec 2023 03:07:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IHicklwl8hoYXC6pVGpib5iqCemGs3F1WwceE6G0Qykmyu+RFO7qgsqrbDS0IZ2Xmfw+Rc7 X-Received: by 2002:a17:90a:b38e:b0:28a:c749:23cf with SMTP id e14-20020a17090ab38e00b0028ac74923cfmr1666797pjr.75.1702552043705; Thu, 14 Dec 2023 03:07:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702552043; cv=none; d=google.com; s=arc-20160816; b=06CvMR8iHGOOrFKqQqm4dXJctQlxIMV+5b28y1N3B7G8vwDfhvrzGmZIojqURoOayw tPzCxHXUJ3aVUQAaOCHJNcUdOK0DXQfHwUlXKPWjxKX4dqO/Z+3/1Cj7CcVhI6NDwAoo yLFIm5ZDpYTHzhziKL9ccfz1UxSjX+qjYjfWz7hVDc0wL5pZHiREDpA9+m6u9Yni3WH7 yLVaeRQ3MdWIWnP39StGDP5rxRHE1qOLdcK93Zm+TBO28WMYFja4TMSiFaZlt4V/DhOe dejs7i3H3+1gWOK1+HHPkJOGb+fKmQCcZzmwmcOIMzmW5/vzPK8CzLsTRFHBMjNw3/lO aKVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=g2GSxzhcZ07xCv7d1L9tozvjfnh/gD6wLbTwZXMSaKU=; fh=bwsiIJU4ZySHCYgdbJrawkDYkx7XsqbTjYxIEnch01E=; b=ha5x2KYgBxMfFoExlznYX+a3G8FN5BoBPRetfVADh+pdtfr46Qe/WhcIP+j8+xFnl9 WJMjTPKUG8bJUmzgrKoJsTBgFKmruMPIZHCple557L53o78ZSpe3fPmwY+MxAjVj1rQM AMP3uPhwrhvBaoDJo+gYJZ+AUy7IVsZ179zbJgiJQwSMdnmR+hOVRQz0KtSEVmIeP5Gh 235pym/2d5sr+o591urmEl5cpw0AE/YAaP7kXahHqIjuTLr4mA790XpwHOktrolPLrLS FFiY1/ui+Z1YneTBdlTWpHT1A81xjaJIhpt17omp6TlHTPYIrJaIhYxLCjw/qzI1k98W Ecuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=qLlgVyYJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id oc17-20020a17090b1c1100b00286e9b1a767si11333944pjb.100.2023.12.14.03.07.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 03:07:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=qLlgVyYJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id CC46B831D2FA; Thu, 14 Dec 2023 03:07:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443953AbjLNLHF (ORCPT + 99 others); Thu, 14 Dec 2023 06:07:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443946AbjLNLGu (ORCPT ); Thu, 14 Dec 2023 06:06:50 -0500 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CB3312C for ; Thu, 14 Dec 2023 03:06:55 -0800 (PST) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-5d0c4ba7081so95229457b3.0 for ; Thu, 14 Dec 2023 03:06:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702552014; x=1703156814; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=g2GSxzhcZ07xCv7d1L9tozvjfnh/gD6wLbTwZXMSaKU=; b=qLlgVyYJDfMBdwGquZ1gI1iTSviYf7C6ZOYCw55bDuN8FhB+JVy/qYH98RHoncXgKN J22i9SLmfoD2LCCtagPlNKq4BKEuSpyjhWxOtXaOj5sDwYgFQJr+tW/XmmNhu3/x78KB JQQxhX5/lu4FIxEoKUwTNeauHM5POj97zctAqfPWhoIvMIL9X9U0l2/AxmUSqG+gB2pl hecKTuE68x8JhWGLfRvfKJFPGHiMQfzkVpgehGvhoufpTk2S7n3Q+ueBnJoEMaY7f1tQ 5eZucf4uoJPRZI5Tth2b4PDXGpCuxL4RR9YCv6qSEl0Hz8IMawqeVF1gfdEj2aoh9msk PHLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702552014; x=1703156814; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=g2GSxzhcZ07xCv7d1L9tozvjfnh/gD6wLbTwZXMSaKU=; b=wqV0RYrpqquVEjCg5IzKrI+JpTizdvkTxc59m1Ektt24HMnYnU37Df4ONh4UoNWH8C isbyHM+QNJtPubspMWuFJM9ymRJ+KQOv6sUd6QA2e4gWqBxWUIZuW6ZZV6gpQQMHGDAW pJwYtD5AFWoMLfQlqBYTugU5ck68vjcwiIuDt9jeJ1zI8YkB9Or/Hh1ELX2dJc4IW4Af lTvp/lDm8ee3Xguq0lzjIuD1zciChSDJajx236jkfY2uoQvoAq8vDr4KZDMTnAR10oJs nwyGADXT6W7W/KgRAL8j1RrzH4B6rtfVCX6f1JWGseiGfxEDe6yWuNXETJjmrg8laI7Z JyYQ== X-Gm-Message-State: AOJu0YwnCZeGLhNaY8NiJPibIaYEboFkpZJZcWkAr+36+ye24VD1rKhq zfk4DtW5ts/Z6TAaAL/hfXiK5jaUdas= X-Received: from glider.muc.corp.google.com ([2a00:79e0:9c:201:8447:3e89:1f77:ff8a]) (user=glider job=sendgmr) by 2002:a05:6902:1345:b0:db7:e75c:24c1 with SMTP id g5-20020a056902134500b00db7e75c24c1mr6642ybu.9.1702552014550; Thu, 14 Dec 2023 03:06:54 -0800 (PST) Date: Thu, 14 Dec 2023 12:06:35 +0100 In-Reply-To: <20231214110639.2294687-1-glider@google.com> Mime-Version: 1.0 References: <20231214110639.2294687-1-glider@google.com> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog Message-ID: <20231214110639.2294687-4-glider@google.com> Subject: [PATCH v10-mte 3/7] lib/test_bitmap: use pr_info() for non-error messages From: Alexander Potapenko To: glider@google.com, catalin.marinas@arm.com, will@kernel.org, pcc@google.com, andreyknvl@gmail.com, andriy.shevchenko@linux.intel.com, aleksander.lobakin@intel.com, linux@rasmusvillemoes.dk, yury.norov@gmail.com, alexandru.elisei@arm.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, eugenis@google.com, syednwaris@gmail.com, william.gray@linaro.org X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Thu, 14 Dec 2023 03:07:20 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785255211783568368 X-GMAIL-MSGID: 1785255211783568368 pr_err() messages may be treated as errors by some log readers, so let us only use them for test failures. For non-error messages, replace them with pr_info(). Suggested-by: Alexander Lobakin Signed-off-by: Alexander Potapenko Acked-by: Yury Norov --- v10-mte: - send this patch together with the "Implement MTE tag compression for swapped pages" --- lib/test_bitmap.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/test_bitmap.c b/lib/test_bitmap.c index 46c0154680772..a6e92cf5266af 100644 --- a/lib/test_bitmap.c +++ b/lib/test_bitmap.c @@ -507,7 +507,7 @@ static void __init test_bitmap_parselist(void) } if (ptest.flags & PARSE_TIME) - pr_err("parselist: %d: input is '%s' OK, Time: %llu\n", + pr_info("parselist: %d: input is '%s' OK, Time: %llu\n", i, ptest.in, time); #undef ptest @@ -546,7 +546,7 @@ static void __init test_bitmap_printlist(void) goto out; } - pr_err("bitmap_print_to_pagebuf: input is '%s', Time: %llu\n", buf, time); + pr_info("bitmap_print_to_pagebuf: input is '%s', Time: %llu\n", buf, time); out: kfree(buf); kfree(bmap); @@ -624,7 +624,7 @@ static void __init test_bitmap_parse(void) } if (test.flags & PARSE_TIME) - pr_err("parse: %d: input is '%s' OK, Time: %llu\n", + pr_info("parse: %d: input is '%s' OK, Time: %llu\n", i, test.in, time); } } @@ -1380,7 +1380,7 @@ static void __init test_bitmap_read_perf(void) } } time = ktime_get() - time; - pr_err("Time spent in %s:\t%llu\n", __func__, time); + pr_info("Time spent in %s:\t%llu\n", __func__, time); } static void __init test_bitmap_write_perf(void) @@ -1402,7 +1402,7 @@ static void __init test_bitmap_write_perf(void) } } time = ktime_get() - time; - pr_err("Time spent in %s:\t%llu\n", __func__, time); + pr_info("Time spent in %s:\t%llu\n", __func__, time); } #undef TEST_BIT_LEN