Re: [RFA][PATCH v2] tracing: Add trace__enabled() function

2014-05-07 Thread Mathieu Desnoyers
- Original Message - > From: "Steven Rostedt" > To: "LKML" > Cc: "Mathieu Desnoyers" , "Andrew Morton" > , "Javi Merino" > , "David Howells" , "Ingo Molnar" > > Sent: Tuesday, May 6, 2014 11:1

[RFA][PATCH v2] tracing: Add trace__enabled() function

2014-05-06 Thread Steven Rostedt
There are some code paths in the kernel that need to do some preparations before it calls a tracepoint. As that code is worthless overhead when the tracepoint is not enabled, it would be prudent to have that code only run when the tracepoint is active. To accomplish this, all tracepoints now get a