Message ID | 20230731030740.12411-1-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp1786713vqg; Sun, 30 Jul 2023 21:10:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlEPLOtNbBG79NQZ7rbZcs0Ai8pRtToGVLRYw9o2WQ/L1fVtBReIsumECfjXYQBPuujZHR8i X-Received: by 2002:a17:907:a40d:b0:992:74e0:6f76 with SMTP id sg13-20020a170907a40d00b0099274e06f76mr6053669ejc.4.1690776610036; Sun, 30 Jul 2023 21:10:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690776610; cv=none; d=google.com; s=arc-20160816; b=eCKhLDYKgtg0zq+KAgiTt6d4aKHU/L2hg/1WDGc7yZvtukIsCYd89wQnQPBcJXCOup vil5qnafTmDZylTtIWCXMfQUYG7Q0WtLQM4E8djoX8n1bIJbw09syKbbkw4kWXDrq2Vr P4vtgbu3CiH0IbmyNt1pPqfvu15vrDGfggQuP/EOtBvuray3naIf0MQkTn9S3Tb4HR4o vhH6hkPhTtsnSUQUhSx/pk9qjPb4l+JbrGMvZWLZMmdN3Q5wSlbEhysH3thQd5aaz7aw dKsoqxZugyqVu5eK1I27H9BaX2Vyjahl+jgRUS9tfgO37rec/4zLMmbLbasY14RuLmbX GVMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=1ASI3dTvTFjELAY28G3zljY/LYDRlKcao8RliNhXMtg=; fh=VyeV2V+2c81PKryTAzmltmP6s9fCjv25BG0XAh/luiA=; b=thvZdZUN64fnBG4GA2bSvy/SlD9hYuJxceibPUHDahMP//MobijYCe4w8G/zyjIaIZ BtetyMDN6CO5+nlUcyPsdPlOfoCkDG5RdFLb3M+8jLjKb+3hqLeIlCTAQKxIZiIFQZxB pg6xdeZlUYvS4R8IrpzFcCRUhULo802u5EFV16Bf1vpwIuIKjbbTfB13rCY4m9yL7rgR qfgO5uPrAw7Pcglfx72ot5oxt7Y/4Lt3lw/Mnk+FHSd2iCQ+TF+PstEFuyRDasqXrKTC FOJmUOWyigo75B4gfMMu0FgDsF0uH0QG8wMNeDcuwbheP3sgz29pwsnRgWi8GI5taHWb sYrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=v+9b2XT0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m3-20020a1709060d8300b009937cf92693si5782275eji.427.2023.07.30.21.09.47; Sun, 30 Jul 2023 21:10:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=v+9b2XT0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229851AbjGaDHs (ORCPT <rfc822;dengxinlin2429@gmail.com> + 99 others); Sun, 30 Jul 2023 23:07:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229604AbjGaDHq (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 30 Jul 2023 23:07:46 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FC4DE6F for <linux-kernel@vger.kernel.org>; Sun, 30 Jul 2023 20:07:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=1ASI3dTvTFjELAY28G3zljY/LYDRlKcao8RliNhXMtg=; b=v+9b2XT0KEohT3hzCXWGxh6gqs 4EMPer3bScbQGIZPFYggeNlguBtZF/3rxeaX4a+dz86DNMeDRgPqZuQluRIrpkIksOiO1I425T/Ji mXIhlzOu+MAdC+NsmoBZ/VHurpdF4RUk5y64TvTwFWbz5VTd2/zWcki8MGwY93qKZgYqSSpucfVNX jj7iFZtnh51icvh+9jwn4oV/k8c/nVoU1ISvq1lyaVzem76ob239fWrO4ib9rbs5noP9Ds7yenLDD xmopntIrurW5tJebH0gj9Eq0ERwvs95oXUlFrlzXvAeb9zGIcZ9a55dESoR8E06KOdt+Hh+Qdnd7x CspAEaeg==; Received: from [2601:1c2:980:9ec0::2764] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qQJG2-00DeqE-2l; Mon, 31 Jul 2023 03:07:42 +0000 From: Randy Dunlap <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, kernel test robot <lkp@intel.com>, Johannes Weiner <hannes@cmpxchg.org>, Suren Baghdasaryan <surenb@google.com>, Ingo Molnar <mingo@redhat.com>, Peter Zijlstra <peterz@infradead.org>, Juri Lelli <juri.lelli@redhat.com>, Vincent Guittot <vincent.guittot@linaro.org> Subject: [PATCH] PSI: select KERNFS as needed Date: Sun, 30 Jul 2023 20:07:40 -0700 Message-ID: <20230731030740.12411-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772907774652391176 X-GMAIL-MSGID: 1772907774652391176 |
Series |
PSI: select KERNFS as needed
|
|
Commit Message
Randy Dunlap
July 31, 2023, 3:07 a.m. UTC
Users of KERNFS should select it to enforce its being built, so
do this to prevent a build error.
In file included from ../kernel/sched/build_utility.c:97:
../kernel/sched/psi.c: In function 'psi_trigger_poll':
../kernel/sched/psi.c:1479:17: error: implicit declaration of function 'kernfs_generic_poll' [-Werror=implicit-function-declaration]
1479 | kernfs_generic_poll(t->of, wait);
Fixes: aff037078eca ("sched/psi: use kernfs polling functions for PSI trigger polling")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Link: lore.kernel.org/r/202307310732.r65EQFY0-lkp@intel.com
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
---
init/Kconfig | 1 +
1 file changed, 1 insertion(+)
Comments
On Sun, Jul 30, 2023 at 8:07 PM Randy Dunlap <rdunlap@infradead.org> wrote: > > Users of KERNFS should select it to enforce its being built, so > do this to prevent a build error. > > In file included from ../kernel/sched/build_utility.c:97: > ../kernel/sched/psi.c: In function 'psi_trigger_poll': > ../kernel/sched/psi.c:1479:17: error: implicit declaration of function 'kernfs_generic_poll' [-Werror=implicit-function-declaration] > 1479 | kernfs_generic_poll(t->of, wait); > > Fixes: aff037078eca ("sched/psi: use kernfs polling functions for PSI trigger polling") > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > Reported-by: kernel test robot <lkp@intel.com> > Link: lore.kernel.org/r/202307310732.r65EQFY0-lkp@intel.com > Cc: Johannes Weiner <hannes@cmpxchg.org> > Cc: Suren Baghdasaryan <surenb@google.com> > Cc: Ingo Molnar <mingo@redhat.com> > Cc: Peter Zijlstra <peterz@infradead.org> > Cc: Juri Lelli <juri.lelli@redhat.com> > Cc: Vincent Guittot <vincent.guittot@linaro.org> Acked-by: Suren Baghdasaryan <surenb@google.com> Thanks! > --- > init/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff -- a/init/Kconfig b/init/Kconfig > --- a/init/Kconfig > +++ b/init/Kconfig > @@ -629,6 +629,7 @@ config TASK_IO_ACCOUNTING > > config PSI > bool "Pressure stall information tracking" > + select KERNFS > help > Collect metrics that indicate how overcommitted the CPU, memory, > and IO capacity are in the system.
On Mon, Jul 31, 2023 at 11:14 AM Suren Baghdasaryan <surenb@google.com> wrote: > > On Sun, Jul 30, 2023 at 8:07 PM Randy Dunlap <rdunlap@infradead.org> wrote: > > > > Users of KERNFS should select it to enforce its being built, so > > do this to prevent a build error. > > > > In file included from ../kernel/sched/build_utility.c:97: > > ../kernel/sched/psi.c: In function 'psi_trigger_poll': > > ../kernel/sched/psi.c:1479:17: error: implicit declaration of function 'kernfs_generic_poll' [-Werror=implicit-function-declaration] > > 1479 | kernfs_generic_poll(t->of, wait); > > > > Fixes: aff037078eca ("sched/psi: use kernfs polling functions for PSI trigger polling") > > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > > Reported-by: kernel test robot <lkp@intel.com> shouldn't this include: Closes: https://lore.kernel.org/oe-kbuild-all/202307310732.r65EQFY0-lkp@intel.com/ ? > > Link: lore.kernel.org/r/202307310732.r65EQFY0-lkp@intel.com > > Cc: Johannes Weiner <hannes@cmpxchg.org> > > Cc: Suren Baghdasaryan <surenb@google.com> > > Cc: Ingo Molnar <mingo@redhat.com> > > Cc: Peter Zijlstra <peterz@infradead.org> > > Cc: Juri Lelli <juri.lelli@redhat.com> > > Cc: Vincent Guittot <vincent.guittot@linaro.org> > > Acked-by: Suren Baghdasaryan <surenb@google.com> > > Thanks! > > > > --- > > init/Kconfig | 1 + > > 1 file changed, 1 insertion(+) > > > > diff -- a/init/Kconfig b/init/Kconfig > > --- a/init/Kconfig > > +++ b/init/Kconfig > > @@ -629,6 +629,7 @@ config TASK_IO_ACCOUNTING > > > > config PSI > > bool "Pressure stall information tracking" > > + select KERNFS > > help > > Collect metrics that indicate how overcommitted the CPU, memory, > > and IO capacity are in the system.
On 7/31/23 11:17, Suren Baghdasaryan wrote: > On Mon, Jul 31, 2023 at 11:14 AM Suren Baghdasaryan <surenb@google.com> wrote: >> >> On Sun, Jul 30, 2023 at 8:07 PM Randy Dunlap <rdunlap@infradead.org> wrote: >>> >>> Users of KERNFS should select it to enforce its being built, so >>> do this to prevent a build error. >>> >>> In file included from ../kernel/sched/build_utility.c:97: >>> ../kernel/sched/psi.c: In function 'psi_trigger_poll': >>> ../kernel/sched/psi.c:1479:17: error: implicit declaration of function 'kernfs_generic_poll' [-Werror=implicit-function-declaration] >>> 1479 | kernfs_generic_poll(t->of, wait); >>> >>> Fixes: aff037078eca ("sched/psi: use kernfs polling functions for PSI trigger polling") >>> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> >>> Reported-by: kernel test robot <lkp@intel.com> > > shouldn't this include: > Closes: https://lore.kernel.org/oe-kbuild-all/202307310732.r65EQFY0-lkp@intel.com/ > ? > That's the same URL as the Link: below. The difference(s) in Closes: and Link: are not clear to me, other than Closes: is newer. >>> Link: lore.kernel.org/r/202307310732.r65EQFY0-lkp@intel.com >>> Cc: Johannes Weiner <hannes@cmpxchg.org> >>> Cc: Suren Baghdasaryan <surenb@google.com> >>> Cc: Ingo Molnar <mingo@redhat.com> >>> Cc: Peter Zijlstra <peterz@infradead.org> >>> Cc: Juri Lelli <juri.lelli@redhat.com> >>> Cc: Vincent Guittot <vincent.guittot@linaro.org> >> >> Acked-by: Suren Baghdasaryan <surenb@google.com> >> >> Thanks! >> >> >>> --- >>> init/Kconfig | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff -- a/init/Kconfig b/init/Kconfig >>> --- a/init/Kconfig >>> +++ b/init/Kconfig >>> @@ -629,6 +629,7 @@ config TASK_IO_ACCOUNTING >>> >>> config PSI >>> bool "Pressure stall information tracking" >>> + select KERNFS >>> help >>> Collect metrics that indicate how overcommitted the CPU, memory, >>> and IO capacity are in the system.
On Mon, Jul 31, 2023 at 4:13 PM Randy Dunlap <rdunlap@infradead.org> wrote: > > > > On 7/31/23 11:17, Suren Baghdasaryan wrote: > > On Mon, Jul 31, 2023 at 11:14 AM Suren Baghdasaryan <surenb@google.com> wrote: > >> > >> On Sun, Jul 30, 2023 at 8:07 PM Randy Dunlap <rdunlap@infradead.org> wrote: > >>> > >>> Users of KERNFS should select it to enforce its being built, so > >>> do this to prevent a build error. > >>> > >>> In file included from ../kernel/sched/build_utility.c:97: > >>> ../kernel/sched/psi.c: In function 'psi_trigger_poll': > >>> ../kernel/sched/psi.c:1479:17: error: implicit declaration of function 'kernfs_generic_poll' [-Werror=implicit-function-declaration] > >>> 1479 | kernfs_generic_poll(t->of, wait); > >>> > >>> Fixes: aff037078eca ("sched/psi: use kernfs polling functions for PSI trigger polling") > >>> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > >>> Reported-by: kernel test robot <lkp@intel.com> > > > > shouldn't this include: > > Closes: https://lore.kernel.org/oe-kbuild-all/202307310732.r65EQFY0-lkp@intel.com/ > > ? > > > > That's the same URL as the Link: below. > The difference(s) in Closes: and Link: are not clear to me, > other than Closes: is newer. Either way, LGTM. Thanks! > > >>> Link: lore.kernel.org/r/202307310732.r65EQFY0-lkp@intel.com > >>> Cc: Johannes Weiner <hannes@cmpxchg.org> > >>> Cc: Suren Baghdasaryan <surenb@google.com> > >>> Cc: Ingo Molnar <mingo@redhat.com> > >>> Cc: Peter Zijlstra <peterz@infradead.org> > >>> Cc: Juri Lelli <juri.lelli@redhat.com> > >>> Cc: Vincent Guittot <vincent.guittot@linaro.org> > >> > >> Acked-by: Suren Baghdasaryan <surenb@google.com> > >> > >> Thanks! > >> > >> > >>> --- > >>> init/Kconfig | 1 + > >>> 1 file changed, 1 insertion(+) > >>> > >>> diff -- a/init/Kconfig b/init/Kconfig > >>> --- a/init/Kconfig > >>> +++ b/init/Kconfig > >>> @@ -629,6 +629,7 @@ config TASK_IO_ACCOUNTING > >>> > >>> config PSI > >>> bool "Pressure stall information tracking" > >>> + select KERNFS > >>> help > >>> Collect metrics that indicate how overcommitted the CPU, memory, > >>> and IO capacity are in the system. > > -- > ~Randy
diff -- a/init/Kconfig b/init/Kconfig --- a/init/Kconfig +++ b/init/Kconfig @@ -629,6 +629,7 @@ config TASK_IO_ACCOUNTING config PSI bool "Pressure stall information tracking" + select KERNFS help Collect metrics that indicate how overcommitted the CPU, memory, and IO capacity are in the system.