Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4430424pxb; Tue, 2 Nov 2021 09:35:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMVR5RLGe977AeRqNvfRhu2JioGg6Bntsa5ICN7isDIcuNC7gxHZIZ6Bzak6MAn57GWgch X-Received: by 2002:a05:6402:3592:: with SMTP id y18mr4804505edc.343.1635870955801; Tue, 02 Nov 2021 09:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635870955; cv=none; d=google.com; s=arc-20160816; b=NcF4uvIXWO1EouZgZ38bF+PWzaX3qGXzd6bkeW1yo70Bb4qPJO+yUG1O1aRFoBJkSY 3AAtMESgY5olrM36zwd++S/HcjjWhAfWbJRkGw1KH0U5SZgt1MTJpbAx0SxE2BAyoGOM GKjsfICkkhdAa/9kpYIn+8nhE0q9QOVLYJgaA4x/UQOv61uvh3IdisxYh2Lz5aCyYTij ZVDlwjG7SlXyQnPwujJfgA0+jBhXkUGlX6CZBAs5/YFne1EMHKap7vvFAHRUf5AqHCQr Ts9qDc/uzFyzkEh7HRO6BLZjKxdis6cJdWdwWBnC7BuNQhYjjbK7O37wPXK2PJOaRXhl YG1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=6YUC72ZEirGkGVcEB/sHeQL/HmkUDT08r3i5+fKcuhk=; b=P+SlkLnQ/Dzw19cQoXLRpA3bwzFP4/iIZ/tGb4DLY3q8a795XIcABoPV9AhtlVhl+R 2te8unOO/jMOKpK8cQ1c1EvrAyX55jyUugqdKnXQKfOkbVjxsEjGzn2DP9uzqwC4FMH/ rdJ6wObzzKWiTkEF4Tm/Qc5sHQKdZPJjMUMLPEDiVFtm/ttfhGqfKJVleCrbmUYtxyHx YVtGc3BobdVo52aZfD3I89UTXNLbpo4I4WmoWi3CDgotIfHKFPEXiTgmF4/4YdZvLdKT 7gHle0JMlXDtDm/JBs3mFg6thL+xMI5djgiPG5n2+weoCq6k75g+Do0S3YZAvfC8AMpJ K5mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ft4d6xw+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k5si25116785edl.259.2021.11.02.09.35.31; Tue, 02 Nov 2021 09:35:55 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ft4d6xw+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235107AbhKBQbw (ORCPT + 99 others); Tue, 2 Nov 2021 12:31:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:36824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231361AbhKBQKR (ORCPT ); Tue, 2 Nov 2021 12:10:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 993A661052; Tue, 2 Nov 2021 16:06:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635869216; bh=SobB5BdC3D2XeM1p4UGscDO/2qDjpZwU+6Zn5q4FyAE=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=ft4d6xw+wic+NimaD+VbhfAkjw3oq9hrFtSazsMPGxyORP9bwewOkJeW91oyYBvrb pPfJaGYYMJEV9nDc5VL9fDYiiNcZAxL+Idq7zHMxZX32LP8AqmIJML/sV/s71q6psS tCUBYpk9q4MXd8K0zaNIM/yL2s1rqNuDN2FdzvluCTDZopUiaUdJ4RBA0pc9TWbXqf YnZ7uZfe6H2erwBc4FjK1QjOm3qqhXoZnciQRIy3LXkp4dMlUKQxcNq+duVzNeuTtz wogpfTIfDFhkOFkyshCq6z720uzwSjEKeKsmJKtK1ViMj6GfvWaieQhjp54hznyYhx 3wTIWKD7znToA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 6298F5C0248; Tue, 2 Nov 2021 09:06:56 -0700 (PDT) Date: Tue, 2 Nov 2021 09:06:56 -0700 From: "Paul E. McKenney" To: Li Zhijian Cc: dave@stgolabs.net, joel@joelfernandes.org, josh@joshtriplett.org, mathieu.desnoyers@efficios.com, rostedt@goodmis.org, rcu@vger.kernel.org, philip.li@intel.com, lizhijian@cn.fujitsu.com, jiangshanlai@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/6] scftorture: always log error message Message-ID: <20211102160656.GI880162@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20211029094029.22501-1-zhijianx.li@intel.com> <20211029094029.22501-5-zhijianx.li@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211029094029.22501-5-zhijianx.li@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 29, 2021 at 05:40:27PM +0800, Li Zhijian wrote: > Generally, error message should be logged anyhow. > > Signed-off-by: Li Zhijian I have queued the patches up to this point for the v5.17 merge window (not the current one, but the next one). This one does not apply. It looks like you created it against mainline rather than -rcu. You can learn about the -rcu tree and its habits here: https://mirrors.edge.kernel.org/pub/linux/kernel/people/paulmck/rcutodo.html Please port this patch to -rcu so that I can pull it in without conflicting with patches in -rcu. Thanx, Paul > --- > kernel/scftorture.c | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) > > diff --git a/kernel/scftorture.c b/kernel/scftorture.c > index 5fb15492999b..8ef7888d78cc 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 "); > @@ -583,14 +582,14 @@ static int __init scf_torture_init(void) > if (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); > @@ -621,7 +620,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 >