From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DBD4C47082 for ; Sat, 5 Jun 2021 12:10:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 64778613F3 for ; Sat, 5 Jun 2021 12:10:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230110AbhFEMGg (ORCPT ); Sat, 5 Jun 2021 08:06:36 -0400 Received: from m12-12.163.com ([220.181.12.12]:52579 "EHLO m12-12.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229924AbhFEMGf (ORCPT ); Sat, 5 Jun 2021 08:06:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=UNfsF8jMsTP64BqsBI EP7j+b7la3dUXzBpaMkLndybI=; b=DWf4uxOFBr39nBzOChjXEUkSJ3Be6OD8aV REhdmTGuC1cybXFlHXHha/XTiRIlHv6fzSUZp1RmUjf1YpZbzped2LpNiQm2nYyB l9dnvkWZMbRT31ppzCtFtKeCKQb2yAjk2H5siag0PPDFL+zRqbF9JHO0KuV+fnkS PIk4VjymU= Received: from localhost.localdomain (unknown [117.139.248.43]) by smtp8 (Coremail) with SMTP id DMCowAAXsjJTZLtglnzDIA--.10967S2; Sat, 05 Jun 2021 19:47:32 +0800 (CST) From: Hailong Liu To: Ingo Molnar , Peter Zijlstra , Andy Shevchenko Cc: Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Andrew Morton , Masahiro Yamada , Nick Desaulniers , Vitor Massaru Iha , Sedat Dilek , Wei Yang , linux-kernel@vger.kernel.org, Hailong Liu Subject: [PATCH v2] sched/debug:fix stale comments of sched_debug Date: Sat, 5 Jun 2021 19:47:19 +0800 Message-Id: <20210605114719.70818-1-liuhailongg6@163.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: DMCowAAXsjJTZLtglnzDIA--.10967S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7KFyxZFW3WF4kJw45CryDZFb_yoW8AF4rpa s8WFyUGFyUGF1rtryrA3y8WryfuF97Ja4aqFy7u345ZryrGa1Sqry5tFW7KF1UZrWrAF4f uFWYg342gF1jy3DanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07j773kUUUUU= X-Originating-IP: [117.139.248.43] X-CM-SenderInfo: xolxxtxlor0wjjw6il2tof0z/xtbBCgaoYF3l-syT5gAAs7 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hailong Liu Since commit 'd27e9ae2f24(sched: Move /proc/sched_debug to debugfs)' file /proc/sched_debug file no longer exists, so update the comments and the dependencies and help text of CONFIG_SCHED_DEBUG. Signed-off-by: Hailong Liu --- changes since v1: - check and updated the dependencies of CONFIG_SCHED_DEBUG which suggested by Andy Shevchenko and Peter Zijlstra. --- kernel/sched/debug.c | 2 +- lib/Kconfig.debug | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 9c882f20803e..4cbd6d602829 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -9,7 +9,7 @@ #include "sched.h" /* - * This allows printing both to /proc/sched_debug and + * This allows printing both to debugfs/sched/debug and * to the console */ #define SEQ_printf(m, x...) \ diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 678c13967580..9c1fb07a6950 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1163,12 +1163,13 @@ menu "Scheduler Debugging" config SCHED_DEBUG bool "Collect scheduler debugging info" - depends on DEBUG_KERNEL && PROC_FS + depends on DEBUG_KERNEL && PROC_FS && DEBUG_FS default y help - If you say Y here, the /proc/sched_debug file will be provided - that can help debug the scheduler. The runtime overhead of this - option is minimal. + If you say Y here, the dictory debugfs/sched/ with various + scheduler-related debug files (such as debug, features, etc.) + and files /proc/pid/sched will be provided, that can help debug + the scheduler. The runtime overhead of this option is minimal. config SCHED_INFO bool -- 2.17.1