From patchwork Tue Oct 10 11:58:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frederic Weisbecker X-Patchwork-Id: 15154 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp139511vqb; Tue, 10 Oct 2023 04:59:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IElvbYF3QrQr3iaPnRFd9tsNGRWHSdMxd8v1CQRbi8hSI/BKQZgKPthB5+Mwz6Rxjp+nw/7 X-Received: by 2002:a05:6a21:32a0:b0:16b:d3d5:a48c with SMTP id yt32-20020a056a2132a000b0016bd3d5a48cmr9756067pzb.32.1696939195540; Tue, 10 Oct 2023 04:59:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696939195; cv=none; d=google.com; s=arc-20160816; b=hawiccUIMaWGhcGunmQPtu64LYnqtbG1n0BjlL0dQoMkI7hcOZ8+zFlhO/5Yl2xAiT z9alkBdWIDToSOi6O+eFq9o4fwrbR2w5P1D3KLX6GeWbtJAzfv/wDBPRZDNJ2eSm4eYY n1rJAx0P7dHOi32Q4LjXzQu9pSRGlXpOLoR/gH4x2qXFZOfWefn8nHSRaPmovseXBRXB PJjrZioiBd5tKij3M7Y/bLGP8mkM9ZGDt+CHGUKZWsJnWKWt/APzZjyx2gzBhEiRDHqX 0RpY8Rkq2uLXI+Ynv5eCPCXzrI25RiRbzRYBVimssqHNMAof/pu5zXCJo1kRpx0NQMJQ wOAA== 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:dkim-signature; bh=TxuCVpZm1WSK/FHO9Aq3oKBbbDzmv8unKyycVjmzhpk=; fh=lTKEK1Rt7LvnHRfa4w1cQ2RgMDufzBK6qxi+oKKQlPU=; b=B+YLSxL/RQeERUMS2jAd5lfMqaBt9n5FgZ3xIKqYGtByQYmzj+oVVnStxzFkT7zX7Y x6vrnLbPvwfiMNCD4FPiDB7TcXUPi1JveQLGgEKfjhWHW6qBBXN11qyIzpr/e9OnE9kS PgEYa1/h568EUcJCbCmo63SzXWo8OJHL8XUM08qMlkJIkTI/kCc8Hz6w9sKigVCQq+C8 C/biGRkS0Bsn8vVmvlEg1WDcrKM9LdnZ7fGUGvpK7nM0gmOmuwddU31aTn0sLIjdwOpV 5k26N7U+Jai6p6GP2iv/ZLaMwaWxemgs4u+BOxCGmzomleAjNuhIwuTJxeosRgq+rrUr Wqcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="jgR/fImU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id ay9-20020a056a00300900b0068c01fba745si9495238pfb.184.2023.10.10.04.59.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 04:59:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="jgR/fImU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 832A4801D59A; Tue, 10 Oct 2023 04:59:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231550AbjJJL7i (ORCPT + 20 others); Tue, 10 Oct 2023 07:59:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231531AbjJJL7g (ORCPT ); Tue, 10 Oct 2023 07:59:36 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4FFDA4; Tue, 10 Oct 2023 04:59:34 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06633C433C7; Tue, 10 Oct 2023 11:59:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696939174; bh=sYHoqOrEbMAZaMKLim6NthKBNfLinTYcsgpfSBhdkxM=; h=From:To:Cc:Subject:Date:From; b=jgR/fImUTS/Qe+BQe0gYv9Lw0tdrGJlGdSzjQ/wgglQTvzOFc93kL8P3N6OtwQTaK 0yaKbHJ2SZBF/3rQLkx4DA2DRBimzK7ie37+FpkoVTrMRwLO9e/atoZhO/VQEY9bJ+ cxcJg3vZvBaWVStX86GF2MYeudtN3dDAc0HXbappYmIvw1ubhq7SR9p2pq0sSWaPx8 e2YUP00HPzTRoenkh4fHsUqZx5v4eFpVsa6PgBy55JVlq8KBeCsSErmSZ2qvbFYQDg q9Rgav7OxDRCK9ryVrbIio0OYmVO/S3FPtsw4UJWvDrfUC17W6pyGdD9NLVKL0DsJO yodlUic09q0IQ== From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , Boqun Feng , Joel Fernandes , Josh Triplett , Mathieu Desnoyers , Neeraj Upadhyay , "Paul E . McKenney" , Steven Rostedt , Uladzislau Rezki , rcu Subject: [PATCH 00/23] RCU/lock torture updates for v6.7 Date: Tue, 10 Oct 2023 13:58:58 +0200 Message-Id: <20231010115921.988766-1-frederic@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 10 Oct 2023 04:59:50 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779369714127985331 X-GMAIL-MSGID: 1779369714127985331 Hello, Please find below the updates for RCU torture, locktorture and the generic torture infrastructure. Arnd Bergmann (1): rcu: Include torture_sched_setaffinity() declaration Dan Carpenter (1): locktorture: Check the correct variable for allocation failure Joel Fernandes (Google) (3): rcutorture: Fix stuttering races and other issues rcutorture: Copy out ftrace into its own console file rcutorture: Replace schedule_timeout*() 1-jiffy waits with HZ/20 Paul E. McKenney (17): torture: Share torture_random_state with torture_shuffle_tasks() torture: Make kvm-recheck.sh use mktemp torture: Make torture_hrtimeout_ns() take an hrtimer mode parameter torture: Move rcutorture_sched_setaffinity() out of rcutorture locktorture: Add readers_bind and writers_bind module parameters rcutorture: Add CONFIG_DEBUG_OBJECTS to RCU Tasks testing locktorture: Alphabetize torture_param() entries locktorture: Consolidate "if" statements in lock_torture_writer() locktorture: Add acq_writer_lim to complain about long acquistion times torture: Print out torture module parameters torture: Make torture.sh refscale testing qualify verbose_batched locktorture: Add new module parameters to lock_torture_print_module_parms() locktorture: Add call_rcu_chains module parameter doc: Catch-up update for locktorture module parameters locktorture: Rename readers_bind/writers_bind to bind_readers/bind_writers torture: Add kvm.sh --debug-info argument torture: Convert parse-console.sh to mktemp Zqiang (1): rcutorture: Traverse possible cpu to set maxcpu in rcu_nocb_toggle() Thanks, Frederic. .../admin-guide/kernel-parameters.txt | 57 ++++- include/linux/torture.h | 8 +- kernel/locking/locktorture.c | 216 +++++++++++++----- kernel/rcu/rcu.h | 4 - kernel/rcu/rcutorture.c | 16 +- kernel/rcu/update.c | 9 +- kernel/torture.c | 75 +++--- .../selftests/rcutorture/bin/functions.sh | 29 +++ .../selftests/rcutorture/bin/kvm-recheck.sh | 2 +- tools/testing/selftests/rcutorture/bin/kvm.sh | 17 +- .../selftests/rcutorture/bin/parse-console.sh | 9 +- .../selftests/rcutorture/bin/torture.sh | 2 +- .../selftests/rcutorture/configs/rcu/TRACE02 | 1 + 13 files changed, 322 insertions(+), 123 deletions(-) mode change 100644 => 100755 tools/testing/selftests/rcutorture/bin/functions.sh