Re: [lttng-dev] [RELEASE] Userspace RCU 0.7.6

2013-01-10 Thread Mathieu Desnoyers
* Stephen Hemminger (shemmin...@vyatta.com) wrote: On Wed, 9 Jan 2013 13:46:17 -0500 Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: liburcu is a LGPLv2.1 userspace RCU (read-copy-update) library. This data synchronization library provides read-side access which scales linearly

[lttng-dev] [PATCH lttng-tools] Fix: update next_net_seq_num after sending header

2013-01-10 Thread David Goulet
Increment the sequence number after we are sure that the relayd has received correctly the data header. If an error occurs when sending the header, the data won't be extracted from the buffers thus keeping this sequence number untouched. Furthermore, after sending the header, if the relayd dies,

Re: [lttng-dev] [PATCH lttng-tools] Fix: update next_net_seq_num after sending header

2013-01-10 Thread Mathieu Desnoyers
* David Goulet (dgou...@efficios.com) wrote: Increment the sequence number after we are sure that the relayd has received correctly the data header. If an error occurs when sending the header, the data won't be extracted from the buffers thus keeping this sequence number untouched.

[lttng-dev] [PATCH lttng-tools] Atomically update relayd stream and session id

2013-01-10 Thread David Goulet
Improve protection to the variables where the uatomic_add_return() call does a volatile access and returns the value atomically incremented. Enclose that in two new functions, one for each id, which helps with the code semantic and brings a single call site for the value update making the code

Re: [lttng-dev] [PATCH lttng-tools] Atomically update relayd stream and session id

2013-01-10 Thread Mathieu Desnoyers
* David Goulet (dgou...@efficios.com) wrote: Improve protection to the variables where the uatomic_add_return() call does a volatile access and returns the value atomically incremented. Enclose that in two new functions, one for each id, which helps with the code semantic and brings a single

Re: [lttng-dev] [PATCH lttng-tools] Atomically update relayd stream and session id

2013-01-10 Thread David Goulet
Wait wut? Like every uatomic_inc/read() used else were in the code won't build or just this specific add_return call? Thanks! David Mathieu Desnoyers: * David Goulet (dgou...@efficios.com) wrote: Improve protection to the variables where the uatomic_add_return() call does a volatile access

[lttng-dev] Follow us on Twitter

2013-01-10 Thread Christian Babeux
Hi all, You can now follow LTTng on Twitter: https://twitter.com/lttng_project Thanks, Christian ___ lttng-dev mailing list lttng-dev@lists.lttng.org http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Re: [lttng-dev] [PATCH lttng-tools] Atomically update relayd stream and session id

2013-01-10 Thread Mathieu Desnoyers
* David Goulet (dgou...@efficios.com) wrote: Wait wut? Like every uatomic_inc/read() used else were in the code won't build or just this specific add_return call? You cannot use uatomic_*() on uint64_t variables on 32-bit systems. Other uatomic_* are probably on uint32_t, integers, or