Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp402705lqh; Tue, 7 May 2024 02:45:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWeitX3GHrPjF3LLF33AJm8Od61OOdK07zG5+jWeQmQM7ayNle5xdWkgkhmXSizbtlR2/QeNcl/pJb7zUPqqad9WHU9slh7NmtM3d+T9A== X-Google-Smtp-Source: AGHT+IGI9mosJfCvl3THTiLS/rze03vGlkCeXjV1SQwkgpWwl7czCasF7f7jSq2OQxXmDJi7kbwM X-Received: by 2002:a17:90a:a78d:b0:2ac:5a93:636b with SMTP id f13-20020a17090aa78d00b002ac5a93636bmr10601999pjq.2.1715075137402; Tue, 07 May 2024 02:45:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715075137; cv=pass; d=google.com; s=arc-20160816; b=W7nRNoB8GelobMLSVK3OnJ7j7pRYNNHx3SCgwNIOLirgUsu/lh1tnHqZ3pfQVs0g2J Ve0hoIEiwfxZcddGqSbrFGEqIWbCiB8G7lLDS6DC+xi3vevFPIf1uEnB71bGS2Vik6d0 NEaTn8qa55Sre81pG7lXfYsY2gS5MmhIK/yRGqOyAcGllrwxJeSwY+Z0asKAtAYE3PF/ gb2E9i7CqZVvp8xgTIvNaJW7J0TOAZY/pew86X95/EDV0RZecsJLC0a0++nS2an9rJPk q3HnQR1TBt9dqSV4Yn6WnN8bFBXE3WQiqjLGHgYjNieO4XgliqjFRZoyw+y9JxNzNfra RHyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=8Mu7OuPta/bPwR0Ew9sS9HB7xqXazraEBV86ZqklXS4=; fh=srEdk9v/um3j1VbxLou3EtcNVTt7KKhcxypbqtWghqY=; b=dCzXFYwClB0aCKZ0H5w/AKLJcVLb4B2gQBuFUa6xmxjN7AOFsvEpfTHXcYFH40953I IsXoromI4vXPswJN4UNQURZ7A04Ea2vPR3qwuZGy45Wig3jCi9hNCemv5NPoqZQrdA9B 4zBkujF7T9KUKOT6WcD6AKi6EKJ8Y2bo5MUAks9zpNlwjTTwUHT6gwiSZkvHQQndnzjH 6m1wObC7QnP1ghK+dogGeN5NWxQPvZlDoVq6jzfb4jwOJQ6IRco5gfxZ6c1H27zOfw7x LtBGK3fLWe5Hxc2AIIWaV6nH5igH+CXBfP36Ium0/lR3AGYW8K6fy3OwLCVQZl0wITnM c1kQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bl8sOfUS; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-171001-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171001-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 64-20020a17090a09c600b002ac02f64696si10034973pjo.68.2024.05.07.02.45.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 02:45:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171001-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bl8sOfUS; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-171001-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171001-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 15419281CFF for ; Tue, 7 May 2024 09:44:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB92E16ABF2; Tue, 7 May 2024 09:36:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bl8sOfUS" Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (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 CAFD815E5D3; Tue, 7 May 2024 09:36:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715074577; cv=none; b=j1B6PgCWpkfKzjUD0dsWR5BU6vU709IdXKOG3Ccy5myPRXuTS8fswLy6XdTU58y87iO3fWEHq+XCQL2h4c6SBoVfEKxMl3HMu/LEw3UxeAmC7UYaTLywtFm+CWTjTAMEwVqpzeZKvOudfckQ4Hm6nuwA+9g+do9+6TVQWBLbHz4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715074577; c=relaxed/simple; bh=2Ovb4QazW6xz+ZnbPbv0Z7w0+7dCSRlGQn8IFZIJ2m4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=URdPXV/44zWDtMGa27YOlulG+P4lKBGdqOgdDPcKPkGHNpp5CdwNvIOHMa71/CTMj2O+mJFu6mn8iGo1o/BmooPZQiFuElwR8FAN3TJZId9wWlyheVCI7NaW+T0lF93FG9BnGrj6w9T6oL/hZXuwktJASaLwN+SHswfCtn3w1Cc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bl8sOfUS; arc=none smtp.client-ip=209.85.208.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2e2c70f0c97so36453441fa.0; Tue, 07 May 2024 02:36:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715074574; x=1715679374; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8Mu7OuPta/bPwR0Ew9sS9HB7xqXazraEBV86ZqklXS4=; b=bl8sOfUSRVaRWPQDPPXJGemF6bNrYoaxcDAnpcZpNjd3qubgf2JutEhJO5GkiBlU63 LVGMjc7kicDYXMmp3vpwq33kJrjiK02bMZmEPPkwF6SLzCF9x38eOpUse/TYhkdsVsj9 vOe2pJFtB5UrWTOiXL1hO93ycwqGp8OtKvWCNNBS9vOL8xaZmHOy8ljaFIWFoMQp4aMR Z1r/fEezdt/ZMiVnuqOBYH2q7pdCX2+EzZ1wZ+Hydvm3j4BNHQ4nuQrZz58uzgN8X5pE mG9Y7SuWFPT43GpzNq2zBNCyjQrAKfrf2j/8hqq/Dw3NRxabOGK4s8LAuoiSep6GQRgk pTIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715074574; x=1715679374; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8Mu7OuPta/bPwR0Ew9sS9HB7xqXazraEBV86ZqklXS4=; b=d2PIYlMrDR4OxYcghb6ATRHuYp7YjyWFGR20NGMAJLTqi5o3WFlrbysmbtBIvOURR8 mtyQ66kB6wKP6UE7eVwj+xSVo+Ll4IkwGuXsvnAPwaLtXDqA/vRp9MzPGWO7hJTE+p4g 5JLs3i4dUs30RpRDkTd2F7UuAY6V57nd0Xbq6oiS9g9mDw6DtCehRmH6jyeQ/+ywLD8w 3NoyM0IliHOOSu5aFl0ruzwfaPxniDn3RegZkzXYQKuDqtuRHCb090OmjC6NkFx7LlIi m1Z/TvG8gQ7yLiPvfH4biNZptWgWfvUYDGaFutCJBOLhAJZqrCmIZb15LmFveMBs5ED5 ECNw== X-Forwarded-Encrypted: i=1; AJvYcCUDYL2X8R7vWyM5N6y+jqFBE00YW8gQtn++cuivUN7S5tvTx+p4/vsRVfSZcHf8+j7Z4BAcpzw88FImRykyhlZ6r1VSYrNayzOSTix9 X-Gm-Message-State: AOJu0YxQdVlDEazGMgOLCBzeE2QBhaXaweX/+hlvuNE2toDgGr9UN7AB oqxIVeCNl+LIwe1qmavZcbHrhYnigejyANy4eidHQCN83ND/Iwm1 X-Received: by 2002:a2e:bc02:0:b0:2df:fa4a:ef15 with SMTP id b2-20020a2ebc02000000b002dffa4aef15mr10847723ljf.39.1715074573942; Tue, 07 May 2024 02:36:13 -0700 (PDT) Received: from pc638.lan (host-185-121-47-193.sydskane.nu. [185.121.47.193]) by smtp.gmail.com with ESMTPSA id t18-20020a2e9d12000000b002e29c50c4dcsm1335473lji.27.2024.05.07.02.36.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 02:36:13 -0700 (PDT) From: "Uladzislau Rezki (Sony)" To: "Paul E . McKenney" Cc: RCU , Neeraj upadhyay , Boqun Feng , Hillf Danton , Joel Fernandes , LKML , Uladzislau Rezki , Oleksiy Avramchenko , Frederic Weisbecker , Zqiang Subject: [PATCH 42/48] rcutorture: Use the gp_kthread_dbg operation specified by cur_ops Date: Tue, 7 May 2024 11:35:24 +0200 Message-Id: <20240507093530.3043-43-urezki@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240507093530.3043-1-urezki@gmail.com> References: <20240507093530.3043-1-urezki@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Zqiang Despite there being a cur_ops->gp_kthread_dbg(), rcu_torture_writer() unconditionally invokes vanilla RCU's show_rcu_gp_kthreads(). This is not at all helpful when some other flavor of RCU is being tested. This commit therefore makes rcu_torture_writer() invoke cur_ops->gp_kthread_dbg() for RCU implementations providing this function. Signed-off-by: Zqiang Signed-off-by: Paul E. McKenney Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/rcutorture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index dd7d5ba45740..2f43d31fb7a5 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c @@ -1589,7 +1589,8 @@ rcu_torture_writer(void *arg) if (list_empty(&rcu_tortures[i].rtort_free) && rcu_access_pointer(rcu_torture_current) != &rcu_tortures[i]) { tracing_off(); - show_rcu_gp_kthreads(); + if (cur_ops->gp_kthread_dbg) + cur_ops->gp_kthread_dbg(); WARN(1, "%s: rtort_pipe_count: %d\n", __func__, rcu_tortures[i].rtort_pipe_count); rcu_ftrace_dump(DUMP_ALL); } -- 2.39.2