[Xenomai-core] Xenomai integration to LTTng and LTTV

2006-06-13 Thread Jean-Olivier Villemure
Hello, I'm currently working on my diploma thesis which will finish in December 2006. The first goal of my project is to integrate Xenomai events to LTTng, a task quite simple since creating new events in LTTng is not very difficult. The second goal is to create a new module in the viewer,

Re: [Xenomai-core] Xenomai integration to LTTng and LTTV

2006-06-13 Thread Jan Kiszka
Jean-Olivier Villemure wrote: Hello, I'm currently working on my diploma thesis which will finish in December 2006. The first goal of my project is to integrate Xenomai events to LTTng, a task quite simple since creating new events in LTTng is not very difficult. Does this mean we will see

Re: [Xenomai-core] ns vs. tsc as internal timer base

2006-06-13 Thread Philippe Gerum
Jan Kiszka wrote: Hi, between some football half-times of the last days ;), I played a bit with a hand-optimised xnarch_tsc_to_ns() for x86. Using scaled math, I achieved between 3 (P-I 133 MHz) to 4 times (P-M 1.3 GHz) faster conversions than with the current variant. While this optimisation

Re: [Xenomai-core] ns vs. tsc as internal timer base

2006-06-13 Thread Jan Kiszka
Philippe Gerum wrote: Jan Kiszka wrote: Hi, between some football half-times of the last days ;), I played a bit with a hand-optimised xnarch_tsc_to_ns() for x86. Using scaled math, I achieved between 3 (P-I 133 MHz) to 4 times (P-M 1.3 GHz) faster conversions than with the current variant.

Re: [Xenomai-core] ns vs. tsc as internal timer base

2006-06-13 Thread Anders Blomdell
Jan Kiszka wrote: Hi, To avoid loosing the optimisation again in ns_to_tsc, I thought about basing the whole internal timer arithmetics on nanoseconds instead of TSCs as it is now. Good idea, makes it simpler to adopt to laptop frequency scaling and deep ACPI sleep, i.e. sync Xenomai time to

Re: [Xenomai-core] ns vs. tsc as internal timer base

2006-06-13 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Hi, between some football half-times of the last days ;), I played a bit with a hand-optimised xnarch_tsc_to_ns() for x86. Using scaled math, I achieved between 3 (P-I 133 MHz) to 4 times (P-M 1.3 GHz) faster conversions than with the current variant. While this

Re: [Xenomai-core] ns vs. tsc as internal timer base

2006-06-13 Thread Philippe Gerum
Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Hi, between some football half-times of the last days ;), I played a bit with a hand-optimised xnarch_tsc_to_ns() for x86. Using scaled math, I achieved between 3 (P-I 133 MHz) to 4 times (P-M 1.3 GHz) faster conversions than with

Re: [Xenomai-core] Xenomai integration to LTTng and LTTV

2006-06-13 Thread Philippe Gerum
Jean-Olivier Villemure wrote: Hello, I'm currently working on my diploma thesis which will finish in December 2006. The first goal of my project is to integrate Xenomai events to LTTng, a task quite simple since creating new events in LTTng is not very difficult. The second goal is to create

Re: [Xenomai-core] ns vs. tsc as internal timer base

2006-06-13 Thread Philippe Gerum
Gilles Chanteperdrix wrote: Philippe Gerum wrote: static inline unsigned long long ns_2_cycles(unsigned long long ns) { return ns * ns2cyc_scale NS2CYC_SCALE_FACTOR; This multiplication is 64 bits * 32 bits, the intermediate result may need more than 64 bits, so you should compute

Re: [Xenomai-core] ns vs. tsc as internal timer base

2006-06-13 Thread Jan Kiszka
Philippe Gerum wrote: Jan Kiszka wrote: Philippe Gerum wrote: from i386/kernel/timers/timer_tsc.c. And indeed, I had x 20 performance improvements in some cases. Oops, that sounds like a bit too extreme optimisations. Is the original version varying that much? I didn't observe this. Here

Re: [Xenomai-core] ns vs. tsc as internal timer base

2006-06-13 Thread Gilles Chanteperdrix
Philippe Gerum wrote: Gilles Chanteperdrix wrote: Philippe Gerum wrote: static inline unsigned long long ns_2_cycles(unsigned long long ns) { return ns * ns2cyc_scale NS2CYC_SCALE_FACTOR; This multiplication is 64 bits * 32 bits, the intermediate result may need

Re: [Xenomai-core] ns vs. tsc as internal timer base

2006-06-13 Thread Philippe Gerum
Gilles Chanteperdrix wrote: Philippe Gerum wrote: Gilles Chanteperdrix wrote: Philippe Gerum wrote: static inline unsigned long long ns_2_cycles(unsigned long long ns) { return ns * ns2cyc_scale NS2CYC_SCALE_FACTOR; This multiplication is 64 bits * 32 bits, the

Re: [Xenomai-core] ns vs. tsc as internal timer base

2006-06-13 Thread Philippe Gerum
Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Philippe Gerum wrote: from i386/kernel/timers/timer_tsc.c. And indeed, I had x 20 performance improvements in some cases. Oops, that sounds like a bit too extreme optimisations. Is the original version varying that much? I didn't

[Xenomai-core] public roadmap/todo list (was: ns vs. tsc as internal timer base)

2006-06-13 Thread Jan Kiszka
Philippe Gerum wrote: Jan Kiszka wrote: :) We should coordinate better. The answer is published roadmap + todo list, but this requires some organisation we have not been able to setup yet. Indeed. I think this is first of all a technical issue: lowering the convenience barrier for

Re: [Xenomai-core] ns vs. tsc as internal timer base

2006-06-13 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Philippe Gerum wrote: Here is likely why we have different levels of accuracy and performance, firstly my version is bluntly based on the khz freq, secondly it calculates the other way around, i.e. ns2tsc, so that tsc are keep in the inner code, but more

[Xenomai-core] duplicate div94by32 macros?

2006-06-13 Thread Jan Kiszka
Hi, __rthal_generic_div96by32 from asm-generic/hal.h looks similar to __rthal_div96by32 from asm-i386/hal.h. Shouldn't this get cleaned up? Jan signature.asc Description: OpenPGP digital signature ___ Xenomai-core mailing list Xenomai-core@gna.org

Re: [Xenomai-core] ns vs. tsc as internal timer base

2006-06-13 Thread Philippe Gerum
Jan Kiszka wrote: Philippe Gerum wrote: Here is likely why we have different levels of accuracy and performance, firstly my version is bluntly based on the khz freq, secondly it calculates the other way around, i.e. ns2tsc, so that tsc are keep in the inner code, but more efficiently converted

Re: [Xenomai-core] ns vs. tsc as internal timer base

2006-06-13 Thread Gilles Chanteperdrix
Philippe Gerum wrote: Redone the check here on a Centrino 1.6Mhz, and still have roughly x20 improvement (a bit better actually). I'm using Debian/sarge gcc 3.3.5. I think I remember that Pentium M has a much shorter mull instruction than other processors of the family. --

Re: [Xenomai-core] ns vs. tsc as internal timer base

2006-06-13 Thread Philippe Gerum
Gilles Chanteperdrix wrote: Philippe Gerum wrote: Redone the check here on a Centrino 1.6Mhz, and still have roughly x20 improvement (a bit better actually). I'm using Debian/sarge gcc 3.3.5. I think I remember that Pentium M has a much shorter mull instruction than other processors of

[Xenomai-core] Breakage in trunk

2006-06-13 Thread Niklaus Giger
Hi I noticed that, eg. http://ngiger.dyndns.org/buildbot/hcu3/builds/80/step-mk_xeno/0 there are build failures. It tells me Making install in vrtx make[4]: Entering directory `/mnt/data.ng/buildslave/buildbot/quick-hcu3/build/hcu/src/skins/vrtx' make[4]: *** No rule to make target `event.c',

Re: [Xenomai-core] Breakage in trunk

2006-06-13 Thread Philippe Gerum
Niklaus Giger wrote: Hi I noticed that, eg. http://ngiger.dyndns.org/buildbot/hcu3/builds/80/step-mk_xeno/0 there are build failures. It tells me Making install in vrtx make[4]: Entering directory `/mnt/data.ng/buildslave/buildbot/quick-hcu3/build/hcu/src/skins/vrtx' make[4]: *** No rule to