From 3f9f7e1cccb2be69a37e27d9ea0a692ce745f614 Mon Sep 17 00:00:00 2001 From: Gerd Zellweger Date: Thu, 10 Oct 2013 11:50:44 +0200 Subject: [PATCH] Fix arguments in trace_control in the example. Apparently one needs to use the TRACE_EVENT macro. --- doc/008-tracing/Tracing.tex | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/doc/008-tracing/Tracing.tex b/doc/008-tracing/Tracing.tex index 1445986..7c050fe 100644 --- 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_, + TRACE_EVENT_, + arg), + TRACE_EVENT(TRACE_SUBSYS_, + TRACE_EVENT_, + arg), + _duration); // enable the subsystems that should be traced trace_set_subsys_enabled(TRACE_SUBSYS_XXX, true); -- 1.7.2.5