Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp150356pxb; Wed, 3 Nov 2021 01:36:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOaTHhJMAqeyDEqpxcCAC0ouVhGSNSuYJez5846ypuRN5H6qamcQJ7xTSkVvrFThvZbb7E X-Received: by 2002:a17:907:7d8b:: with SMTP id oz11mr28760766ejc.507.1635928579869; Wed, 03 Nov 2021 01:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635928579; cv=none; d=google.com; s=arc-20160816; b=S1F1dtVzBauyRya94Z37+dWXLoh58/5gKt/2Xf+V7lz/ejUPJ98wd4rN/4ZnnveJAP J/satqklqr1g5ssVslXUHhC+RVSxJy6D06nEHxUybQ4AdVDT3owNSf9yL4mM8/bv6y1i vZK3ltioZPq3wmjbSXhjNDLnt/yPO9lZUcbwM/C3YGededBYDylzMO5kMhJi5L9rLuSz HhHkoTllckoCYwK/dCQLVIe3hF31MkWmzr9SJLo5NkJ7fUyT0TJfhnhWe0P8Ml+CRB2e ACkUDJ/cTdKgWJDv3U7X8ysUhnz0Cy8SVM9Qt6J5+crjONWsZ8xMEMpJVpL7//LIdZY8 bohg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=twpR+ak1gREJLCb508kLMiUDfN3DvFawFWUcEsOfdLE=; b=hoGliKpcMI65CHjW+4MfjwupZt6Ebtt8cmEbgy2ZLIvuJcte36rK43MEtG3cAUXb62 VdLIVtoKMRyZckLT12ayIpY3Nyraj4EUVJjm/Tx9ZYeOdfLllj2ZL8NNUaR+wVw/uZ9z Jz6u4FX3QqPaiFmLouYD3wNsWei42BkdGE7KacNgrEXE9alWhmOpixlqL49FoqZNzJrQ T6whqNVszdAaV9kXO5674swkW/YkrJrvHIWhX5UAXDuvjWVP/ExaeetWmat3WZS0m4F5 B5EwQxpIm6h27NKMTDOxxufQxi0GpCsA0NUNSPbpvKQBN5SiN7aNE+1VewZ2rBbEcoD6 cBJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mp27si2652953ejc.646.2021.11.03.01.35.54; Wed, 03 Nov 2021 01:36:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231629AbhKCIeh (ORCPT + 99 others); Wed, 3 Nov 2021 04:34:37 -0400 Received: from mga17.intel.com ([192.55.52.151]:30157 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231338AbhKCIeh (ORCPT ); Wed, 3 Nov 2021 04:34:37 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10156"; a="212206473" X-IronPort-AV: E=Sophos;i="5.87,205,1631602800"; d="scan'208";a="212206473" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2021 01:32:00 -0700 X-IronPort-AV: E=Sophos;i="5.87,205,1631602800"; d="scan'208";a="449705757" Received: from jzhuge-mobl.ccr.corp.intel.com (HELO lkp-bingo.fnst-test.com) ([10.255.31.103]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2021 01:31:57 -0700 From: Li Zhijian To: paulmck@kernel.org, rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, lizhijian@cn.fujitsu.com, philip.li@intel.com, Li Zhijian , Davidlohr Bueso Subject: [PATCH v2 1/2] scftorture: Always log error message Date: Wed, 3 Nov 2021 16:30:27 +0800 Message-Id: <20211103083028.26504-1-zhijianx.li@intel.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Unconditionally log messages corresponding to errors. Acked-by: Davidlohr Bueso Signed-off-by: Li Zhijian --- V2: rebase against rcu tree --- kernel/scftorture.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kernel/scftorture.c b/kernel/scftorture.c index a0df767897a1..dcb0410950e4 100644 --- a/kernel/scftorture.c +++ b/kernel/scftorture.c @@ -41,8 +41,7 @@ #define VERBOSE_SCFTORTOUT(s, x...) \ do { if (verbose) pr_alert(SCFTORT_FLAG s "\n", ## x); } while (0) -#define VERBOSE_SCFTORTOUT_ERRSTRING(s, x...) \ - do { if (verbose) pr_alert(SCFTORT_FLAG "!!! " s "\n", ## x); } while (0) +#define SCFTORTOUT_ERRSTRING(s, x...) pr_alert(SCFTORT_FLAG "!!! " s "\n", ## x) MODULE_LICENSE("GPL"); MODULE_AUTHOR("Paul E. McKenney "); @@ -584,14 +583,14 @@ static int __init scf_torture_init(void) if (weight_resched1 == 0 && weight_single1 == 0 && weight_single_rpc1 == 0 && weight_single_wait1 == 0 && weight_many1 == 0 && weight_many_wait1 == 0 && weight_all1 == 0 && weight_all_wait1 == 0) { - VERBOSE_SCFTORTOUT_ERRSTRING("all zero weights makes no sense"); + SCFTORTOUT_ERRSTRING("all zero weights makes no sense"); firsterr = -EINVAL; goto unwind; } if (IS_BUILTIN(CONFIG_SCF_TORTURE_TEST)) scf_sel_add(weight_resched1, SCF_PRIM_RESCHED, false); else if (weight_resched1) - VERBOSE_SCFTORTOUT_ERRSTRING("built as module, weight_resched ignored"); + SCFTORTOUT_ERRSTRING("built as module, weight_resched ignored"); scf_sel_add(weight_single1, SCF_PRIM_SINGLE, false); scf_sel_add(weight_single_rpc1, SCF_PRIM_SINGLE_RPC, true); scf_sel_add(weight_single_wait1, SCF_PRIM_SINGLE, true); @@ -622,7 +621,7 @@ static int __init scf_torture_init(void) nthreads = num_online_cpus(); scf_stats_p = kcalloc(nthreads, sizeof(scf_stats_p[0]), GFP_KERNEL); if (!scf_stats_p) { - VERBOSE_SCFTORTOUT_ERRSTRING("out of memory"); + SCFTORTOUT_ERRSTRING("out of memory"); firsterr = -ENOMEM; goto unwind; } -- 2.32.0