Re: [lttng-dev] making liburcu and lttng coexist in a LGPL'ed program

2018-12-03 Thread Jeff Layton
On Mon, 2018-12-03 at 14:13 -0500, Mathieu Desnoyers wrote: > > - On Dec 3, 2018, at 1:43 PM, Jeff Layton jlay...@redhat.com wrote: > > > On Mon, 2018-12-03 at 13:25 -0500, Mathieu Desnoyers wrote: > > > - On Dec 3, 2018, at 12:58 PM, Jeff Layton

Re: [lttng-dev] making liburcu and lttng coexist in a LGPL'ed program

2018-12-03 Thread Jeff Layton
On Mon, 2018-12-03 at 13:25 -0500, Mathieu Desnoyers wrote: > - On Dec 3, 2018, at 12:58 PM, Jeff Layton jlay...@redhat.com wrote: > > > On Wed, 2018-11-28 at 17:06 -0500, Mathieu Desnoyers wrote: > > > - On Nov 27, 2018, at 1:17 PM, Jeff Layton jla

Re: [lttng-dev] making liburcu and lttng coexist in a LGPL'ed program

2018-12-03 Thread Jeff Layton
On Wed, 2018-11-28 at 17:06 -0500, Mathieu Desnoyers wrote: > - On Nov 27, 2018, at 1:17 PM, Jeff Layton jlay...@redhat.com wrote: > > > The nfs-ganesha project has used lttng for quite some time to handle > > tracing. Recently though, we decided to start buildi

[lttng-dev] making liburcu and lttng coexist in a LGPL'ed program

2018-11-27 Thread Jeff Layton
lttng.org/issues/1156 Any thoughts on the right fix for this? We'd like to eat our cake and have it too, so that we can have _LGPL_SOURCE defined, lttng enabled, and the urcu flavor be determined at runtime. Many thanks, -- Jeff Layton ___ lttng-d

Re: [lttng-dev] how do I print a value from an array of structs in a userspace tracepoint?

2015-08-18 Thread Jeff Layton
On Tue, 18 Aug 2015 13:01:23 -0400 Jérémie Galarneau wrote: > On Tue, Aug 18, 2015 at 8:00 AM, Jeff Layton > wrote: > > > I'd like to add a tracepoint to my code that can walk a > > dynamically-sized array of structs and print one of the fields from > > each

[lttng-dev] how do I print a value from an array of structs in a userspace tracepoint?

2015-08-18 Thread Jeff Layton
you want to print out an "int" while walking an array of differently-sized objects. Any help is appreciated! -- Jeff Layton ___ lttng-dev mailing list lttng-dev@lists.lttng.org http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

[lttng-dev] [PATCH urcu] urcu: add cds_list_for_each_entry_safe_from macro

2015-04-30 Thread Jeff Layton
Same as cds_list_for_each_entry_safe, but starts at an arbitrary point within the list instead of at the head. Signed-off-by: Jeff Layton --- urcu/list.h | 9 + 1 file changed, 9 insertions(+) diff --git a/urcu/list.h b/urcu/list.h index b4962b445dfb..4aaf869351fe 100644 --- a/urcu

Re: [lttng-dev] cds_lfht_count_nodes always returns -1 for before/after counts

2015-04-25 Thread Jeff Layton
On Sat, 25 Apr 2015 17:29:02 -0400 Jeff Layton wrote: > Hi, I have some code using the cds_lfht infrastructure, and recently > added a function to check to see if the table was empty using > cds_lfht_count_nodes. That function just does this: > >

[lttng-dev] cds_lfht_count_nodes always returns -1 for before/after counts

2015-04-25 Thread Jeff Layton
userspace-rcu-0.8.1-5.fc21.x86_64 Thanks in advance! -- Jeff Layton ___ lttng-dev mailing list lttng-dev@lists.lttng.org http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Re: [lttng-dev] URCU and pthread mutex/cond variable hang

2015-03-10 Thread Jeff Layton
On Tue, 10 Mar 2015 00:43:09 + (UTC) Mathieu Desnoyers wrote: > - Original Message - > > From: "Jeff Layton" > > To: lttng-dev@lists.lttng.org > > Sent: Tuesday, March 3, 2015 3:40:14 PM > > Subject: [lttng-dev] URCU and pthread mutex/cond variab

[lttng-dev] URCU and pthread mutex/cond variable hang

2015-03-03 Thread Jeff Layton
behavior or a bug in urcu? Thanks in advance! -- Jeff Layton #include #include #include #include #include static bool done = false; static pthread_mutex_t mtx; static pthread_cond_t cond; static void * test_rcu(void __attribute__((unused)) *foo) { rcu_register_thread(); rcu_read_lock