All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] make HWLAT_DETECTOR kernel config either disabled or a module, never builtin.
@ 2015-09-23 17:33 Joakim Hernberg
  2015-12-11 16:52 ` Sebastian Andrzej Siewior
  0 siblings, 1 reply; 8+ messages in thread
From: Joakim Hernberg @ 2015-09-23 17:33 UTC (permalink / raw)
  To: linux-rt-users
  Cc: Thomas Gleixner, Sebastian Andrzej Siewior, Steven Rostedt,
	Uwe Kleine-König

Since the HWLAT_DETECTOR driver supposedly shouldn't be builtin, but a
module when used at all, it would make sense to limit the configuration
choices:

Signed-off-by: Joakim Hernberg <jhernberg@alchemy.lu>
Suggested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

---
 drivers/misc/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index 453a616..94756c3 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -124,8 +124,7 @@ config IBM_ASM
 
 config HWLAT_DETECTOR
 	tristate "Testing module to detect hardware-induced latencies"
-	depends on DEBUG_FS
-	depends on RING_BUFFER
+	depends on DEBUG_FS && RING_BUFFER && m
 	default m
 	---help---
 	  A simple hardware latency detector. Use this module to detect
-- 
2.5.3

-- 

   Joakim
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] make HWLAT_DETECTOR kernel config either disabled or a module, never builtin.
  2015-09-23 17:33 [PATCH] make HWLAT_DETECTOR kernel config either disabled or a module, never builtin Joakim Hernberg
@ 2015-12-11 16:52 ` Sebastian Andrzej Siewior
  2015-12-11 19:47   ` Joakim Hernberg
  2015-12-13 10:39   ` Joakim Hernberg
  0 siblings, 2 replies; 8+ messages in thread
From: Sebastian Andrzej Siewior @ 2015-12-11 16:52 UTC (permalink / raw)
  To: Joakim Hernberg
  Cc: linux-rt-users, Thomas Gleixner, Steven Rostedt, Uwe Kleine-König

* Joakim Hernberg | 2015-09-23 19:33:40 [+0200]:

>Since the HWLAT_DETECTOR driver supposedly shouldn't be builtin, but a
>module when used at all, it would make sense to limit the configuration
>choices:

what is wrong with it beeing built-in? The default is m already.

>Signed-off-by: Joakim Hernberg <jhernberg@alchemy.lu>
>Suggested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] make HWLAT_DETECTOR kernel config either disabled or a module, never builtin.
  2015-12-11 16:52 ` Sebastian Andrzej Siewior
@ 2015-12-11 19:47   ` Joakim Hernberg
  2015-12-13 10:39   ` Joakim Hernberg
  1 sibling, 0 replies; 8+ messages in thread
From: Joakim Hernberg @ 2015-12-11 19:47 UTC (permalink / raw)
  To: Sebastian Andrzej Siewior
  Cc: linux-rt-users, Thomas Gleixner, Steven Rostedt, Uwe Kleine-König

On Fri, 11 Dec 2015 17:52:40 +0100
Sebastian Andrzej Siewior <bigeasy@linutronix.de> wrote:

> * Joakim Hernberg | 2015-09-23 19:33:40 [+0200]:
> 
> >Since the HWLAT_DETECTOR driver supposedly shouldn't be builtin, but
> >a module when used at all, it would make sense to limit the
> >configuration choices:  
> 
> what is wrong with it beeing built-in? The default is m already.

To be quite honest I'm not quite sure anymore, think it fails when
built in.  I also faintly remember an irc discussion where it was
claimed that it shouldn't be built into the kernel, think that was the
reason for creating the patch.

-- 

   Joakim

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] make HWLAT_DETECTOR kernel config either disabled or a module, never builtin.
  2015-12-11 16:52 ` Sebastian Andrzej Siewior
  2015-12-11 19:47   ` Joakim Hernberg
@ 2015-12-13 10:39   ` Joakim Hernberg
  2015-12-22 15:11     ` Sebastian Andrzej Siewior
  1 sibling, 1 reply; 8+ messages in thread
From: Joakim Hernberg @ 2015-12-13 10:39 UTC (permalink / raw)
  To: Sebastian Andrzej Siewior
  Cc: linux-rt-users, Thomas Gleixner, Steven Rostedt,
	Uwe Kleine-König, John Kacur

On Fri, 11 Dec 2015 17:52:40 +0100
Sebastian Andrzej Siewior <bigeasy@linutronix.de> wrote:

> * Joakim Hernberg | 2015-09-23 19:33:40 [+0200]:
> 
> >Since the HWLAT_DETECTOR driver supposedly shouldn't be builtin, but
> >a module when used at all, it would make sense to limit the
> >configuration choices:  
> 
> what is wrong with it beeing built-in? The default is m already.
> 
> >Signed-off-by: Joakim Hernberg <jhernberg@alchemy.lu>
> >Suggested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>  
> 
> Sebastian

I looked at the IRC logs from when this was discussed.  The hwlatdetect
script looks for the kernel module and will fail if it's built-in (or
compressed).  Also this quote from irc: <jkacur> I need to look
at the code, but offhand, I think we said, it cannot be a built-in by design

These were the reasons for the patch.

-- 

   Joakim
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] make HWLAT_DETECTOR kernel config either disabled or a module, never builtin.
  2015-12-13 10:39   ` Joakim Hernberg
@ 2015-12-22 15:11     ` Sebastian Andrzej Siewior
  2015-12-22 16:25       ` John Kacur
  0 siblings, 1 reply; 8+ messages in thread
From: Sebastian Andrzej Siewior @ 2015-12-22 15:11 UTC (permalink / raw)
  To: Joakim Hernberg
  Cc: linux-rt-users, Thomas Gleixner, Steven Rostedt,
	Uwe Kleine-König, John Kacur

* Joakim Hernberg | 2015-12-13 11:39:35 [+0100]:

>I looked at the IRC logs from when this was discussed.  The hwlatdetect
>script looks for the kernel module and will fail if it's built-in (or
>compressed).  Also this quote from irc: <jkacur> I need to look
>at the code, but offhand, I think we said, it cannot be a built-in by design

Why can't it work by design in built-in mode? The module parameters
`enabled` and `threshold` can be set via debugfs (and via command line).
So I don't see here the difference between module and built-in.
Is there something I missed?

If the hwlatdetect script is not able to handle that then it deserves to
be fixed. The same goes for support of compressed modules.

>These were the reasons for the patch.

Sebastian

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] make HWLAT_DETECTOR kernel config either disabled or a module, never builtin.
  2015-12-22 15:11     ` Sebastian Andrzej Siewior
@ 2015-12-22 16:25       ` John Kacur
  2015-12-22 16:34         ` Sebastian Andrzej Siewior
  0 siblings, 1 reply; 8+ messages in thread
From: John Kacur @ 2015-12-22 16:25 UTC (permalink / raw)
  To: Sebastian Andrzej Siewior
  Cc: Joakim Hernberg, linux-rt-users, Thomas Gleixner, Steven Rostedt,
	Uwe Kleine-König



----- Original Message -----
> * Joakim Hernberg | 2015-12-13 11:39:35 [+0100]:
> 
> >I looked at the IRC logs from when this was discussed.  The hwlatdetect
> >script looks for the kernel module and will fail if it's built-in (or
> >compressed).  Also this quote from irc: <jkacur> I need to look
> >at the code, but offhand, I think we said, it cannot be a built-in by design
> 
> Why can't it work by design in built-in mode? The module parameters
> `enabled` and `threshold` can be set via debugfs (and via command line).
> So I don't see here the difference between module and built-in.
> Is there something I missed?
> 
> If the hwlatdetect script is not able to handle that then it deserves to
> be fixed. The same goes for support of compressed modules.
> 
> >These were the reasons for the patch.
> 

The script can be made to handle it, that's not a big deal. I think the historical
reason was worrying that people could be accidentally running a kernel with
some really heavy weight debugging that would affect performance. However, let people
hang themselves if they want. Clark was going to send a patch to allow it, but probably
ran out of time before the holidays. You can beat him to the punch if you want, or wait
for him.

John

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] make HWLAT_DETECTOR kernel config either disabled or a module, never builtin.
  2015-12-22 16:25       ` John Kacur
@ 2015-12-22 16:34         ` Sebastian Andrzej Siewior
  2015-12-22 16:43           ` John Kacur
  0 siblings, 1 reply; 8+ messages in thread
From: Sebastian Andrzej Siewior @ 2015-12-22 16:34 UTC (permalink / raw)
  To: John Kacur
  Cc: Joakim Hernberg, linux-rt-users, Thomas Gleixner, Steven Rostedt,
	Uwe Kleine-König

On 12/22/2015 05:25 PM, John Kacur wrote:
> The script can be made to handle it, that's not a big deal. I think the historical
> reason was worrying that people could be accidentally running a kernel with
> some really heavy weight debugging that would affect performance. However, let people
> hang themselves if they want.

How can people hang themselves if they build it *into* the kernel? If I
understand *how* this can happen I will try to address it. However from
what I can see right now, nothing will happen if this module is built
into the kernel.

> 
> John
> 
Sebastian

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] make HWLAT_DETECTOR kernel config either disabled or a module, never builtin.
  2015-12-22 16:34         ` Sebastian Andrzej Siewior
@ 2015-12-22 16:43           ` John Kacur
  0 siblings, 0 replies; 8+ messages in thread
From: John Kacur @ 2015-12-22 16:43 UTC (permalink / raw)
  To: Sebastian Andrzej Siewior
  Cc: Joakim Hernberg, linux-rt-users, Thomas Gleixner, Steven Rostedt,
	Uwe Kleine-König



----- Original Message -----
> On 12/22/2015 05:25 PM, John Kacur wrote:
> > The script can be made to handle it, that's not a big deal. I think the
> > historical
> > reason was worrying that people could be accidentally running a kernel with
> > some really heavy weight debugging that would affect performance. However,
> > let people
> > hang themselves if they want.
> 
> How can people hang themselves if they build it *into* the kernel? If I
> understand *how* this can happen I will try to address it. However from
> what I can see right now, nothing will happen if this module is built
> into the kernel.
> 
> > 
> > John
> > 
> Sebastian

All I mean is if you are accidentally running a debug kernel, you're going
to get really bad performance, which is obvious. However, why are you arguing
with me, I'm agreeing with and Clark is agreeing with you, let's make it possible
for people to enable it now, and forget whatever historical reason stopped us from
doing that before.

John

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-12-22 16:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-23 17:33 [PATCH] make HWLAT_DETECTOR kernel config either disabled or a module, never builtin Joakim Hernberg
2015-12-11 16:52 ` Sebastian Andrzej Siewior
2015-12-11 19:47   ` Joakim Hernberg
2015-12-13 10:39   ` Joakim Hernberg
2015-12-22 15:11     ` Sebastian Andrzej Siewior
2015-12-22 16:25       ` John Kacur
2015-12-22 16:34         ` Sebastian Andrzej Siewior
2015-12-22 16:43           ` John Kacur

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.