All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] /proc/xenomai broken...
@ 2006-06-14 15:59 Gilles Chanteperdrix
  2006-06-14 16:07 ` Philippe Gerum
  0 siblings, 1 reply; 8+ messages in thread
From: Gilles Chanteperdrix @ 2006-06-14 15:59 UTC (permalink / raw)
  To: xenomai


When using xenomai trunk, it appears that /proc/xenomai is no longer a
directory but a file returning "0".

-- 


					    Gilles Chanteperdrix.


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

* Re: [Xenomai-core] /proc/xenomai broken...
  2006-06-14 15:59 [Xenomai-core] /proc/xenomai broken Gilles Chanteperdrix
@ 2006-06-14 16:07 ` Philippe Gerum
  2006-06-14 16:17   ` Gilles Chanteperdrix
  0 siblings, 1 reply; 8+ messages in thread
From: Philippe Gerum @ 2006-06-14 16:07 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

Gilles Chanteperdrix wrote:
> When using xenomai trunk, it appears that /proc/xenomai is no longer a
> directory but a file returning "0".
> 

Check your recent changes for giving the nucleus a regular syscall 
table. I would not be surprised of some side-effect there. i.e. 
something going on with the xnptree_t descriptor?

-- 

Philippe.


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

* Re: [Xenomai-core] /proc/xenomai broken...
  2006-06-14 16:07 ` Philippe Gerum
@ 2006-06-14 16:17   ` Gilles Chanteperdrix
  2006-06-14 16:23     ` Philippe Gerum
  0 siblings, 1 reply; 8+ messages in thread
From: Gilles Chanteperdrix @ 2006-06-14 16:17 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: xenomai

Philippe Gerum wrote:
 > Gilles Chanteperdrix wrote:
 > > When using xenomai trunk, it appears that /proc/xenomai is no longer a
 > > directory but a file returning "0".
 > > 
 > 
 > Check your recent changes for giving the nucleus a regular syscall 
 > table. I would not be surprised of some side-effect there. i.e. 
 > something going on with the xnptree_t descriptor?

That is exactly the source of the problem, since iface_proc_root in
nucleus/module.c has not yet been set, the proc entry for the nucleus
interface get created directly under /proc instead of
/proc/xenomai/interfaces.

Do we need a /proc entry for this interface ?

-- 


					    Gilles Chanteperdrix.


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

* Re: [Xenomai-core] /proc/xenomai broken...
  2006-06-14 16:17   ` Gilles Chanteperdrix
@ 2006-06-14 16:23     ` Philippe Gerum
  2006-06-14 16:31       ` Philippe Gerum
  0 siblings, 1 reply; 8+ messages in thread
From: Philippe Gerum @ 2006-06-14 16:23 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

Gilles Chanteperdrix wrote:
> Philippe Gerum wrote:
>  > Gilles Chanteperdrix wrote:
>  > > When using xenomai trunk, it appears that /proc/xenomai is no longer a
>  > > directory but a file returning "0".
>  > > 
>  > 
>  > Check your recent changes for giving the nucleus a regular syscall 
>  > table. I would not be surprised of some side-effect there. i.e. 
>  > something going on with the xnptree_t descriptor?
> 
> That is exactly the source of the problem, since iface_proc_root in
> nucleus/module.c has not yet been set, the proc entry for the nucleus
> interface get created directly under /proc instead of
> /proc/xenomai/interfaces.
> 
> Do we need a /proc entry for this interface ?
> 

Not really. This would only give the exact number of processes bound to 
the nucleus, whilst major interface counters already display the number 
of bound threads.

-- 

Philippe.


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

* Re: [Xenomai-core] /proc/xenomai broken...
  2006-06-14 16:23     ` Philippe Gerum
@ 2006-06-14 16:31       ` Philippe Gerum
  2006-06-14 16:45         ` Gilles Chanteperdrix
  0 siblings, 1 reply; 8+ messages in thread
From: Philippe Gerum @ 2006-06-14 16:31 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: xenomai

Philippe Gerum wrote:
> Gilles Chanteperdrix wrote:
> 
>> Philippe Gerum wrote:
>>  > Gilles Chanteperdrix wrote:
>>  > > When using xenomai trunk, it appears that /proc/xenomai is no 
>> longer a
>>  > > directory but a file returning "0".
>>  > >  >  > Check your recent changes for giving the nucleus a regular 
>> syscall  > table. I would not be surprised of some side-effect there. 
>> i.e.  > something going on with the xnptree_t descriptor?
>>
>> That is exactly the source of the problem, since iface_proc_root in
>> nucleus/module.c has not yet been set, the proc entry for the nucleus
>> interface get created directly under /proc instead of
>> /proc/xenomai/interfaces.
>>
>> Do we need a /proc entry for this interface ?
>>
> 
> Not really. This would only give the exact number of processes bound to 
> the nucleus, whilst major interface counters already display the number 
> of bound threads.
> 

This said, the other option would be to move the call to 
xnshadow_mount() from the xnarch_init() to __xeno_sys_init() in a 
kernel-only section, just after xnpod_init_proc() has returned. There is 
nothing done in the arch-layer for any architecture that would prevent 
this. Btw, I'd say that "core" would be better than "xenomai" to name 
this internal interface.

-- 

Philippe.


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

* Re: [Xenomai-core] /proc/xenomai broken...
  2006-06-14 16:31       ` Philippe Gerum
@ 2006-06-14 16:45         ` Gilles Chanteperdrix
  2006-06-14 16:50           ` Philippe Gerum
  0 siblings, 1 reply; 8+ messages in thread
From: Gilles Chanteperdrix @ 2006-06-14 16:45 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: xenomai

Philippe Gerum wrote:
 > This said, the other option would be to move the call to 
 > xnshadow_mount() from the xnarch_init() to __xeno_sys_init() in a 
 > kernel-only section, just after xnpod_init_proc() has returned. There is 
 > nothing done in the arch-layer for any architecture that would prevent 
 > this. Btw, I'd say that "core" would be better than "xenomai" to name 
 > this internal interface.

Ok for renaming. But no thread is ever bound to this interface, so the
count is always 0. 

-- 


					    Gilles Chanteperdrix.


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

* Re: [Xenomai-core] /proc/xenomai broken...
  2006-06-14 16:45         ` Gilles Chanteperdrix
@ 2006-06-14 16:50           ` Philippe Gerum
  2006-06-14 17:49             ` Gilles Chanteperdrix
  0 siblings, 1 reply; 8+ messages in thread
From: Philippe Gerum @ 2006-06-14 16:50 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

Gilles Chanteperdrix wrote:
> Philippe Gerum wrote:
>  > This said, the other option would be to move the call to 
>  > xnshadow_mount() from the xnarch_init() to __xeno_sys_init() in a 
>  > kernel-only section, just after xnpod_init_proc() has returned. There is 
>  > nothing done in the arch-layer for any architecture that would prevent 
>  > this. Btw, I'd say that "core" would be better than "xenomai" to name 
>  > this internal interface.
> 
> Ok for renaming. But no thread is ever bound to this interface, so the
> count is always 0. 
> 

xnshadow_sys_bind()/unbind() would be the proper place to track a 
cumulated count. I'm not sure that this is going to be that useful now, 
but at some point in the future, maybe we could get a benefit from 
having a uniform way of talking to any interface using procfs, including 
to the core one.

-- 

Philippe.


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

* Re: [Xenomai-core] /proc/xenomai broken...
  2006-06-14 16:50           ` Philippe Gerum
@ 2006-06-14 17:49             ` Gilles Chanteperdrix
  0 siblings, 0 replies; 8+ messages in thread
From: Gilles Chanteperdrix @ 2006-06-14 17:49 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: xenomai

Philippe Gerum wrote:
 > Gilles Chanteperdrix wrote:
 > > Philippe Gerum wrote:
 > >  > This said, the other option would be to move the call to 
 > >  > xnshadow_mount() from the xnarch_init() to __xeno_sys_init() in a 
 > >  > kernel-only section, just after xnpod_init_proc() has returned. There is 
 > >  > nothing done in the arch-layer for any architecture that would prevent 
 > >  > this. Btw, I'd say that "core" would be better than "xenomai" to name 
 > >  > this internal interface.
 > > 
 > > Ok for renaming. But no thread is ever bound to this interface, so the
 > > count is always 0. 
 > > 
 > 
 > xnshadow_sys_bind()/unbind() would be the proper place to track a 
 > cumulated count. I'm not sure that this is going to be that useful now, 
 > but at some point in the future, maybe we could get a benefit from 
 > having a uniform way of talking to any interface using procfs, including 
 > to the core one.

Commit 1205 does what you suggested.

-- 


					    Gilles Chanteperdrix.


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

end of thread, other threads:[~2006-06-14 17:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-14 15:59 [Xenomai-core] /proc/xenomai broken Gilles Chanteperdrix
2006-06-14 16:07 ` Philippe Gerum
2006-06-14 16:17   ` Gilles Chanteperdrix
2006-06-14 16:23     ` Philippe Gerum
2006-06-14 16:31       ` Philippe Gerum
2006-06-14 16:45         ` Gilles Chanteperdrix
2006-06-14 16:50           ` Philippe Gerum
2006-06-14 17:49             ` Gilles Chanteperdrix

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.