Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1893474lqa; Tue, 30 Apr 2024 02:20:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXmorCfIKvfZptYpIcI/KJcRttGLWD3zGTV/QQiVL0szBISqxS1VcTLs7ZRe05ComKvBjbtm/tq2FXTxlPu3Y1YakkguAdeKAmDfRX1OQ== X-Google-Smtp-Source: AGHT+IGBXATmMVQeMHZtRBs0BDyvEKVNSZC9OpgC0brgsDvJI3Rw6UjK+YzRsbZQc4+oQgmYhX8j X-Received: by 2002:a17:90a:d30a:b0:2af:9e88:d41d with SMTP id p10-20020a17090ad30a00b002af9e88d41dmr13577713pju.23.1714468822592; Tue, 30 Apr 2024 02:20:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714468822; cv=pass; d=google.com; s=arc-20160816; b=INEv2aiuiB0nhWtGIKWy0EAY5utDE9EChQR/rZl7g3cLtbD93pwI44L9y7j3T2CWjn ExFNzH67MK/IYCyCHkz3gheqejBBUOPr74lB6PVIbb7BN+KkN0ouxHILQCWyObiK1VZd H6fTnuUfZmdiptiNmzx0W2nOzsulHm1ZnbvQ293ppxruDEU/cq/qmg5KwuNDLVg1cJ4X sjoBFXIQW2nydevTE8a0NwgNQcPfhYiyhWaWtTiqPVux19VBd5eC9/AAvyFXeCbJxD+J wuOLCGbrTPTTFf/5xkRtY3T03IjtYeVuRBe3G/KdQZKUHo2gXyHLzBErJmziOiayGC7a 3IxA== 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=Cn/5LgqL3qOuQrveZYN9sQdmnsvH18cAdWIQSmCXARQ=; fh=WzinSAfJjQwQsWhpsrf2fBMcmep3NnSwaYa0TI1U7L8=; b=ocGijLEioGy6XoSQ29XW3xbcwfPWJ8lGmjvEBB+kI9IyeZMcTQ+qKCwqJobUqCR12J OyhbrrdMoOHV+WSJG3yDjXAHWE8CFjhNycEA5VHRCPfMZmU/nbEACsv5i/Y8ATE5jouT UqPBnAEpDfaLEzbZ3tAPPMN1SPo7Tv7Iz0WQNYdHisikJA8l2pmrcDTDj3q4TQ0EwerX o1d4SRzBkzJtT6AjVyZ/StS0SRQWZBKRE8+U3p/pzXIySTZR03r1JHhduuQAfWxiRDeo kAIDeEjyEsvJgxF2ihwPM5S9VFY/P4d0p6ZlzHuPTd7Ln5YOiFkgBJZjH8IQ1epMmDwt sq/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EFOMiXg2; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-163645-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163645-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e22-20020a17090ac21600b002b2c7cb088asi75011pjt.46.2024.04.30.02.20.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 02:20:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163645-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EFOMiXg2; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-163645-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163645-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 E92C7284C2E for ; Tue, 30 Apr 2024 09:20:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9511C194C79; Tue, 30 Apr 2024 09:18:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="EFOMiXg2" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 64CF712882C for ; Tue, 30 Apr 2024 09:18:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714468716; cv=none; b=rNamzs+CBkPlSsfAFtGodB1F00XJUHJeNz9lo/fZmyhAhfp23K2II/8iVOox+wQPEQBTwM9bggfrNeU8NI6dEuI5QeuMnTDS8s5V7OoIX4cNKweEwf75DVIBp76TRutblpX82aPcMzksZBv9nLh3VKZoL14PY5SmnMP5Iuy8TRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714468716; c=relaxed/simple; bh=vTXAbWPf528CGOPRPHhrK/5DgDKcJ2olcfkLSdAkzsQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=urMzLDRFO8PJ7n8tKEC3DmJ6EYRicttx2PVvIKwW2nyrmKl9jMS8aYYwUaUDqDJYYWLQKr1cMxWFPoHTxAmBZDcqKIPdksRHuWK43VY5NywxZykm2fMFah+VbmSwV3JfJpYLVGxKtabYZzyKXLEbTb2M4G/EC7+fNV1Pw8iDtnA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=EFOMiXg2; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1714468714; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Cn/5LgqL3qOuQrveZYN9sQdmnsvH18cAdWIQSmCXARQ=; b=EFOMiXg2Sm4dJUNeClhlHecgsZxmYHqdMrNzve5axx/5E2p8k0KVHyG8+THO1Cq4aXxHLO dCxSWPUcbmP8BcyFWsUgldG+YoGoE3bumSNAIEYuaGWxkyVWMSZHE8gSrKL3gr3PRpEzNK JdRXd3DScCCMucRMr8PFloI8Jw9c4p0= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-235-lwomzJ_6O0ynqPs0qAkC9w-1; Tue, 30 Apr 2024 05:18:29 -0400 X-MC-Unique: lwomzJ_6O0ynqPs0qAkC9w-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AE7163C02526; Tue, 30 Apr 2024 09:18:28 +0000 (UTC) Received: from vschneid-thinkpadt14sgen2i.remote.csb (unknown [10.39.193.247]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 21C1B40BAA2; Tue, 30 Apr 2024 09:18:25 +0000 (UTC) From: Valentin Schneider To: rcu@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Frederic Weisbecker , "Paul E. McKenney" , Peter Zijlstra , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang Subject: [PATCH v2 08/27] context_tracking, rcu: Rename ct_dynticks_nesting_cpu() into ct_nesting_cpu() Date: Tue, 30 Apr 2024 11:17:12 +0200 Message-ID: <20240430091740.1826862-9-vschneid@redhat.com> In-Reply-To: <20240430091740.1826862-1-vschneid@redhat.com> References: <20240430091740.1826862-1-vschneid@redhat.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 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 The context_tracking.state RCU_DYNTICKS subvariable has been renamed to RCU_WATCHING, and the 'dynticks' prefix can be dropped without losing any meaning. Suggested-by: Frederic Weisbecker Signed-off-by: Valentin Schneider --- include/linux/context_tracking_state.h | 2 +- kernel/rcu/tree_stall.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/context_tracking_state.h b/include/linux/context_tracking_state.h index 586c1ff22c2e9..fd42d8120ac29 100644 --- a/include/linux/context_tracking_state.h +++ b/include/linux/context_tracking_state.h @@ -80,7 +80,7 @@ static __always_inline long ct_nesting(void) return __this_cpu_read(context_tracking.nesting); } -static __always_inline long ct_dynticks_nesting_cpu(int cpu) +static __always_inline long ct_nesting_cpu(int cpu) { struct context_tracking *ct = per_cpu_ptr(&context_tracking, cpu); diff --git a/kernel/rcu/tree_stall.h b/kernel/rcu/tree_stall.h index 460efecd077be..d8e5b49e65565 100644 --- a/kernel/rcu/tree_stall.h +++ b/kernel/rcu/tree_stall.h @@ -516,7 +516,7 @@ static void print_cpu_stall_info(int cpu) "!."[!delta], ticks_value, ticks_title, rcu_dynticks_snap(cpu) & 0xffff, - ct_dynticks_nesting_cpu(cpu), ct_dynticks_nmi_nesting_cpu(cpu), + ct_nesting_cpu(cpu), ct_dynticks_nmi_nesting_cpu(cpu), rdp->softirq_snap, kstat_softirqs_cpu(RCU_SOFTIRQ, cpu), data_race(rcu_state.n_force_qs) - rcu_state.n_force_qs_gpstart, rcuc_starved ? buf : "", -- 2.43.0