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: 180358 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp1209623dyi; Mon, 18 Dec 2023 04:41:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IGME+zwj0tDUQy3EdgGFAxr3uLiPDbfYrvvHuRw/FD6wejRzn6qstd1O3uc6KFNLopQYAjr X-Received: by 2002:a17:902:db09:b0:1d0:b2d7:b1ac with SMTP id m9-20020a170902db0900b001d0b2d7b1acmr9350848plx.92.1702903300418; Mon, 18 Dec 2023 04:41:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702903300; cv=none; d=google.com; s=arc-20160816; b=f4PVxPZ0iiYA2MOGzMpsiUNlT+bkPsTqyv3pZhvW4frOeTAG+jCQEJUYA0f/KCoOCk /xSz//X6BcY6bbKDXLKjNYGVM6trlRoVVT49kpQj9fbgurqwD0bRbytQtvJOfeCtMTNz ljIFSb63PWX1Esy83S0wW6KMdJy7DelxP7TAVo25oXdGDeZASiGVcWt2V/UmYi2/1Lfc 3pS9JPlHdtMkgooTZO8yS/dTGo+/Mzlo2LDl+BFFiJ+fhJNvVwIzwR34z/lign+78jwC 6MRKYuuS+0ENvsBnPB6SmmWeCJJHpB131CsalzBYOvUE0e9+XVwNeNDbiIIZK4M+sCav Xkuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=Qs+j5zfhwbmFpwYioV+9DGlHFgYonyMMkWfDj06Vx9Q=; fh=bwsiIJU4ZySHCYgdbJrawkDYkx7XsqbTjYxIEnch01E=; b=pl33k7Aemp/BLreGXwv7u+0mHKepKg/Jncpds4biknZYWtycK41SNivCsrDWHO73l4 tDkBoi09jp16Bhbq1GY9+xqKUVfXwL+4mgIV/Qgrv9Vg+rlw8g3hPb/D4V7U994pI074 gtXZY9RlGDydtRorg/Kk72FrkXLT8I5HR5gJ5f4aMB8eJ8imfJ56tHPOQRvS93R/fGSr /BYYUfaFk7S5gMM3Bcs2woU1YSnXWv8brD5E1vbLxqlON19G/J4t76s46hX9hkk/ujHr pYQ8IB1C9pzUWU3JhLqjmcO0auOOQ0XWXbxcaE+K4zsUfzG0mYNbQhQoB7oFkU0eyl0T rxKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=lxJ+dgTS; spf=pass (google.com: domain of linux-kernel+bounces-3582-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3582-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q18-20020a170902dad200b001d3ce115fb4si429463plx.82.2023.12.18.04.41.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 04:41:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3582-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=lxJ+dgTS; spf=pass (google.com: domain of linux-kernel+bounces-3582-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3582-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8215328446F for ; Mon, 18 Dec 2023 12:41:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C64580DED; Mon, 18 Dec 2023 12:40:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="lxJ+dgTS" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f73.google.com (mail-ed1-f73.google.com [209.85.208.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 532457EFD5 for ; Mon, 18 Dec 2023 12:40:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--glider.bounces.google.com Received: by mail-ed1-f73.google.com with SMTP id 4fb4d7f45d1cf-55336b3d3c0so626597a12.1 for ; Mon, 18 Dec 2023 04:40:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702903246; x=1703508046; 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=Qs+j5zfhwbmFpwYioV+9DGlHFgYonyMMkWfDj06Vx9Q=; b=lxJ+dgTSRFj/xSbJScprKbh1a2XlGc83TFqd/5Hs/Q8UsEJ3YrXXguhHGzh8xSCM0H ypOBIXjnE8jQfJQRKP/4TqZxhAC/9lkvwjHN0U4HN3z3jpVKm2C2fPhBUlhq8P1A5M5V e4ATLEt8P0xfHPODKuKLc78ffWMR/NsSIg24iJKbQjVtm1ei4zsRBym2/dV9gVzDqIHN qTLvaHJkNATLi5YHHHubfYAEYK2KHBE1pEP0Z8ObJ6xLJAnQMBiV5439Wi+xlm1vtbf9 kUbWjzEIlqnV2kYDZ44okCIAJH9cZefPJw/nVIHIwlRCfPTWrqqEXkanj9oQpEBkFAX0 5ABQ== 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=fdZwMmG+9OETF/uefS6+6/boiDD4/niHOmYb9ilakad/YMluFhA94ANww0Hs+WcgLt ylppPJn5G+Vdyo0zyJRYT3bcTgrs5hYHN4OxkJTpYFaez+hFwDLALGFVXVj6Cw88NCxH /J8bau8dAdHyH/KT5ga9romnELr2e9TDlwbg+ICMa6rNbz/lBD974ZSVLjFnsdeYexEZ RyOkYcZhU8cLOcXmqs82NT7VF+sHzXWMttM+0rgIJKQiYuDUVy0kaIzYGl0dDBajpghE gwkehp4iSxMLLHlkzK3GgB5IzareGgWGS3Nc86/nqd1rIGzEGZCs24FTepUVuJOkB5jr EwUA== X-Gm-Message-State: AOJu0YwKYeqdfNHUBochCKDW7DQhC5Wn15sh9N36qpR3oSD1HGI7Y/ZV SjdbuFyu0620Bn0uyZw5qh16tTGFyU0= 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785623531134148589 X-GMAIL-MSGID: 1785623531134148589 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