git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tracing: Add TRACE_EVENT_CONDITION sample
[sfrench/cifs-2.6.git]
/
samples
/
trace_events
/
trace-events-sample.c
diff --git
a/samples/trace_events/trace-events-sample.c
b/samples/trace_events/trace-events-sample.c
index 16c15c08ed38936dc56c469a6fc623f3942f2c95..c396a49b5d7831cbf42a4e619ef95cde55ae2f93 100644
(file)
--- a/
samples/trace_events/trace-events-sample.c
+++ b/
samples/trace_events/trace-events-sample.c
@@
-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)