Skip to contentSkip to conversation

/proc/xenomai broken...

Xenomai-core Gilles Chanteperdrix 2 participants 8 messages Jun 14, 2006

lore
Share & tools
lore
#0 lore raw

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

Signature · 1 line
					    Gilles Chanteperdrix.
#1 lore raw
Quoted 3 lines · Gilles Chanteperdrix

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?

Signature · 1 line
Philippe.
#2 lore raw
Quoted 8 lines · Philippe Gerum
Quoted 3 lines · Gilles Chanteperdrix

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 ?

Signature · 1 line
					    Gilles Chanteperdrix.
#3 lore raw
Quoted 10 lines · Gilles Chanteperdrix
Quoted 8 lines · Philippe Gerum
Quoted 3 lines · Gilles Chanteperdrix

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?

Quoted 7 lines

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.

Signature · 1 line
Philippe.
#4 lore raw
Quoted 15 lines · Philippe Gerum
Quoted 13 lines · Gilles Chanteperdrix
Quoted 2 lines · Philippe Gerum
Quoted 1 line · Gilles Chanteperdrix

When using xenomai trunk, it appears that /proc/xenomai is no

longer a

Quoted 2 lines
Quoted 2 lines

directory but a file returning "0".

Quoted 1 line
Quoted 1 line

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.

Quoted 5 lines
Quoted 2 lines

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.

Signature · 1 line
Philippe.
#5 lore raw
Quoted 6 lines · Philippe Gerum

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.

Signature · 1 line
					    Gilles Chanteperdrix.
#6 lore raw
Quoted 11 lines · Gilles Chanteperdrix
Quoted 6 lines · Philippe Gerum

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.

Signature · 1 line
Philippe.
#7 lore raw
Quoted 13 lines · Philippe Gerum
Quoted 11 lines · Gilles Chanteperdrix
Quoted 6 lines · Philippe Gerum

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.

Quoted 5 lines

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.

Signature · 1 line
					    Gilles Chanteperdrix.