From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7nZ9-0006wD-RL for qemu-devel@nongnu.org; Mon, 27 Jan 2014 09:53:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7nZ1-0008DS-I5 for qemu-devel@nongnu.org; Mon, 27 Jan 2014 09:53:35 -0500 Received: from mx1.redhat.com ([209.132.183.28]:31569) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7nZ1-0008DN-9a for qemu-devel@nongnu.org; Mon, 27 Jan 2014 09:53:27 -0500 From: Stefan Hajnoczi Date: Mon, 27 Jan 2014 15:53:04 +0100 Message-Id: <1390834386-23139-3-git-send-email-stefanha@redhat.com> In-Reply-To: <1390834386-23139-1-git-send-email-stefanha@redhat.com> References: <1390834386-23139-1-git-send-email-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 2/4] 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: Peter Maydell , Anthony Liguori From: Llu=C3=ADs Vilanova 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 Signed-off-by: Stefan Hajnoczi --- 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 */ --=20 1.8.4.2