tracing: Add TRACE_EVENT_CONDITION sample
The sample code lacks an example of TRACE_EVENT_CONDITION, and it has been expressed to me that this feature for TRACE_EVENT is not well known and not used when it could be. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:

committed by
Steven Rostedt

parent
4e20e3a60b
commit
c4c7eb2938
@@ -31,8 +31,11 @@ static void simple_thread_func(int cnt)
|
||||
array[i] = i + 1;
|
||||
array[i] = 0;
|
||||
|
||||
/* Silly tracepoints */
|
||||
trace_foo_bar("hello", cnt, array, random_strings[len],
|
||||
tsk_cpus_allowed(current));
|
||||
|
||||
trace_foo_bar_with_cond("Some times print", cnt);
|
||||
}
|
||||
|
||||
static int simple_thread(void *arg)
|
||||
|
Reference in New Issue
Block a user