From patchwork Sun Apr 1 21:05:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [v5,2/8] tracetool: Add module for the 'c' format Date: Sun, 01 Apr 2012 11:05:02 -0000 From: =?utf-8?q?Llu=C3=ADs_Vilanova?= X-Patchwork-Id: 149985 Message-Id: <20120401210502.32042.66900.stgit@ginnungagap.bsc.es> To: qemu-devel@nongnu.org Cc: stefanha@gmail.com Signed-off-by: Lluís Vilanova --- scripts/tracetool/format/c.py | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) create mode 100644 scripts/tracetool/format/c.py diff --git a/scripts/tracetool/format/c.py b/scripts/tracetool/format/c.py new file mode 100644 index 0000000..35555ae --- /dev/null +++ b/scripts/tracetool/format/c.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +""" +Generate .c file. +""" + +__author__ = "Lluís Vilanova " +__copyright__ = "Copyright 2012, Lluís Vilanova " +__license__ = "GPL version 2 or (at your option) any later version" + +__maintainer__ = "Stefan Hajnoczi" +__email__ = "stefanha@linux.vnet.ibm.com" + + +from tracetool import out + + +def begin(events): + out('/* This file is autogenerated by tracetool, do not edit. */')