Re: [lttng-dev] Using lttng-ust with xenomai

2019-11-22 Thread Norbert Lange
> >> liburcu has configure options allow forcing the usage of this syscall > >> but not disabling it, which likely is necessary for Xenomai. > > > > I suspect what you'd need there is a way to allow a process to tell > > liburcu-bp (or liburcu) to always use the fall-back mechan

Re: [lttng-dev] Using lttng-ust with xenomai

2019-11-22 Thread Norbert Lange
> >> >> > Another thing to make sure is to have a glibc and Linux kernel which > >> >> > perform > >> >> > clock_gettime() as vDSO for the monotonic clock, because you don't > >> >> > want a > >> >> > system call there. If that does not work for you, you can > >> >> > alternatively > >> >> > imp

Re: [lttng-dev] Using lttng-ust with xenomai

2019-11-22 Thread Mathieu Desnoyers
- On Nov 22, 2019, at 2:57 PM, Norbert Lange nolang...@gmail.com wrote: > Am Fr., 22. Nov. 2019 um 20:00 Uhr schrieb Mathieu Desnoyers > : >> >> - On Nov 22, 2019, at 12:44 PM, Norbert Lange nolang...@gmail.com wrote: >> >> > Am Fr., 22. Nov. 2019 um 16:52 Uhr schrieb Jan Kiszka >> > : >>

Re: [lttng-dev] Using lttng-ust with xenomai

2019-11-22 Thread Norbert Lange
Am Fr., 22. Nov. 2019 um 20:03 Uhr schrieb Mathieu Desnoyers : > > - On Nov 22, 2019, at 12:55 PM, Norbert Lange nolang...@gmail.com wrote: > > >> > >> LTTng-UST prepares the ring buffers from lttng-ust's "listener" thread, > >> which is injected into the process by a lttng-ust constructor. > >

Re: [lttng-dev] Using lttng-ust with xenomai

2019-11-22 Thread Norbert Lange
Am Fr., 22. Nov. 2019 um 20:00 Uhr schrieb Mathieu Desnoyers : > > - On Nov 22, 2019, at 12:44 PM, Norbert Lange nolang...@gmail.com wrote: > > > Am Fr., 22. Nov. 2019 um 16:52 Uhr schrieb Jan Kiszka > > : > >> > >> On 22.11.19 16:42, Mathieu Desnoyers wrote: > > [...] > > > > > > >> > > >> >

Re: [lttng-dev] Using lttng-ust with xenomai

2019-11-22 Thread Mathieu Desnoyers
- On Nov 22, 2019, at 12:55 PM, Norbert Lange nolang...@gmail.com wrote: >> >> LTTng-UST prepares the ring buffers from lttng-ust's "listener" thread, >> which is injected into the process by a lttng-ust constructor. >> >> What you will care about is how the tracepoint call-site (within a Xeno

Re: [lttng-dev] Using lttng-ust with xenomai

2019-11-22 Thread Mathieu Desnoyers
- On Nov 22, 2019, at 12:44 PM, Norbert Lange nolang...@gmail.com wrote: > Am Fr., 22. Nov. 2019 um 16:52 Uhr schrieb Jan Kiszka > : >> >> On 22.11.19 16:42, Mathieu Desnoyers wrote: [...] > > >> > >> > That's indeed a good point. I suspect membarrier may not send any IPI >> > to Xenomai

Re: [lttng-dev] Using lttng-ust with xenomai

2019-11-22 Thread Jan Kiszka
On 22.11.19 19:01, Norbert Lange wrote: Am Fr., 22. Nov. 2019 um 18:52 Uhr schrieb Jan Kiszka : On 22.11.19 18:44, Norbert Lange wrote: Am Fr., 22. Nov. 2019 um 16:52 Uhr schrieb Jan Kiszka : On 22.11.19 16:42, Mathieu Desnoyers wrote: - On Nov 22, 2019, at 4:14 AM, Norbert Lange nolang

Re: [lttng-dev] Using lttng-ust with xenomai

2019-11-22 Thread Norbert Lange
Am Fr., 22. Nov. 2019 um 18:52 Uhr schrieb Jan Kiszka : > > On 22.11.19 18:44, Norbert Lange wrote: > > Am Fr., 22. Nov. 2019 um 16:52 Uhr schrieb Jan Kiszka > > : > >> > >> On 22.11.19 16:42, Mathieu Desnoyers wrote: > >>> - On Nov 22, 2019, at 4:14 AM, Norbert Lange nolang...@gmail.com > >>

Re: [lttng-dev] Using lttng-ust with xenomai

2019-11-22 Thread Norbert Lange
> > LTTng-UST prepares the ring buffers from lttng-ust's "listener" thread, > which is injected into the process by a lttng-ust constructor. > > What you will care about is how the tracepoint call-site (within a Xenomai > thread) interacts with the ring buffers. > > The "default" setup for lttng-us

Re: [lttng-dev] Using lttng-ust with xenomai

2019-11-22 Thread Jan Kiszka
On 22.11.19 18:44, Norbert Lange wrote: Am Fr., 22. Nov. 2019 um 16:52 Uhr schrieb Jan Kiszka : On 22.11.19 16:42, Mathieu Desnoyers wrote: - On Nov 22, 2019, at 4:14 AM, Norbert Lange nolang...@gmail.com wrote: Hello, I already started a thread over at xenomai.org [1], but I guess its

Re: [lttng-dev] Using lttng-ust with xenomai

2019-11-22 Thread Norbert Lange
Am Fr., 22. Nov. 2019 um 16:52 Uhr schrieb Jan Kiszka : > > On 22.11.19 16:42, Mathieu Desnoyers wrote: > > - On Nov 22, 2019, at 4:14 AM, Norbert Lange nolang...@gmail.com wrote: > > > >> Hello, > >> > >> I already started a thread over at xenomai.org [1], but I guess its > >> more efficient t

Re: [lttng-dev] Using lttng-ust with xenomai

2019-11-22 Thread Jan Kiszka
On 22.11.19 18:01, Mathieu Desnoyers wrote: ## membarrier syscall I haven't got an explanation yet, but I believe this syscall does nothing to xenomai threads (each has a shadow linux thread, that is *idle* when the xenomai thread is active). That's indeed a good point. I suspect membarrier m

Re: [lttng-dev] Using lttng-ust with xenomai

2019-11-22 Thread Mathieu Desnoyers
- On Nov 22, 2019, at 10:52 AM, Jan Kiszka jan.kis...@siemens.com wrote: > On 22.11.19 16:42, Mathieu Desnoyers wrote: >> - On Nov 22, 2019, at 4:14 AM, Norbert Lange nolang...@gmail.com wrote: >> >>> Hello, >>> >>> I already started a thread over at xenomai.org [1], but I guess its >>> m

Re: [lttng-dev] Using lttng-ust with xenomai

2019-11-22 Thread Jan Kiszka
On 22.11.19 16:42, Mathieu Desnoyers wrote: - On Nov 22, 2019, at 4:14 AM, Norbert Lange nolang...@gmail.com wrote: Hello, I already started a thread over at xenomai.org [1], but I guess its more efficient to ask here aswell. The basic concept is that xenomai thread run *below* Linux (thre

Re: [lttng-dev] Using lttng-ust with xenomai

2019-11-22 Thread Mathieu Desnoyers
- On Nov 22, 2019, at 4:14 AM, Norbert Lange nolang...@gmail.com wrote: > Hello, > > I already started a thread over at xenomai.org [1], but I guess its > more efficient to ask here aswell. > The basic concept is that xenomai thread run *below* Linux (threads > and irg handlers), which means

[lttng-dev] Using lttng-ust with xenomai

2019-11-22 Thread Norbert Lange
Hello, I already started a thread over at xenomai.org [1], but I guess its more efficient to ask here aswell. The basic concept is that xenomai thread run *below* Linux (threads and irg handlers), which means that xenomai threads must not use any linux services like the futex syscall or socket com