From nobody Mon Feb 9 10:27:42 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E3B17190661 for ; Wed, 29 Jan 2025 17:59:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738173590; cv=none; b=ddQOoRzc5JW6EB10FlX5VG7+oE82WAZOY1xPByHy2iXwYn0g7ErHDoGgnNvuzSadYBTewZDGfUCeqxnrFmjsJowhc954SaoDS8UBO+DWYCrTpV/hJnRUSiEhFBK1V1yDPk5l2OdFelCq32yMuLXuSDwAduKGJszCXWVgoEmjzkc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738173590; c=relaxed/simple; bh=z+siAebvP8bZL7UaSvtPK5dc+HobWi963Mo/ijOgwiE=; h=Message-ID:Date:MIME-Version:To:Cc:From:Subject:Content-Type; b=UB6g7Dtn8oCnT7VXC9+8o3vXBdVZFGKa12gSI2iKuzySPFOPYa41XoOFSF64H7ZJfnmipdjaE3/987yJPp7hGJXM5f60W4Uq7Th+zw6yF5owC+UNliVRBlUC9454OwkAwaPBC8RbVCDIUQH3R49RtVY2cymxAGnYtlWYe2EJwYM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E7D97497; Wed, 29 Jan 2025 10:00:12 -0800 (PST) Received: from [10.1.35.45] (e127648.arm.com [10.1.35.45]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B04313F694; Wed, 29 Jan 2025 09:59:45 -0800 (PST) Message-ID: <453349b1-1637-42f5-a7b2-2385392b5956@arm.com> Date: Wed, 29 Jan 2025 17:59:44 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: "linux-kernel@vger.kernel.org" , Peter Zijlstra Cc: Ingo Molnar , Juri Lelli , Steven Rostedt , Vincent Guittot , Valentin Schneider , Petre-Ionut Tudor From: Christian Loehle Subject: [PATCH] sched/debug: Print slice length for fair tasks Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" With commit 857b158dc5e8 ("sched/eevdf: Use sched_attr::sched_runtime to set request/slice suggestion") we have the userspace per-task tunable slice length so print it in /proc/$PID/sched. Signed-off-by: Christian Loehle --- kernel/sched/debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index fd7e85220715..ef047add7f9e 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -1262,6 +1262,8 @@ void proc_sched_show_task(struct task_struct *p, stru= ct pid_namespace *ns, if (task_has_dl_policy(p)) { P(dl.runtime); P(dl.deadline); + } else if (fair_policy(p->policy)) { + P(se.slice); } #ifdef CONFIG_SCHED_CLASS_EXT __PS("ext.enabled", task_on_scx(p)); --=20 2.34.1