From patchwork Mon Dec 18 12:40:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Potapenko X-Patchwork-Id: 13496828 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4787EC35274 for ; Mon, 18 Dec 2023 12:41:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=KgPaKFAET1CcL/jO5BvCfR/OYwdUwTMX+5KAsB9uk+0=; b=fS7wzz2k6YYLAaJlS3poQHd6Wp SkW3Ns5na0dy7NIRng2+gEn093WR8AQ6opDZZPp+OHourZUmxFFUdB+LZc5ymiRs7/+za+N2cZK5/ Bq0Y8COmSpJ+eLnlci9Bmp5cFBrf7T1+dJmWsu6a8hbO/HZ+HpfRok2oYusIaVMTwf93MfFEfecbE B+3gEGBhELGzxG6Y3xlenjQjui/cC4zXuv/yvm3q/LycH4GMEmhCsNr0N4oJ5MZpC61d5aTweaB+l kXgs4cqnE8teH6CRm71Jtu6eDV+S+GQXlHQ2IAcglIlk2yeN0pQDfb5KpgrpfqOhAWm5ZDgBHujI5 G8VFGi5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rFCvl-00Adr7-2H; Mon, 18 Dec 2023 12:41:09 +0000 Received: from mail-ed1-x549.google.com ([2a00:1450:4864:20::549]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rFCvS-00AdgW-1u for linux-arm-kernel@lists.infradead.org; Mon, 18 Dec 2023 12:40:52 +0000 Received: by mail-ed1-x549.google.com with SMTP id 4fb4d7f45d1cf-551c184a8aeso1577820a12.2 for ; Mon, 18 Dec 2023 04:40:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702903246; x=1703508046; darn=lists.infradead.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=Qs+j5zfhwbmFpwYioV+9DGlHFgYonyMMkWfDj06Vx9Q=; b=WEe7GW7aCxqXtp1PO3YBZ5itA7IWnKZxqlgP9Xl16oN6T/+Qa2DvigDfZO9/Ihfpi+ Yv9w8xG8o0UbVI9etSPCZ3fRH3BXCz1id+hQDmqD3Jml/wsCXa+99mnlUV7xWbHWk+97 3H84SpkbibiBjkZT1RA0iiGfimOPFdBWvd9Y5H1M+nJryJ4ZV3aMPxkuXMjmJthf6Nyt 4Ogaw3YA0KVphjF6TkrMmnC+Gc6i78mx7GGEybFLMb5IFEGkmk97/ma7VJhTzvP2i9IE fHEju+zYC74FDfI6x3xouh3Kk8MvAbXQuBsMLtmf9xtnfRj8Of5mXS2m/Bm1olXiGb5I lRuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702903246; x=1703508046; 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=Qs+j5zfhwbmFpwYioV+9DGlHFgYonyMMkWfDj06Vx9Q=; b=OJLFoCnTqjiVxAMME9/cb4FsmKwiOx6pfAEV1lao6bKRXQI/oxFufh/Bt/L5FeEvD8 kgZ5Y85La4VnTKaZlVO5nwP5eiWhkpw11IVFwdSG8B6/qdjm3oA1WLDJ7CgXHEARJnw+ RMwKfnOlR0ReyiA1hY6TONxi49mZe9sILCbNUWNL8zS7Pcu0+lvCyJeg/P629LEHGHcm JoHj/gmjONF4+fle0YSJM/Qm8CAG8ejOzHCMi8LVaW503NkqIhmybLEsPvqHfLzWp0rj wSlK9d3Y0AGAYUyh15EN4LHK8R2nIHPXOVixPm3UJgZ53chIHP+YefwuRBQXnkvNoshT Rsvw== X-Gm-Message-State: AOJu0YxOgRPw8NDN5OFBAMjh+V0kY80clBC7jpPcPBGCQConO2DY8qIl xBNngDCAqHAbOCW4h8ysCqfKXXox8PY= X-Google-Smtp-Source: AGHT+IFQVHgRH93m/ueB3XJGh9TO8YJYZZ4U7vSweIWkP1eoMbz/HsT3jdJ+e4LMpQ/IE0AeW1HhdHhT8gY= X-Received: from glider.muc.corp.google.com ([2a00:79e0:9c:201:9a3f:c8e7:1395:806e]) (user=glider job=sendgmr) by 2002:a05:6402:3083:b0:552:fdb5:6de0 with SMTP id de3-20020a056402308300b00552fdb56de0mr30708edb.3.1702903246393; Mon, 18 Dec 2023 04:40:46 -0800 (PST) Date: Mon, 18 Dec 2023 13:40:29 +0100 In-Reply-To: <20231218124033.551770-1-glider@google.com> Mime-Version: 1.0 References: <20231218124033.551770-1-glider@google.com> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog Message-ID: <20231218124033.551770-4-glider@google.com> Subject: [PATCH v11-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231218_044050_647229_53DA6D01 X-CRM114-Status: GOOD ( 11.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- v11-mte: - add Yury's Acked-by: 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