Received: from eggs.gnu.org ([2001:4830:134:3::10]:56616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W36Ib-0006kX-QR for qemu-devel@nongnu.org; Tue, 14 Jan 2014 10:53:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W36IV-0002Cx-Id for qemu-devel@nongnu.org; Tue, 14 Jan 2014 10:53:05 -0500 Received: from roura.ac.upc.edu ([147.83.33.10]:47447 helo=roura.ac.upc.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W36IU-0002Bk-W7 for qemu-devel@nongnu.org; Tue, 14 Jan 2014 10:52:59 -0500 From: =?utf-8?b?TGx1w61z?= Vilanova Date: Tue, 14 Jan 2014 16:52:55 +0100 Message-Id: <20140114155254.30823.22639.stgit@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v2] trace: [simple] Do not include "trace/simple.h" in generated tracer headers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi , Stefan Hajnoczi The header is not necessary, given that the simple backend does not defin= e any inlined tracing routines. Signed-off-by: Llu=C3=ADs Vilanova --- scripts/tracetool/backend/simple.py | 3 --- trace/simple.c | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/tracetool/backend/simple.py b/scripts/tracetool/back= end/simple.py index 37ef599..30faac9 100644 --- a/scripts/tracetool/backend/simple.py +++ b/scripts/tracetool/backend/simple.py @@ -93,9 +93,6 @@ def c(events): =20 =20 def h(events): - out('#include "trace/simple.h"', - '') - for event in events: out('void trace_%(name)s(%(args)s);', name =3D event.name, diff --git a/trace/simple.c b/trace/simple.c index 1e3f691..410172e 100644 --- a/trace/simple.c +++ b/trace/simple.c @@ -19,6 +19,7 @@ #include "qemu/timer.h" #include "trace.h" #include "trace/control.h" +#include "trace/simple.h" =20 /** Trace file header event ID */ #define HEADER_EVENT_ID (~(uint64_t)0) /* avoids conflicting with TraceE= ventIDs */