Re: [Xenomai-core] measuring tasks execution time

2007-07-09 Thread Daniel Simon
On Sun, 08 Jul 2007 12:11:56 +0200
Jan Kiszka [EMAIL PROTECTED] wrote:

 You are welcome to test, fix, improve, or just use it. Looking forward
 to your feedback!

Thanks, I'll try it this week

Daniel
-- 
   Daniel SIMONProjet NeCS  INRIA Rhone-Alpes
Inovallee, 655 avenue de l'Europe, Montbonnot
 38 334 Saint Ismier Cedex France
 [EMAIL PROTECTED] Phone:(33)476615328 Fax:(33)476615252
  http://necs.inrialpes.fr/people/simon/



___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


[Xenomai-core] [PATCH] __deprecated not defined for Linux 2.4

2007-07-09 Thread Wolfgang Grandegger

Hello,

the attached patch changes:

  2007-07-09  Wolfgang Grandegger  [EMAIL PROTECTED]

 * include/asm-generic/wrappers.h: add  __deprecated for Linux 2.4.

Wolfgang.


Index: include/asm-generic/wrappers.h
===
--- include/asm-generic/wrappers.h	(revision 2758)
+++ include/asm-generic/wrappers.h	(working copy)
@@ -179,6 +179,8 @@ void show_stack(struct task_struct *task
 
 #define atomic_cmpxchg(v, old, new) ((int)cmpxchg(((v)-counter), old, new))
 
+#define __deprecated  __attribute__((deprecated))
+
 #else /* LINUX_VERSION_CODE = KERNEL_VERSION(2,5,0) */
 
 #define compat_module_param_array(name, type, count, perm) \
Index: ChangeLog
===
--- ChangeLog	(revision 2758)
+++ ChangeLog	(working copy)
@@ -1,3 +1,7 @@
+2007-07-09  Wolfgang Grandegger  [EMAIL PROTECTED]
+
+	* include/asm-generic/wrappers.h: add  __deprecated for Linux 2.4.
+
 2007-07-08  Philippe Gerum  [EMAIL PROTECTED]
 
 	* xenomai: Upgrade to autoconf 2.61, automake 1.10, libtool
___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [PATCH] __deprecated not defined for Linux 2.4

2007-07-09 Thread Philippe Gerum
On Mon, 2007-07-09 at 16:45 +0200, Wolfgang Grandegger wrote:
 Hello,
 
 the attached patch changes:
 
2007-07-09  Wolfgang Grandegger  [EMAIL PROTECTED]
 
   * include/asm-generic/wrappers.h: add  __deprecated for Linux 2.4.
 

Merged, thanks.

 Wolfgang.
 
 
 ___
 Xenomai-core mailing list
 Xenomai-core@gna.org
 https://mail.gna.org/listinfo/xenomai-core
-- 
Philippe.



___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [PATCH] __deprecated not defined for Linux 2.4

2007-07-09 Thread Jan Kiszka
Philippe Gerum wrote:
 On Mon, 2007-07-09 at 16:45 +0200, Wolfgang Grandegger wrote:
 Hello,

 the attached patch changes:

2007-07-09  Wolfgang Grandegger  [EMAIL PROTECTED]

   * include/asm-generic/wrappers.h: add  __deprecated for Linux 2.4.

 
 Merged, thanks.

You are too fast for me - I was still test-building my approach!

Looks rather like I picked the wrong expression for marking
rtdm_task_sleep_until deprecated. I would prefer to go for this variant
and back Wolfgang's patch out again:

--- include/rtdm/rtdm_driver.h  (Revision 2758)
+++ include/rtdm/rtdm_driver.h  (Arbeitskopie)
@@ -1009,7 +1009,7 @@ rtdm_task_sleep_abs(nanosecs_abs_t wakeu
 }

 /* rtdm_task_sleep_abs shall be used instead */
-static inline int __deprecated
+static inline int __deprecated_call__
 rtdm_task_sleep_until(nanosecs_abs_t wakeup_time)
 {
 return __rtdm_task_sleep(wakeup_time, XN_REALTIME);


But note that I'm still test-building...

Jan



signature.asc
Description: OpenPGP digital signature
___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [PATCH] __deprecated not defined for Linux 2.4

2007-07-09 Thread Philippe Gerum
On Mon, 2007-07-09 at 16:50 +0200, Jan Kiszka wrote:
 Philippe Gerum wrote:
  On Mon, 2007-07-09 at 16:45 +0200, Wolfgang Grandegger wrote:
  Hello,
 
  the attached patch changes:
 
 2007-07-09  Wolfgang Grandegger  [EMAIL PROTECTED]
 
* include/asm-generic/wrappers.h: add  __deprecated for Linux 2.4.
 
  
  Merged, thanks.
 
 You are too fast for me - I was still test-building my approach!
 
 Looks rather like I picked the wrong expression for marking
 rtdm_task_sleep_until deprecated. I would prefer to go for this variant
 and back Wolfgang's patch out again:

__deprecated is going to be useful in backporting 2.6 stuff to 2.4. This
is not only a RTDM issue.

 
 --- include/rtdm/rtdm_driver.h  (Revision 2758)
 +++ include/rtdm/rtdm_driver.h  (Arbeitskopie)
 @@ -1009,7 +1009,7 @@ rtdm_task_sleep_abs(nanosecs_abs_t wakeu
  }
 
  /* rtdm_task_sleep_abs shall be used instead */
 -static inline int __deprecated
 +static inline int __deprecated_call__
  rtdm_task_sleep_until(nanosecs_abs_t wakeup_time)
  {
  return __rtdm_task_sleep(wakeup_time, XN_REALTIME);
 
 
 But note that I'm still test-building...
 
 Jan
 
-- 
Philippe.



___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [PATCH] __deprecated not defined for Linux 2.4

2007-07-09 Thread Wolfgang Grandegger
Jan Kiszka wrote:
 Philippe Gerum wrote:
 On Mon, 2007-07-09 at 16:45 +0200, Wolfgang Grandegger wrote:
 Hello,

 the attached patch changes:

2007-07-09  Wolfgang Grandegger  [EMAIL PROTECTED]

   * include/asm-generic/wrappers.h: add  __deprecated for Linux 2.4.

 Merged, thanks.
 
 You are too fast for me - I was still test-building my approach!

Too fast? My i-Pipe patched Linux 2.4 kernel did simply not built ;-).

 Looks rather like I picked the wrong expression for marking
 rtdm_task_sleep_until deprecated. I would prefer to go for this variant
 and back Wolfgang's patch out again:
 
 --- include/rtdm/rtdm_driver.h  (Revision 2758)
 +++ include/rtdm/rtdm_driver.h  (Arbeitskopie)
 @@ -1009,7 +1009,7 @@ rtdm_task_sleep_abs(nanosecs_abs_t wakeu
  }
 
  /* rtdm_task_sleep_abs shall be used instead */
 -static inline int __deprecated
 +static inline int __deprecated_call__
  rtdm_task_sleep_until(nanosecs_abs_t wakeup_time)
  {
  return __rtdm_task_sleep(wakeup_time, XN_REALTIME);
 
 
 But note that I'm still test-building...

OK, __deprecated_call__ does not make trouble with 2.4.

Wolfgang.


___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [PATCH] __deprecated not defined for Linux 2.4

2007-07-09 Thread Jan Kiszka
Philippe Gerum wrote:
 On Mon, 2007-07-09 at 16:50 +0200, Jan Kiszka wrote:
 Philippe Gerum wrote:
 On Mon, 2007-07-09 at 16:45 +0200, Wolfgang Grandegger wrote:
 Hello,

 the attached patch changes:

2007-07-09  Wolfgang Grandegger  [EMAIL PROTECTED]

   * include/asm-generic/wrappers.h: add  __deprecated for Linux 2.4.

 Merged, thanks.
 You are too fast for me - I was still test-building my approach!

 Looks rather like I picked the wrong expression for marking
 rtdm_task_sleep_until deprecated. I would prefer to go for this variant
 and back Wolfgang's patch out again:
 
 __deprecated is going to be useful in backporting 2.6 stuff to 2.4. This
 is not only a RTDM issue.

No problem, as you like it.

Jan



signature.asc
Description: OpenPGP digital signature
___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [PATCH] __deprecated not defined for Linux 2.4

2007-07-09 Thread Philippe Gerum
On Mon, 2007-07-09 at 17:02 +0200, Jan Kiszka wrote:
 Philippe Gerum wrote:
  On Mon, 2007-07-09 at 16:50 +0200, Jan Kiszka wrote:
  Philippe Gerum wrote:
  On Mon, 2007-07-09 at 16:45 +0200, Wolfgang Grandegger wrote:
  Hello,
 
  the attached patch changes:
 
 2007-07-09  Wolfgang Grandegger  [EMAIL PROTECTED]
 
* include/asm-generic/wrappers.h: add  __deprecated for Linux 2.4.
 
  Merged, thanks.
  You are too fast for me - I was still test-building my approach!
 
  Looks rather like I picked the wrong expression for marking
  rtdm_task_sleep_until deprecated. I would prefer to go for this variant
  and back Wolfgang's patch out again:
  
  __deprecated is going to be useful in backporting 2.6 stuff to 2.4. This
  is not only a RTDM issue.
 
 No problem, as you like it.

Actually, I don't like wrappers that much, but, well...

-- 
Philippe.



___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [PATCH] __deprecated not defined for Linux 2.4

2007-07-09 Thread Jan Kiszka
Wolfgang Grandegger wrote:
 Jan Kiszka wrote:
 Philippe Gerum wrote:
 On Mon, 2007-07-09 at 16:45 +0200, Wolfgang Grandegger wrote:
 Hello,

 the attached patch changes:

2007-07-09  Wolfgang Grandegger  [EMAIL PROTECTED]

   * include/asm-generic/wrappers.h: add  __deprecated for Linux 2.4.

 Merged, thanks.

 You are too fast for me - I was still test-building my approach!
 
 Too fast? My i-Pipe patched Linux 2.4 kernel did simply not built ;-).

Yeah, and my 2.4 kernel was lying around in the corner, slightly dusty,
definitely not touched for several months.

Hell, the amount of regressions one (specifically I) can produce due to
all this config variants is amazing. What would be really nice is a
playground for patches, some build system you could post a patch series
and a set of .configs to and that will then simply try to generate
various kernels and the xenomai userland for various archs
automatically, reporting back any errors or warnings. Without going
through SVN with the changes every time. Just a dream.

Jan



signature.asc
Description: OpenPGP digital signature
___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [PATCH] __deprecated not defined for Linux 2.4

2007-07-09 Thread Wolfgang Grandegger
Philippe Gerum wrote:
 On Mon, 2007-07-09 at 17:02 +0200, Jan Kiszka wrote:
 Philippe Gerum wrote:
 On Mon, 2007-07-09 at 16:50 +0200, Jan Kiszka wrote:
 Philippe Gerum wrote:
 On Mon, 2007-07-09 at 16:45 +0200, Wolfgang Grandegger wrote:
 Hello,

 the attached patch changes:

2007-07-09  Wolfgang Grandegger  [EMAIL PROTECTED]

   * include/asm-generic/wrappers.h: add  __deprecated for Linux 2.4.

 Merged, thanks.
 You are too fast for me - I was still test-building my approach!

 Looks rather like I picked the wrong expression for marking
 rtdm_task_sleep_until deprecated. I would prefer to go for this variant
 and back Wolfgang's patch out again:
 __deprecated is going to be useful in backporting 2.6 stuff to 2.4. This
 is not only a RTDM issue.
 No problem, as you like it.
 
 Actually, I don't like wrappers that much, but, well...

I just realized, that __deprecated_call__ is _not_ defined in 2.4 but 
already in include/nucleus/compiler.h!

Wolfgang.



___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [PATCH] __deprecated not defined for Linux 2.4

2007-07-09 Thread Philippe Gerum
On Mon, 2007-07-09 at 17:14 +0200, Jan Kiszka wrote:
 Wolfgang Grandegger wrote:
  Jan Kiszka wrote:
  Philippe Gerum wrote:
  On Mon, 2007-07-09 at 16:45 +0200, Wolfgang Grandegger wrote:
  Hello,
 
  the attached patch changes:
 
 2007-07-09  Wolfgang Grandegger  [EMAIL PROTECTED]
 
* include/asm-generic/wrappers.h: add  __deprecated for Linux 2.4.
 
  Merged, thanks.
 
  You are too fast for me - I was still test-building my approach!
  
  Too fast? My i-Pipe patched Linux 2.4 kernel did simply not built ;-).
 
 Yeah, and my 2.4 kernel was lying around in the corner, slightly dusty,
 definitely not touched for several months.
 
 Hell, the amount of regressions one (specifically I) can produce due to
 all this config variants is amazing.

We all have a very well defined job in this project, and particularly:
- I do produce the original silly bugs.
- You are in charge of adding regressions to your past fixes of my bugs
- Dmitry is in charge of finding why our common code breaks.
- Wolfgang is in charge of making all the involved fixes compile
properly.
- Gilles is in charge of making the result run on bugous and/or sluggish
hardware.

Ok, all in all, my situation is the best one. Good.

  What would be really nice is a
 playground for patches, some build system you could post a patch series
 and a set of .configs to and that will then simply try to generate
 various kernels and the xenomai userland for various archs
 automatically, reporting back any errors or warnings. Without going
 through SVN with the changes every time. Just a dream.

Niklaus already built most of this infrastructure for us, only the
automated patching part seems to be missing so far: 
http://ngiger.dyndns.org/buildbot/

We would also have to alleviate the burden of his server by providing
some dedicated hardware to do that, though.

 
 Jan
 
-- 
Philippe.



___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [PATCH] __deprecated not defined for Linux 2.4

2007-07-09 Thread Philippe Gerum
On Mon, 2007-07-09 at 17:32 +0200, Wolfgang Grandegger wrote:
 Philippe Gerum wrote:
  On Mon, 2007-07-09 at 17:02 +0200, Jan Kiszka wrote:
  Philippe Gerum wrote:
  On Mon, 2007-07-09 at 16:50 +0200, Jan Kiszka wrote:
  Philippe Gerum wrote:
  On Mon, 2007-07-09 at 16:45 +0200, Wolfgang Grandegger wrote:
  Hello,
 
  the attached patch changes:
 
 2007-07-09  Wolfgang Grandegger  [EMAIL PROTECTED]
 
* include/asm-generic/wrappers.h: add  __deprecated for Linux 2.4.
 
  Merged, thanks.
  You are too fast for me - I was still test-building my approach!
 
  Looks rather like I picked the wrong expression for marking
  rtdm_task_sleep_until deprecated. I would prefer to go for this variant
  and back Wolfgang's patch out again:
  __deprecated is going to be useful in backporting 2.6 stuff to 2.4. This
  is not only a RTDM issue.
  No problem, as you like it.
  
  Actually, I don't like wrappers that much, but, well...
 
 I just realized, that __deprecated_call__ is _not_ defined in 2.4 but 
 already in include/nucleus/compiler.h!
 

Indeed. __deprecated should go there too btw. Will fix.

 Wolfgang.
 
 
-- 
Philippe.



___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


[Xenomai-core] Xenomai v2.3.2

2007-07-09 Thread Philippe Gerum
Here is the latest maintenance release for the v2.3.x branch.  Short
log follows:

[nucleus]
* Always defer release of TCB memory.
* Sanitize support for machine-dependent arithmetics.
* Fix root priority boosting with XENO_OPT_SCALABLE_SCHED.
* Fix /proc/xenomai/{sched, stat} locking in output loop.
* Fix lethal bug in SIGIO processing (SMP).
* Yet another interrupt locking fix.
* Handle RT capability group.
* Fix CPU affinity tracking (SMP).
* Fix 64bit portability issue.

[psos]
* Fix potentially unsafe dereference of task args in
  t_create() (user-space).
* Conformance fix for ERR_TATRNDEL and ERR_TATSDEL error
  conditions.

[native]
* Reschedule upon alarm deletion.
* Force T_PRIMARY into the mask returned by rt_task_set_mode().

[posix]
* mq: copy the priority of received messages back to
  user-space.
* clock: access TSC directly from user-space when support
  is available.

[rtai]
* Add support for rt_heap_open() and rt_heap_close().

[vrtx]
* Fix 64bit portability issue.

[can]
* Assorted fixes (e.g. PEAK PCI).

[16550A]
* Catch spurious baud rate.

[arm]
* Upgrade to kernel 2.6.20.
* Various updates for at91.

[blackfin]
* Upgrade to bf53x-R0701RC3-1.6-01 (2.6.19).
* Work around toolchain bug while reading TSC from user-space.

[powerpc]
* Sync with DENX's CVS for 2.4.25-ppc.

[i386]
* Upgrade I-pipe support (2.6.20-1.8 series).


See the ChangeLog for details.

http://download.gna.org/xenomai/stable/xenomai-2.3.2.tar.bz2

-- 
Philippe.



___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core