Skip to contentSkip to conversation

2.6.16-rc6 support

Xenomai-core Applied Jan Kiszka 3 participants 4 messages Mar 19, 2006 – Mar 22, 2006

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Hi,

Jeroen reported success much earlier, now I had to rebase my box on upcoming 2.6.16. So I would like to post the result, maybe others are interested in starting an early test as well. Attached is a cleanly applying Ipipe patch for -rc6 and a fix for a name collision in posix/syscall.c (there are other mutex functions in the kernel now...).

I'm writing this mail on a 2.6.16-Xenomai box (x86) under load (POSIX skin+cyclictest, ongoing kernel-built), and all works smoothly. Hmm, a few minutes for 4 rejected hunks of the standard patch, some further for the naming clash, and even the tracer applied out-of-the-box - that was too easy. ;)

Jan

PS: Gilles, as a tiny cleanup, I would suggest converting all syscall wrapper functions in posix/syscall.c into static ones. They are only used in that file.

skins/posix/syscall.c +12 -12
Index: ksrc/skins/posix/syscall.c
===================================================================
@@ -803,7 +803,7 @@
     return -EINTR;
 }
 
-int __mutex_init (struct task_struct *curr, struct pt_regs *regs)
+int __pthread_mutex_init (struct task_struct *curr, struct pt_regs *regs)
 
 {
     union __xeno_mutex mx, *umx;
@@ -831,7 +831,7 @@
     return 0;
 }
 
-int __mutex_destroy (struct task_struct *curr, struct pt_regs *regs)
+int __pthread_mutex_destroy (struct task_struct *curr, struct pt_regs *regs)
 
 {
     union __xeno_mutex mx, *umx;
@@ -856,7 +856,7 @@
     return -err;
 }
 
-int __mutex_lock (struct task_struct *curr, struct pt_regs *regs)
+int __pthread_mutex_lock (struct task_struct *curr, struct pt_regs *regs)
 
 {
     union __xeno_mutex mx, *umx;
@@ -874,7 +874,7 @@
     return -pse51_mutex_timedlock_break(&mx.shadow_mutex, XN_INFINITE);
 }
 
-int __mutex_timedlock (struct task_struct *curr, struct pt_regs *regs)
+int __pthread_mutex_timedlock (struct task_struct *curr, struct pt_regs *regs)
 
 {
     union __xeno_mutex mx, *umx;
@@ -901,7 +901,7 @@
     return -pse51_mutex_timedlock_break(&mx.shadow_mutex,ts2ticks_ceil(&ts)+1);
 }
 
-int __mutex_trylock (struct task_struct *curr, struct pt_regs *regs)
+int __pthread_mutex_trylock (struct task_struct *curr, struct pt_regs *regs)
 
 {
     union __xeno_mutex mx, *umx;
@@ -919,7 +919,7 @@
     return -pthread_mutex_trylock(&mx.native_mutex);
 }
 
-int __mutex_unlock (struct task_struct *curr, struct pt_regs *regs)
+int __pthread_mutex_unlock (struct task_struct *curr, struct pt_regs *regs)
 
 {
     union __xeno_mutex mx, *umx;
@@ -2070,12 +2070,12 @@
     [__pse51_clock_gettime] = { &__clock_gettime, __xn_exec_any },
     [__pse51_clock_settime] = { &__clock_settime, __xn_exec_any },
     [__pse51_clock_nanosleep] = { &__clock_nanosleep, __xn_exec_primary },
-    [__pse51_mutex_init] = { &__mutex_init, __xn_exec_any },
-    [__pse51_mutex_destroy] = { &__mutex_destroy, __xn_exec_any },
-    [__pse51_mutex_lock] = { &__mutex_lock, __xn_exec_primary },
-    [__pse51_mutex_timedlock] = { &__mutex_timedlock, __xn_exec_primary },
-    [__pse51_mutex_trylock] = { &__mutex_trylock, __xn_exec_primary },
-    [__pse51_mutex_unlock] = { &__mutex_unlock, __xn_exec_primary },
+    [__pse51_mutex_init] = { &__pthread_mutex_init, __xn_exec_any },
+    [__pse51_mutex_destroy] = { &__pthread_mutex_destroy, __xn_exec_any },
+    [__pse51_mutex_lock] = { &__pthread_mutex_lock, __xn_exec_primary },
+    [__pse51_mutex_timedlock] = { &__pthread_mutex_timedlock, __xn_exec_primary },
+    [__pse51_mutex_trylock] = { &__pthread_mutex_trylock, __xn_exec_primary },
+    [__pse51_mutex_unlock] = { &__pthread_mutex_unlock, __xn_exec_primary },
     [__pse51_cond_init] = { &__cond_init, __xn_exec_any },
     [__pse51_cond_destroy] = { &__cond_destroy, __xn_exec_any },
     [__pse51_cond_wait] = { &__cond_wait, __xn_exec_primary },
author
#1 lore raw
Quoted 8 lines · Jan Kiszka

Hi,

Jeroen reported success much earlier, now I had to rebase my box on upcoming 2.6.16. So I would like to post the result, maybe others are interested in starting an early test as well. Attached is a cleanly applying Ipipe patch for -rc6 and a fix for a name collision in posix/syscall.c (there are other mutex functions in the kernel now...).

Uups, someone must have whispered to me that 2.6.16 will come out very soon, and now it happened. The final patch seems to cause no problems to the ipipe patch as well.

Jan

#2 lore raw
Quoted 12 lines · Jan Kiszka
Quoted 8 lines · Jan Kiszka

Hi,

Jeroen reported success much earlier, now I had to rebase my box on upcoming 2.6.16. So I would like to post the result, maybe others are interested in starting an early test as well. Attached is a cleanly applying Ipipe patch for -rc6 and a fix for a name collision in posix/syscall.c (there are other mutex functions in the kernel now...).

Quoted 4 lines

Uups, someone must have whispered to me that 2.6.16 will come out very soon, and now it happened. The final patch seems to cause no problems to the ipipe patch as well.

Looks ok here too. I will upgrade the Adeos x86 support on this base. Thanks.

Quoted 10 lines

Jan

------------------------------------------------------------------------

_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Signature · 1 line
Philippe.
#3 lore raw
In reply to Jan Kiszka
Quoted 2 lines · Jan Kiszka

and a fix for a name collision in
posix/syscall.c (there are other mutex functions in the kernel now...).

Applied, thanks.

Quoted 3 lines

PS: Gilles, as a tiny cleanup, I would suggest converting all syscall wrapper functions in posix/syscall.c into static ones. They are only used in that file.

Done.

Signature · 1 line
					    Gilles Chanteperdrix.