[lttng-dev] static versus dynamic linking (TRACEPOINT_PROBE_DYNAMIC_LINKAGE)

2013-03-03 Thread David Bryant
Hello, I'm trying to decide whether to use static or dynamic tracepoint probe linkage. What are the factors that I should consider? Are there any licensing related issues? For example, is closed-source software allowed to use static linking? Is it purely an organisational feature, i.e.,

Re: [lttng-dev] Test if tracepoint is enabled

2012-12-05 Thread David Bryant
On 05/12/12 20:49, Mathieu Desnoyers wrote: * David Bryant (david.bry...@quantum.com) wrote: So, building on your example: #define tracepoint_cond(provider, name, pre, post, ...) \ do { \ if (caa_unlikely(__tracepoint_##provider##___##name.state)) { \ pre

Re: [lttng-dev] Test if tracepoint is enabled

2012-12-04 Thread David Bryant
On 05/12/12 00:32, Mathieu Desnoyers wrote: Hrm. So what you would like is something like: int tracepoint_get_state(provider, name); So you could use it for your setup and cleanup. However, let's see the possible use of this construct: 1 - this construct would be OK: if

Re: [lttng-dev] Test if tracepoint is enabled

2012-12-03 Thread David Bryant
On 04/12/12 01:04, Mathieu Desnoyers wrote: * David Bryant (david.bry...@quantum.com) wrote: Hi all, Is it feasible to have an officially supported way of determining if a tracepoint is currently enabled? In my code I would like to test if the tracepoint is enabled, and if it isn't, avoid

[lttng-dev] Test if tracepoint is enabled

2012-11-26 Thread David Bryant
Hi all, Is it feasible to have an officially supported way of determining if a tracepoint is currently enabled? In my code I would like to test if the tracepoint is enabled, and if it isn't, avoid doing expensive setup work. I've been doing the following: if

Re: [lttng-dev] Fix filter: pointer to string, not string, should be on stack -- query

2012-11-07 Thread David Bryant
: pointer to string, not string, should be on stack Fixes #329 Reported-by: David Bryant david.bry...@quantum.com Signed-off-by: Mathieu Desnoyers mathieu.desnoy...@efficios.com Please let me know if it helps, Thanks, Mathieu

[lttng-dev] tracepoint provider: static versus dynamic linking (TRACEPOINT_PROBE_DYNAMIC_LINKAGE)

2012-11-07 Thread David Bryant
Hello, What are the pros and cons of static versus dynamic linking of the tracepoint provider? I can't find much information looking around. Are their any licensing related issues? For example, is closed-source software not allowed to use static linking? Is it just an optimisation -

[lttng-dev] Fix filter: pointer to string, not string, should be on stack -- query

2012-11-06 Thread David Bryant
Hi, I'm trying to understand the following changeset: commit 27f4b6094f399f2fe231b58801dce98cbd21baa9 Author: Mathieu Desnoyers mathieu.desnoy...@efficios.com Date: Tue Sep 4 12:17:07 2012 -0400 Fix filter: pointer to string, not string, should be on stack Fixes #329 Signed-off-by: Mathieu