Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755101AbdLFK75 (ORCPT ); Wed, 6 Dec 2017 05:59:57 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:2215 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755032AbdLFK7p (ORCPT ); Wed, 6 Dec 2017 05:59:45 -0500 From: To: CC: , , Subject: =?UTF-8?q?=5BPATCH=200/2=5D=20rcutorture=3A=20Add=20parameter=20usage=20warnings?= Date: Wed, 6 Dec 2017 18:51:06 +0800 Message-ID: <1512557468-52633-1-git-send-email-lianglihao@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1394 Lines: 38 From: Lihao Liang Hi Paul, Please find a patch series that adds rcutorture parameter usage warnings against your git branch rcu/dev commit e2c83bca7e80 ("EXP: rcu: Add ->boost_tasks to assertion") Patch no.1 contains the actual changes. Patch no.2 is for testing purposes only and is not intended to be merged. It seems that the scripts didn’t pick up the lines in BUSTED02.boot that set the value of gp_normal and gp_exp. But when I hard-coded gp_normal to true in rcutorture.c, it did print out "rcu_torture_writer3: gp_sync without primitives" as expected. It may be better to have more informative warning messages for the new if-else blocks in patch no.1. Feel free to revise them. Please let me know if you have any questions. Many thanks, Lihao. Lihao Liang (2): rcutorture: Add param usage warnings rcutorture: Add tests of param usage warnings kernel/rcu/rcutorture.c | 16 ++++++++++++++-- tools/testing/selftests/rcutorture/configs/rcu/BUSTED02 | 7 +++++++ .../selftests/rcutorture/configs/rcu/BUSTED02.boot | 1 + tools/testing/selftests/rcutorture/configs/rcu/CFLIST | 2 ++ 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 tools/testing/selftests/rcutorture/configs/rcu/BUSTED02 create mode 100644 tools/testing/selftests/rcutorture/configs/rcu/BUSTED02.boot -- 2.7.4