From nobody Tue Sep 29 06:58:35 2026 Received: from out-172.mta1.migadu.com (out-172.mta1.migadu.com [95.215.58.172]) (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 0F3D8361DBF for ; Tue, 11 Aug 2026 07:38:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786433942; cv=none; b=NO4bUKdqNdhZ5ifemWxNHkXah8yBX69Ev/CpZa2U8a2OGpwEij/ikm7Ds/jPVzbvOmsRr48r0q2CHQMYShPWIRgI8AXjuDRzZwiI1p5KnKAjx7Ox1XL/RYkMfQgjxpCsbFBmvaW0VDDbxq8J2a/GoxIaw6+abXyZ8QhmAX4VDXQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786433942; c=relaxed/simple; bh=rLzaCjogbM/rS5QXfEYGajKNnaF6LhXssfHv10KJ2KU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kU8zQruVgueg83vbHftoUDLEUlh7KV296bunR6/ccKSZEAB2xgxamL4SR5Zz88sCzLY8I9tpGvrPd56IoAzX6CNnBjk/xK1OwWCSq/4d33c4M5ebK1Q9ioAFnUgtMY6Rmcd7FIpq11MUXgpndvnj25suaBG7CHTItQO8AtGeMW4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=ZxMyAktr; arc=none smtp.client-ip=95.215.58.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="ZxMyAktr" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1786433937; 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=KTzgZzOhKmtV8LPmJ78nxtRroXhLGBisuTEvdtTgazM=; b=ZxMyAktryu+1x5XXHSq69ai7DKCUlYXDUqkQJHYqNVZrhzBLxYrBV0DwgJdXB049aMDeXv qNNAPzcj6eKJHRFYLtOIGknDgHhx3r4oj716bzf4f4b7vrmxCzmTkw0JUU3furWGpCn+oi bPtEjFmw3izaNgDJWTrz/tGXxKERMOg= From: Tao Cui To: tj@kernel.org, corbet@lwn.net Cc: rdunlap@infradead.org, skhan@linuxfoundation.org, arighi@nvidia.com, yphbchou0911@gmail.com, jpiecuch@google.com, ihor.solodrai@linux.dev, suzhidao@xiaomi.com, luoliang@kylinos.cn, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, cui.tao@linux.dev, Tao Cui Subject: [PATCH 1/2] Documentation: sched_ext: fix events sysfs path and show_state example Date: Tue, 11 Aug 2026 15:38:00 +0800 Message-ID: <20260811073801.342165-2-cui.tao@linux.dev> In-Reply-To: <20260811073801.342165-1-cui.tao@linux.dev> References: <20260811073801.342165-1-cui.tao@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" From: Tao Cui The events file is under the scheduler's sysfs kobject (/sys/kernel/sched_ext/root/events for the root scheduler), not the nonexistent "/events" path. Also add the missing "aborting" line to the scx_show_state.py example. Signed-off-by: Tao Cui --- Documentation/scheduler/sched-ext.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/scheduler/sched-ext.rst b/Documentation/schedule= r/sched-ext.rst index ad2fff3c0593..dd4853762426 100644 --- a/Documentation/scheduler/sched-ext.rst +++ b/Documentation/scheduler/sched-ext.rst @@ -93,13 +93,13 @@ scheduler has been loaded): # cat /sys/kernel/sched_ext/enable_seq 1 =20 -Each running scheduler also exposes a per-scheduler ``events`` file under -``/sys/kernel/sched_ext//events`` that tracks diagnostic -counters. Each counter occupies one ``name value`` line: +Each running scheduler exposes an ``events`` file under its sysfs kobject +(``/sys/kernel/sched_ext/root/events`` for the root scheduler) that tracks +diagnostic counters. Each counter occupies one ``name value`` line: =20 .. code-block:: none =20 - # cat /sys/kernel/sched_ext/simple/events + # cat /sys/kernel/sched_ext/root/events SCX_EV_SELECT_CPU_FALLBACK 0 SCX_EV_DISPATCH_LOCAL_DSQ_OFFLINE 0 SCX_EV_DISPATCH_KEEP_LAST 123 @@ -153,6 +153,7 @@ detailed information: switching_all : 1 switched_all : 1 enable_state : enabled (2) + aborting : 0 bypass_depth : 0 nr_rejected : 0 enable_seq : 1 --=20 2.43.0 From nobody Tue Sep 29 06:58:35 2026 Received: from out-189.mta1.migadu.com (mta1.migadu.com [37.59.57.117]) (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 2E48F4052B6 for ; Tue, 11 Aug 2026 07:39:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=37.59.57.117 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786433948; cv=none; b=qFr7AryBAiJgmW+jd2KWsL5Rd1DzSyWvColE6Shd5ukRN3ioNy+rrCt71/GPU3LtpsnKqPvc4JpBJ/fi8xcKPbIS/I8wuikXSuL4PIHFt+w+l3NuuRvBc7M7qYAj931XBWDsR1N7I+esVjcOg42p/nNc0g6ORm0U3bapZzyVLnc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786433948; c=relaxed/simple; bh=ZM0BN2EdszE81z2O/+szXC/b6uTh+U05pF0gKyd0EDs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=txobaXswvSL1nJ9vIdkJd0keznHUtAnSIVlyEyE8trqKQgc0gMipQR9/V8L8NzasRBMu9aSm1fdak3ymrvu5hV1HZhfV8zr31zEhaDx7ZDm9OnZGhNjCoCOtbZoMJfnSFDzDV0RkEootPE+2Fae/err3/mzgCqfrrIkZk2Gf1Ig= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=GNqGbWsu; arc=none smtp.client-ip=37.59.57.117 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="GNqGbWsu" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1786433945; 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=PlH49yR610AZ+iVJK9NDmvAhI6oyyYQmSsywmCEwPq8=; b=GNqGbWsuAB8CYxGgeWARsB7VFkxua8iZLlYMXM26SNCfSqn+VKXBh+7gZOUvxQhRXTRCQH 5H+yIyUmf/Rf00XiAETs3FGefOQNvHGgiKzVmcLmd9v19pspRSrc6Zds4zz4ONgSsqDapS 3Uk3HAIa5uJihK6ZTcbYsRrWnC7vCA0= From: Tao Cui To: tj@kernel.org, corbet@lwn.net Cc: rdunlap@infradead.org, skhan@linuxfoundation.org, arighi@nvidia.com, yphbchou0911@gmail.com, jpiecuch@google.com, ihor.solodrai@linux.dev, suzhidao@xiaomi.com, luoliang@kylinos.cn, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, cui.tao@linux.dev, Tao Cui Subject: [PATCH 2/2] sched_ext: fix stale references in doc comments Date: Tue, 11 Aug 2026 15:38:01 +0800 Message-ID: <20260811073801.342165-3-cui.tao@linux.dev> In-Reply-To: <20260811073801.342165-1-cui.tao@linux.dev> References: <20260811073801.342165-1-cui.tao@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" From: Tao Cui - scx_bpf_dispatch() was renamed to scx_bpf_dsq_insert() - drop reference to undefined %SCX_DEQ_SAVE - @name is in /sys/kernel/sched_ext/root/ops, not a sysctl Signed-off-by: Tao Cui --- kernel/sched/ext/inlines.h | 2 +- kernel/sched/ext/internal.h | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/kernel/sched/ext/inlines.h b/kernel/sched/ext/inlines.h index d2d074cee1cb..812d67d18f54 100644 --- a/kernel/sched/ext/inlines.h +++ b/kernel/sched/ext/inlines.h @@ -14,7 +14,7 @@ #include "cid.h" =20 /* - * One user of this function is scx_bpf_dispatch() which can be called + * One user of this function is scx_bpf_dsq_insert() which can be called * recursively as sub-sched dispatches nest. Always inline to reduce stack= usage * from the call frame. */ diff --git a/kernel/sched/ext/internal.h b/kernel/sched/ext/internal.h index b699e7c1103f..06aab2f75208 100644 --- a/kernel/sched/ext/internal.h +++ b/kernel/sched/ext/internal.h @@ -485,7 +485,6 @@ struct sched_ext_ops { * - sleeping (%SCX_DEQ_SLEEP) * - being moved to another CPU * - being temporarily taken off the queue for an attribute change - * (%SCX_DEQ_SAVE) * * This and ->dequeue() are related but not coupled. This operation * notifies @p's state transition and may not be preceded by ->dequeue() @@ -966,8 +965,8 @@ struct sched_ext_ops { * @name: BPF scheduler's name * * Must be a non-zero valid BPF object name including only isalnum(), - * '_' and '.' chars. Shows up in kernel.sched_ext_ops sysctl while the - * BPF scheduler is enabled. + * '_' and '.' chars. Exposed via + * /sys/kernel/sched_ext/root/ops while the BPF scheduler is enabled. */ char name[SCX_OPS_NAME_LEN]; =20 --=20 2.43.0