From patchwork Tue Feb 23 15:17:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 8393771 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8E2B49F372 for ; Tue, 23 Feb 2016 15:18:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0384920304 for ; Tue, 23 Feb 2016 15:18:00 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 30ABF201F5 for ; Tue, 23 Feb 2016 15:17:59 +0000 (UTC) Received: from localhost ([::1]:57847 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYEis-0003dG-DB for patchwork-qemu-devel@patchwork.kernel.org; Tue, 23 Feb 2016 10:17:58 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYEii-0003cb-5z for qemu-devel@nongnu.org; Tue, 23 Feb 2016 10:17:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYEie-0007dt-Bg for qemu-devel@nongnu.org; Tue, 23 Feb 2016 10:17:48 -0500 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:55943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYEie-0007dp-5b for qemu-devel@nongnu.org; Tue, 23 Feb 2016 10:17:44 -0500 Received: from pm215 by orth.archaic.org.uk with local (Exim 4.84) (envelope-from ) id 1aYEic-0001uT-Cx; Tue, 23 Feb 2016 15:17:42 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Date: Tue, 23 Feb 2016 15:17:41 +0000 Message-Id: <1456240661-15422-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.9.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:8b0:1d0::2 Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Stefan Hajnoczi , patches@linaro.org Subject: [Qemu-devel] [PATCH] tracetool: Include osdep.h in generated-ust.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When generating the trace/generated-ust.c source file, make sure it includes osdep.h as its first include. This fixes compilation with --enable-trace-backends=ust Signed-off-by: Peter Maydell Reviewed-by: Eric Blake --- Picked up by the travis build tests. scripts/tracetool/format/ust_events_c.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/tracetool/format/ust_events_c.py b/scripts/tracetool/format/ust_events_c.py index bc97093..52100c0 100644 --- a/scripts/tracetool/format/ust_events_c.py +++ b/scripts/tracetool/format/ust_events_c.py @@ -22,6 +22,8 @@ def generate(events, backend): out('/* This file is autogenerated by tracetool, do not edit. */', '', + '#include "qemu/osdep.h"', + '', '#define TRACEPOINT_DEFINE', '#define TRACEPOINT_CREATE_PROBES', '',