Re: [Xenomai] [RFC PATCH 0/10] Support ftrace on ipipe kernels

2012-12-21 Thread Wolfgang Mauerer
On 21/12/12 17:31, Philippe Gerum wrote: On 12/21/2012 02:26 PM, Wolfgang Mauerer wrote: Hi Gilles, Jan, here's a proposal to make ipipe compatible with ftrace that does not require global modifications to the preemption system, but makes do with local changes. The approach should be ea

[Xenomai] [PATCH 07/10] ipipe: Add mechanism to allow preemption calls from non-root context

2012-12-21 Thread Wolfgang Mauerer
The ipipe_safe_preempt_xyz() functions provide the same semantics as the preempt_xyz() counterparts, but can be safely called from non-root context. Signed-off-by: Wolfgang Mauerer --- include/linux/ipipe_foreign_stack.h |9 ++ kernel/ipipe/core.c | 51

[Xenomai] [PATCH 10/10] ipipe: Make ftrace compatible with ipipe

2012-12-21 Thread Wolfgang Mauerer
. Signed-off-by: Wolfgang Mauerer --- kernel/trace/trace.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 5aec220..50d1e9d 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -12,6 +12,7 @@ #include #include

[Xenomai] [PATCH 01/10] ipipe: Add root domain guard to preempt_schedule

2012-12-21 Thread Wolfgang Mauerer
on preempt_schedule entry. Signed-off-by: Jan Kiszka Signed-off-by: Wolfgang Mauerer --- kernel/sched/core.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index ec38567..9fdcc22 100644 --- a/kernel/sched/core.c +++ b/kernel

[Xenomai] [PATCH 08/10] ipipe: Introduce preemption call replacement mechanism

2012-12-21 Thread Wolfgang Mauerer
Including replaces all calls to preemption functions with calls to alternatives that are safe in non-root context. Signed-off-by: Wolfgang Mauerer --- include/linux/ipipe_switch_preempt.h | 31 +++ 1 files changed, 31 insertions(+), 0 deletions(-) create mode

[Xenomai] [PATCH 04/10] Harden trace_vbprintk for non-root use

2012-12-21 Thread Wolfgang Mauerer
From: Jan Kiszka We depend on hard-irqs being disabled to push trace_printk data safely to ftrace. Signed-off-by: Wolfgang Mauerer Signed-off-by: Jan Kiszka --- kernel/trace/trace.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/trace/trace.c b/kernel

[Xenomai] [PATCH 06/10] ipipe: safe thread_info access from non-root context

2012-12-21 Thread Wolfgang Mauerer
ns to access foreign stacks) so that the mechanism can be used in contexts where not the full ipipe API is required. Signed-off-by: Wolfgang Mauerer --- include/linux/ipipe.h | 32 +-- include/linux/ipipe_foreign_stack.h | 61 +++ k

[Xenomai] [PATCH 09/10] ipipe: Fix CONFIG_PREEMPT build

2012-12-21 Thread Wolfgang Mauerer
API change: ipipe_root_domain_p -> ipipe_root_p Signed-off-by: Wolfgang Mauerer --- kernel/sched/core.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 9fdcc22..d8e0e9e 100644 --- a/kernel/sched/core.c +++ b/kernel/sc

[Xenomai] [PATCH 02/10] ipipe: Harden clocks used by ftrace and perf

2012-12-21 Thread Wolfgang Mauerer
From: Jan Kiszka Convert local_irq_save/restore into hw variates in those cpu/sched_clock paths that are used by ftrace and perf. We don't want to trace them to reduce the overhead. Signed-off-by: Jan Kiszka Signed-off-by: Wolfgang Mauerer --- kernel/sched/clock.c |6 -- k

[Xenomai] [PATCH 05/10] ipipe: Remove superfluous include file in ipipe.h

2012-12-21 Thread Wolfgang Mauerer
Signed-off-by: Wolfgang Mauerer --- include/linux/ipipe.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/include/linux/ipipe.h b/include/linux/ipipe.h index 11fc093..bcd5d41 100644 --- a/include/linux/ipipe.h +++ b/include/linux/ipipe.h @@ -22,7 +22,6 @@ #ifndef

[Xenomai] [PATCH 03/10] ipipe: Harden ftrace function and function-graph tracer

2012-12-21 Thread Wolfgang Mauerer
From: Jan Kiszka Again no tracing of local_irq_disable/enable_hw for the sake of reduced overhead. Signed-off-by: Jan Kiszka Signed-off-by: Wolfgang Mauerer --- kernel/trace/trace_functions.c |8 kernel/trace/trace_functions_graph.c |8 2 files changed, 8

[Xenomai] [RFC PATCH 0/10] Support ftrace on ipipe kernels

2012-12-21 Thread Wolfgang Mauerer
Harden trace_vbprintk for non-root use Wolfgang Mauerer (6): ipipe: Remove superfluous include file in ipipe.h ipipe: safe thread_info access from non-root context ipipe: Add mechanism to allow preemption calls from non-root context ipipe: Introduce preemption call replacement

Re: [Xenomai] core-3.5 for x86

2012-12-21 Thread Wolfgang Mauerer
On 21/12/12 01:28, Gilles Chanteperdrix wrote: On 12/20/2012 05:34 PM, Wolfgang Mauerer wrote: On 20/12/12 17:25, Gilles Chanteperdrix wrote: On 12/20/2012 05:22 PM, Wolfgang Mauerer wrote: On 19/12/12 22:06, Gilles Chanteperdrix wrote: On 12/18/2012 03:58 PM, Wolfgang Mauerer wrote: On

Re: [Xenomai] core-3.5 for x86

2012-12-20 Thread Wolfgang Mauerer
On 20/12/12 17:25, Gilles Chanteperdrix wrote: On 12/20/2012 05:22 PM, Wolfgang Mauerer wrote: On 19/12/12 22:06, Gilles Chanteperdrix wrote: On 12/18/2012 03:58 PM, Wolfgang Mauerer wrote: On 18/12/12 15:47, Gilles Chanteperdrix wrote: On 12/18/2012 12:23 PM, Jan Kiszka wrote: On 2012-12

Re: [Xenomai] core-3.5 for x86

2012-12-20 Thread Wolfgang Mauerer
On 19/12/12 22:06, Gilles Chanteperdrix wrote: On 12/18/2012 03:58 PM, Wolfgang Mauerer wrote: On 18/12/12 15:47, Gilles Chanteperdrix wrote: On 12/18/2012 12:23 PM, Jan Kiszka wrote: On 2012-12-15 20:16, Gilles Chanteperdrix wrote: On 12/15/2012 11:03 PM, Wolfgang Mauerer wrote: Hi

Re: [Xenomai] core-3.5 for x86

2012-12-18 Thread Wolfgang Mauerer
On 18/12/12 15:47, Gilles Chanteperdrix wrote: On 12/18/2012 12:23 PM, Jan Kiszka wrote: On 2012-12-15 20:16, Gilles Chanteperdrix wrote: On 12/15/2012 11:03 PM, Wolfgang Mauerer wrote: Hi Gilles, On 15/12/2012 22:24, Gilles Chanteperdrix wrote: I see some (recent) activity on this git

Re: [Xenomai] core-3.5 for x86

2012-12-17 Thread Wolfgang Mauerer
On 15/12/12 23:16, Gilles Chanteperdrix wrote: > On 12/15/2012 11:03 PM, Wolfgang Mauerer wrote: >> On 15/12/2012 22:24, Gilles Chanteperdrix wrote: >>> I see some (recent) activity on this git repository: >>> https://github.com/siemens/ipipe/commits/core-3.5_for-upstre

Re: [Xenomai] Question about Xenomai, Posix and Java

2012-12-15 Thread Wolfgang Mauerer
On 15/12/2012 12:59, Gilles Chanteperdrix wrote: > On 12/13/2012 05:05 PM, Héctor Vargas wrote: > >> Hi everyone, >> >> I want to create an application where a control task (real time control >> of a DC motor) developed in Xenomai (posix skin) can be controlled from >> a Java interface (GUI). Th

Re: [Xenomai] core-3.5 for x86

2012-12-15 Thread Wolfgang Mauerer
Hi Gilles, On 15/12/2012 22:24, Gilles Chanteperdrix wrote: > I see some (recent) activity on this git repository: > https://github.com/siemens/ipipe/commits/core-3.5_for-upstream > > In what state is this branch, can I pull from it? please don't pull yet, I need to port a few more patches forwa

Re: [Xenomai] [PATCH 1/2] Refactor ipipe_select_timers

2012-09-28 Thread Wolfgang Mauerer
On 27/09/12 20:33, Gilles Chanteperdrix wrote: > On 09/27/2012 02:47 PM, Wolfgang Mauerer wrote: > >> On 27/09/12 14:04, Gilles Chanteperdrix wrote: >>> On 09/27/2012 10:28 AM, Wolfgang Mauerer wrote: >>>> On 26/09/12 23:28, Gilles Chanteperdrix wrote: >&

Re: [Xenomai] [PATCH 1/2] Refactor ipipe_select_timers

2012-09-27 Thread Wolfgang Mauerer
On 27/09/12 14:54, Gilles Chanteperdrix wrote: > On 09/27/2012 02:47 PM, Wolfgang Mauerer wrote: >> On 27/09/12 14:04, Gilles Chanteperdrix wrote: >>> On 09/27/2012 10:28 AM, Wolfgang Mauerer wrote: >>>> On 26/09/12 23:28, Gilles Chanteperdrix wrote: >>>>

Re: [Xenomai] [PATCH 1/2] Refactor ipipe_select_timers

2012-09-27 Thread Wolfgang Mauerer
On 27/09/12 14:04, Gilles Chanteperdrix wrote: > On 09/27/2012 10:28 AM, Wolfgang Mauerer wrote: >> On 26/09/12 23:28, Gilles Chanteperdrix wrote: >>> On 09/26/2012 03:16 PM, Wolfgang Mauerer wrote: (...) >>> Talking about readability, I find a goto with a clear label

Re: [Xenomai] [PATCH 1/2] Refactor ipipe_select_timers

2012-09-27 Thread Wolfgang Mauerer
On 26/09/12 23:28, Gilles Chanteperdrix wrote: > On 09/26/2012 03:16 PM, Wolfgang Mauerer wrote: > >> Make the control flow more readable. No functional changes. >> >> Signed-off-by: Wolfgang Mauerer >> --- &

[Xenomai] [PATCH 1/2] Refactor ipipe_select_timers

2012-09-26 Thread Wolfgang Mauerer
Make the control flow more readable. No functional changes. Signed-off-by: Wolfgang Mauerer --- kernel/ipipe/timer.c | 82 +++-- 1 files changed, 52 insertions(+), 30 deletions(-) diff --git a/kernel/ipipe/timer.c b/kernel/ipipe/timer.c index

[Xenomai] [PATCH 2/2] Register high-res timer irq for non-ipipe timers if necessary

2012-09-26 Thread Wolfgang Mauerer
If a CPU that is not supported by ipipe, but used by Linux shares an IRQ with a timer utilised by ipipe, it must be possible to forward IRQs received on behalf of the Linux CPU. Based on a patch by Gilles Chanteperdrix. Signed-off-by: Wolfgang Mauerer --- kernel/ipipe/timer.c | 36

Re: [Xenomai] [GIT PULL] core-5 for x86

2012-09-26 Thread Wolfgang Mauerer
On 25/09/12 16:57, Gilles Chanteperdrix wrote: > On 09/25/2012 04:45 PM, Wolfgang Mauerer wrote: >> +if (!cpumask_test_cpu(cpu, mask) >> +&& t->irq == per_cpu(ipipe_percpu.hrtimer_irq, 0)) { >> +

Re: [Xenomai] [GIT PULL] core-5 for x86

2012-09-25 Thread Wolfgang Mauerer
On 25/09/12 16:57, Gilles Chanteperdrix wrote: > On 09/25/2012 04:45 PM, Wolfgang Mauerer wrote: >> +if (!cpumask_test_cpu(cpu, mask) >> +&& t->irq == per_cpu(ipipe_percpu.hrtimer_irq, 0)) { >> +

Re: [Xenomai] [GIT PULL] core-5 for x86

2012-09-25 Thread Wolfgang Mauerer
On 20/09/12 18:11, Gilles Chanteperdrix wrote: > On 09/19/2012 02:15 PM, Wolfgang Mauerer wrote: >> On 18/09/12 21:36, Gilles Chanteperdrix wrote: >>> On 09/18/2012 05:27 PM, Wolfgang Mauerer wrote: >>> Ok. We have a currently pending issue on x86 which you should b

[Xenomai] [PATCH] hal: Fix cpu bitmap handling

2012-09-25 Thread Wolfgang Mauerer
Don't left-shift further than the bit-width of the shifted type allows. In this particular constellation, this leads to selecting CPUs that are not specified in supported_cpus_arg on systems with more than 32 cores. Signed-off-by: Wolfgang Mauerer --- ksrc/arch/generic/hal.c |2 +-

Re: [Xenomai] [GIT PULL] core-5 for x86

2012-09-19 Thread Wolfgang Mauerer
On 18/09/12 21:36, Gilles Chanteperdrix wrote: > On 09/18/2012 05:27 PM, Wolfgang Mauerer wrote: > >> On 18/09/12 16:25, Gilles Chanteperdrix wrote: >>> On 09/18/2012 04:11 PM, Wolfgang Mauerer wrote: >>>> Dear all, >>>> >>>> here'

Re: [Xenomai] [GIT PULL] core-5 for x86

2012-09-18 Thread Wolfgang Mauerer
On 18/09/12 16:25, Gilles Chanteperdrix wrote: > On 09/18/2012 04:11 PM, Wolfgang Mauerer wrote: >> Dear all, >> >> here's a rebase of the x86-specific bits of core-4 to core-5. I've >> included all x86 specific changes that are not yet in core-5, and >>

[Xenomai] [GIT PULL] core-5 for x86

2012-09-18 Thread Wolfgang Mauerer
x IOAPIC with CONFIG_IRQ_REMAP ipipe/x86: fix compilation for AMD processors Philippe Gerum (1): x86/ipipe: ipipe_head_switch_mm -> ipipe_switch_mm_head Wolfgang Mauerer (5): ipipe-core4-x86 applied to core-5 x86/ipipe: Make io_apic_level_ack_pending available for ipipe

Re: [Xenomai] [PATCH 3/3] Fix IRQs-off-tracer for x86_64

2012-09-13 Thread Wolfgang Mauerer
On 13/09/12 15:26, Gilles Chanteperdrix wrote: > On 09/13/2012 02:58 PM, Wolfgang Mauerer wrote: >> On 13/09/12 11:40, Gilles Chanteperdrix wrote: >>> On 09/13/2012 10:46 AM, Wolfgang Mauerer wrote: >>>> On 13/09/12 08:43, Gilles Chanteperdrix wrote: >> >&

Re: [Xenomai] [PATCH 3/3] Fix IRQs-off-tracer for x86_64

2012-09-13 Thread Wolfgang Mauerer
On 13/09/12 11:40, Gilles Chanteperdrix wrote: > On 09/13/2012 10:46 AM, Wolfgang Mauerer wrote: >> On 13/09/12 08:43, Gilles Chanteperdrix wrote: ... (some code with varying amounts of pops and pushed)... >> that fixes the bug, too -- thanks. However, I deliberately spen

Re: [Xenomai] [PATCH 3/3] Fix IRQs-off-tracer for x86_64

2012-09-13 Thread Wolfgang Mauerer
On 13/09/12 08:43, Gilles Chanteperdrix wrote: > On 09/12/2012 07:00 PM, Wolfgang Mauerer wrote: > >> Earlier kernels abused the frame pointer to store the >> old stack pointer in SAVE_ARGS_IRQ. This behaviour was >> changed in upstream commit a2bbe75089d, which breaks

[Xenomai] [PATCH 3/3] Fix IRQs-off-tracer for x86_64

2012-09-12 Thread Wolfgang Mauerer
base pointer stored in %rsi. Signed-off-by: Wolfgang Mauerer Tested-by: Gernot Hillier --- arch/x86/kernel/entry_64.S |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S index b523908..693ad08 100644 --- a/arch/x86

[Xenomai] [PATCH 1/3] ipipe: Remove superfluous symbol export of irq_to_desc

2012-09-12 Thread Wolfgang Mauerer
It's exported in mainline from 3911ff30f5 onwards. Signed-off-by: Wolfgang Mauerer --- arch/x86/kernel/ipipe.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/ipipe.c b/arch/x86/kernel/ipipe.c index 30515a2..1a56b5f 100644 --- a/arch/x86/kernel/ip

[Xenomai] [PATCH 2/3] ipipe, x86: Introduce hard_irqs_disabled_flags

2012-09-12 Thread Wolfgang Mauerer
The function is required by the ipipe tracer. Signed-off-by: Wolfgang Mauerer --- arch/x86/include/asm/irqflags.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/x86/include/asm/irqflags.h b/arch/x86/include/asm/irqflags.h index cb58e32..65567b6 100644 --- a/arch

[Xenomai] [PULL, PATCH 0/3] ipipe tracer fixes

2012-09-12 Thread Wolfgang Mauerer
timers (2012-09-03 11:15:35 +0200) are available in the git repository at: https://github.com/siemens/ipipe.git for-upstream Wolfgang Mauerer (3): ipipe: Remove superfluous symbol export of irq_to_desc ipipe,x86: Introduce hard_irqs_disabled_flags Fix IRQs-off-tracer for