Fix arguments in trace_control in the example.
authorGerd Zellweger <mail@gerdzellweger.com>
Thu, 10 Oct 2013 09:50:44 +0000 (11:50 +0200)
committerGerd 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

index 1445986..7c050fe 100644 (file)
@@ -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);