All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Lse-tech] [RFC] fork historic module
@ 2004-12-17 16:52 Manfred Spraul
  2004-12-17 16:59 ` Andi Kleen
  0 siblings, 1 reply; 5+ messages in thread
From: Manfred Spraul @ 2004-12-17 16:52 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Linux Kernel Mailing List

Andi wrote:

>> +/* IOCTL numbers */
>> +/* If you add a new IOCTL number don't forget to update FH_MAXNR */
>> +#define FH_MAGIC	0x35
>> +#define FH_REGISTER	_IO(FH_MAGIC,0)
>> +#define FH_UNREGISTER	_IO(FH_MAGIC,1)
>
>Is this really unique? 32bit emulation currently needs unique ioctl numbers.
>  
>
Are there plans to fix that? Perhaps move the emulation callback into 
struct file?

--
    Manfred


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

* Re: [Lse-tech] [RFC] fork historic module
  2004-12-17 16:52 [Lse-tech] [RFC] fork historic module Manfred Spraul
@ 2004-12-17 16:59 ` Andi Kleen
  0 siblings, 0 replies; 5+ messages in thread
From: Andi Kleen @ 2004-12-17 16:59 UTC (permalink / raw)
  To: Manfred Spraul; +Cc: Andi Kleen, Linux Kernel Mailing List

On Fri, Dec 17, 2004 at 05:52:38PM +0100, Manfred Spraul wrote:
> Andi wrote:
> 
> >>+/* IOCTL numbers */
> >>+/* If you add a new IOCTL number don't forget to update FH_MAXNR */
> >>+#define FH_MAGIC	0x35
> >>+#define FH_REGISTER	_IO(FH_MAGIC,0)
> >>+#define FH_UNREGISTER	_IO(FH_MAGIC,1)
> >
> >Is this really unique? 32bit emulation currently needs unique ioctl 
> >numbers.
> > 
> >
> Are there plans to fix that? Perhaps move the emulation callback into 
> struct file?

Yes. See the thread on l-k i started two days ago.

Actually the main reason is that the current conversion setup has a 
unfixable module unload race.

-Andi

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

* Re: [Lse-tech] [RFC] fork historic module
  2004-12-17 15:11 ` [Lse-tech] " Andi Kleen
@ 2004-12-20  7:28   ` Guillaume Thouvenin
  0 siblings, 0 replies; 5+ messages in thread
From: Guillaume Thouvenin @ 2004-12-20  7:28 UTC (permalink / raw)
  To: Andi Kleen; +Cc: lkml, elsa-announce, elsa-devel

On Fri, 2004-12-17 at 16:11 +0100, Andi Kleen wrote:
> > +/* IOCTL numbers */
> > +/* If you add a new IOCTL number don't forget to update FH_MAXNR */
> > +#define FH_MAGIC	0x35
> > +#define FH_REGISTER	_IO(FH_MAGIC,0)
> > +#define FH_UNREGISTER	_IO(FH_MAGIC,1)
> 
> Is this really unique? 32bit emulation currently needs unique ioctl numbers.

I read the Documentation/ioctl-number.txt file and 0x35 is not mentioned
in this file. But I made a grep on 'MAGIC' and '35' in the Linux source
tree and you're right, this number is already used by POR_MAGIC_2. 

Is a grep in the Linux source tree is enough to know if the value is
unique?

Thanks,
Guillaume  


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

* Re: [Lse-tech] [RFC] fork historic module
  2004-12-17 14:58 Guillaume Thouvenin
  2004-12-17 15:11 ` [Lse-tech] " Andi Kleen
@ 2004-12-17 17:39 ` Erich Focht
  1 sibling, 0 replies; 5+ messages in thread
From: Erich Focht @ 2004-12-17 17:39 UTC (permalink / raw)
  To: lse-tech
  Cc: Guillaume Thouvenin, lkml, Andrew Morton, elsa-announce,
	elsa-devel, Gerrit Huizenga, Jean Pierre Dion, lse-tech

On Friday 17 December 2004 15:58, Guillaume Thouvenin wrote:
>   Here is the fork historic module. This module keeps the historic about
> the creation of processes and it gives this information to a user space
> application if one is registered. Currently, only one application can
> use it. If needed it could be extended to several applications.

This sounds very useful for a lot of interesting stuff. Though in the
current form maybe the name is not appropriate: the module doesn't
keep track of the fork history, this would be done in user-space. The
module is more like a relay for fork monitoring.

If you plan to extend this to multiple registered user space processes
it would be great to have per process reporting policies, for example:
 - all forks,
 - only forks of descendants (children, etc).

Erich


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

* Re: [Lse-tech] [RFC] fork historic module
  2004-12-17 14:58 Guillaume Thouvenin
@ 2004-12-17 15:11 ` Andi Kleen
  2004-12-20  7:28   ` Guillaume Thouvenin
  2004-12-17 17:39 ` Erich Focht
  1 sibling, 1 reply; 5+ messages in thread
From: Andi Kleen @ 2004-12-17 15:11 UTC (permalink / raw)
  To: Guillaume Thouvenin
  Cc: lkml, Andrew Morton, elsa-announce, elsa-devel, Gerrit Huizenga,
	Jean Pierre Dion, lse-tech

> +/* IOCTL numbers */
> +/* If you add a new IOCTL number don't forget to update FH_MAXNR */
> +#define FH_MAGIC	0x35
> +#define FH_REGISTER	_IO(FH_MAGIC,0)
> +#define FH_UNREGISTER	_IO(FH_MAGIC,1)

Is this really unique? 32bit emulation currently needs unique ioctl numbers.

-Andi

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

end of thread, other threads:[~2004-12-20  8:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-17 16:52 [Lse-tech] [RFC] fork historic module Manfred Spraul
2004-12-17 16:59 ` Andi Kleen
  -- strict thread matches above, loose matches on Subject: below --
2004-12-17 14:58 Guillaume Thouvenin
2004-12-17 15:11 ` [Lse-tech] " Andi Kleen
2004-12-20  7:28   ` Guillaume Thouvenin
2004-12-17 17:39 ` Erich Focht

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.