[lttng-dev] [PATCH lttng-tools] Fix: use "flush empty" ioctl for snapshots

2017-05-11 Thread Mathieu Desnoyers
When the flush empty ioctl is available, use it to produce an empty packet at the end of the snapshot, which ensures the stream intersection feature works. If this specific ioctl is not available, fallback on the "flush" ioctl, which does not produce empty packets. In that situation, there were t

Re: [lttng-dev] question about the RCU variant in CITRUS tree paper

2017-05-11 Thread Paul E. McKenney
On Thu, May 11, 2017 at 04:05:45PM -0400, Yuxin Ren wrote: > Hi, > > I am learning U-RCU now. > And I read paper Concurrent Updates with RCU: Search Tree as an Example > ( > https://pdfs.semanticscholar.org/73e4/cd29273cf9d98d35bc184330e694ba798987.pdf > ) > > In this paper, the authors present

[lttng-dev] question about the RCU variant in CITRUS tree paper

2017-05-11 Thread Yuxin Ren
Hi, I am learning U-RCU now. And I read paper Concurrent Updates with RCU: Search Tree as an Example ( https://pdfs.semanticscholar.org/73e4/cd29273cf9d98d35bc184330e694ba798987.pdf ) In this paper, the authors present a variant RCU implementation, and argued their new RCU has better performance

[lttng-dev] [PATCH lttng-tools 3/3] Fix: lttng-consumerd: cpu hotplug: send "streams_sent" command

2017-05-11 Thread Mathieu Desnoyers
When creating a new channel, the streams being sent to the relayd are kept invisible to the live client until the "streams_sent" command is received. This ensures the client does not see a partial stream set. This "streams_sent" command needs to be sent on CPU hotplug too, otherwise the live clien

[lttng-dev] [PATCH lttng-tools 1/3] Fix: lttng-sessiond: cpu hotplug stream number mismatch

2017-05-11 Thread Mathieu Desnoyers
The counter should be always increasing (kept in the channel), rather than local to the function. This causes cpu hotplug handling to disregard further streams that should be added to the consumer output on CPU hotplug. Signed-off-by: Mathieu Desnoyers --- src/bin/lttng-sessiond/kernel.c | 14 ++

[lttng-dev] [PATCH lttng-tools 2/3] Fix: lttng-sessiond: cpu hotplug: send channel to consumer only once

2017-05-11 Thread Mathieu Desnoyers
On CPU hotplug, we currently send a duplicate of the channel key, which allocates its own object (duplicated) within the consumerd. We want the newly added stream to map to the pre-existing channel key, so don't send the channel duplicate. Signed-off-by: Mathieu Desnoyers --- src/bin/lttng-sessi

Re: [lttng-dev] [PATCH] Test: Replace test relying pselect6(2) man page error

2017-05-11 Thread Francis Deslauriers
Sorry for the missing [PATCH lttng-tools] 2017-05-11 15:36 GMT-04:00 Francis Deslauriers < francis.deslauri...@efficios.com>: > The `pselect_fd_too_big` test is checking for the case where the `nfds` > is larger than the number of open files allowed for this process > (RLIMIT_NOFILE). According t

[lttng-dev] [PATCH] Test: Replace test relying pselect6(2) man page error

2017-05-11 Thread Francis Deslauriers
The `pselect_fd_too_big` test is checking for the case where the `nfds` is larger than the number of open files allowed for this process (RLIMIT_NOFILE). According to the man page, if `nfds` > RLIMIT_NOFILE is evaluate to true the pselect6 syscall should return EINVAL. In fact, the Linux implement

[lttng-dev] [PATCH lttng-tools] Introduce monitor_timer_interval to session configuration schema

2017-05-11 Thread Jonathan Rajotte
Session configuration schema version is bumped to 2.10 Fixes #1099 Signed-off-by: Jonathan Rajotte --- src/bin/lttng-sessiond/save.c | 27 src/common/config/session-config.c | 52 +- src/common/config/session.xsd | 3 ++- 3 fil

Re: [lttng-dev] [PATCH lttng-tools v2] Fix: COMPAT_EPOLL_PROC_PATH is available from Linux 2.6.28

2017-05-11 Thread Jérémie Galarneau
Merged in master, stable-2.10, stable-2.9, and stable-2.8. Thanks! Jérémie On 9 May 2017 at 15:46, Jonathan Rajotte wrote: > v2: Typo in commit message "per see" -> "per se" > > Failing on opening [1] is not an error per se. [1] was > introduced in Linux 2.6.28 but epoll is available since > 2.5