Skip to contentSkip to conversation

PSI: select KERNFS as needed

PATCH In review Randy Dunlap 2 participants 5 messages Jul 31, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PSI: select KERNFS as needed

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")
Link lore.kernel.org/r/[email protected]
Cc Johannes Weiner <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Juri Lelli <[email protected]>
Cc Vincent Guittot <[email protected]>
---
 init/Kconfig |    1 +
 1 file changed, 1 insertion(+)
init/Kconfig +1 -0
diff -- 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.
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Randy Dunlap

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);

Quoted 10 lines
Fixes aff037078eca ("sched/psi: use kernfs polling functions for PSI trigger polling")
Link lore.kernel.org/r/[email protected]
Cc Johannes Weiner <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Juri Lelli <[email protected]>
Cc Vincent Guittot <[email protected]>

Thanks!

Quoted 15 lines
---
 init/Kconfig |    1 +
 1 file changed, 1 insertion(+)

diff -- a/init/Kconfig b/init/Kconfig

init/Kconfig +1 -0
@@ -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.
#2 lore raw
Quoted 6 lines · Suren Baghdasaryan
Quoted 4 lines · Randy Dunlap

Users of KERNFS should select it to enforce its being built, so do this to prevent a build error.

Quoted 8 lines
Quoted 8 lines

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")

shouldn't this include:

?

Quoted 28 lines
Quoted 7 lines
Link lore.kernel.org/r/[email protected]
Cc Johannes Weiner <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Juri Lelli <[email protected]>
Cc Vincent Guittot <[email protected]>

Thanks!

Quoted 15 lines
---
 init/Kconfig |    1 +
 1 file changed, 1 insertion(+)

diff -- a/init/Kconfig b/init/Kconfig

init/Kconfig +1 -0
@@ -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.
#3 lore raw
Quoted 12 lines · Suren Baghdasaryan
Quoted 11 lines · Suren Baghdasaryan
Quoted 9 lines · Randy Dunlap

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);

Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Fixes aff037078eca ("sched/psi: use kernfs polling functions for PSI trigger polling")

shouldn't this include:

?

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.

Quoted 28 lines
Quoted 28 lines
Quoted 7 lines
Link lore.kernel.org/r/[email protected]
Cc Johannes Weiner <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Juri Lelli <[email protected]>
Cc Vincent Guittot <[email protected]>

Thanks!

Quoted 15 lines
---
 init/Kconfig |    1 +
 1 file changed, 1 insertion(+)

diff -- a/init/Kconfig b/init/Kconfig

init/Kconfig +1 -0
@@ -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.
Signature · 1 line
~Randy
#4 lore raw
Quoted 20 lines · Randy Dunlap
Quoted 16 lines · Suren Baghdasaryan
Quoted 14 lines · Suren Baghdasaryan
Quoted 12 lines · Randy Dunlap

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")
Quoted 8 lines
Quoted 4 lines

shouldn't this include:

?

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!

Quoted 32 lines
Quoted 23 lines
Quoted 23 lines
Quoted 8 lines
Link lore.kernel.org/r/[email protected]
Cc Johannes Weiner <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Juri Lelli <[email protected]>
Cc Vincent Guittot <[email protected]>

Thanks!

Quoted 9 lines
---
 init/Kconfig |    1 +
 1 file changed, 1 insertion(+)

diff -- a/init/Kconfig b/init/Kconfig

init/Kconfig +0 -0
@@ -629,6 +629,7 @@ config TASK_IO_ACCOUNTING
 
Quoted 6 lines
Quoted 6 lines

init/Kconfig config TASK_IO_ACCOUNTING · line 635

Quoted 6 lines
init/Kconfig +1 -0
 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