projects
/
barrelfish
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2b8090b
)
Fix arguments in trace_control in the example.
author
Gerd Zellweger
<mail@gerdzellweger.com>
Thu, 10 Oct 2013 09:50:44 +0000 (11:50 +0200)
committer
Gerd Zellweger
<mail@gerdzellweger.com>
Thu, 10 Oct 2013 12:03:15 +0000 (14:03 +0200)
Apparently one needs to use the TRACE_EVENT macro.
doc/008-tracing/Tracing.tex
patch
|
blob
|
history
diff --git
a/doc/008-tracing/Tracing.tex
b/doc/008-tracing/Tracing.tex
index
1445986
..
7c050fe
100644
(file)
--- a/
doc/008-tracing/Tracing.tex
+++ b/
doc/008-tracing/Tracing.tex
@@
-714,7
+714,13
@@
int main(..) {
trace_prepare(..); // do clock synchronization
// tell the framework when to start recording
- err = trace_control(TRACE_EVENT_XXX_AAA, TRACE_EVENT_XXX_BBB, _duration);
+ err = trace_control(TRACE_EVENT(TRACE_SUBSYS_<A>,
+ TRACE_EVENT_<START>,
+ arg),
+ TRACE_EVENT(TRACE_SUBSYS_<B>,
+ TRACE_EVENT_<END>,
+ arg),
+ _duration);
// enable the subsystems that should be traced
trace_set_subsys_enabled(TRACE_SUBSYS_XXX, true);