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 \
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
* 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 doing expensive setup work.
I've been
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