[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/4] trace: [tracetool] Identify formats directly us
From: |
Lluís Vilanova |
Subject: |
[Qemu-devel] [PATCH 3/4] trace: [tracetool] Identify formats directly used by QEMU |
Date: |
Mon, 17 Feb 2014 20:36:35 +0100 |
User-agent: |
StGit/0.16 |
Signed-off-by: Lluís Vilanova <address@hidden>
---
scripts/tracetool/format/__init__.py | 13 ++++++++++++-
scripts/tracetool/format/c.py | 3 +++
scripts/tracetool/format/d.py | 3 +++
scripts/tracetool/format/events_c.py | 3 +++
scripts/tracetool/format/events_h.py | 3 +++
scripts/tracetool/format/h.py | 3 +++
scripts/tracetool/format/stap.py | 5 ++++-
7 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/scripts/tracetool/format/__init__.py
b/scripts/tracetool/format/__init__.py
index 577a224..ddbcac9 100644
--- a/scripts/tracetool/format/__init__.py
+++ b/scripts/tracetool/format/__init__.py
@@ -17,6 +17,17 @@ considered its short description.
All formats must generate their contents through the 'tracetool.out' routine.
+Format attributes
+-----------------
+
+========= =================================================================
+Attribute Description
+========= =================================================================
+API If exists and is set to 'True', the format defines identifiers
+ (functions, variables, defines, etc.) directly used by QEMU code.
+========= =================================================================
+
+
Format functions
----------------
@@ -34,7 +45,7 @@ nop Called to generate the per-event contents when the
event is disabled or
"""
__author__ = "Lluís Vilanova <address@hidden>"
-__copyright__ = "Copyright 2012, Lluís Vilanova <address@hidden>"
+__copyright__ = "Copyright 2012-2014, Lluís Vilanova <address@hidden>"
__license__ = "GPL version 2 or (at your option) any later version"
__maintainer__ = "Stefan Hajnoczi"
diff --git a/scripts/tracetool/format/c.py b/scripts/tracetool/format/c.py
index 930140b..8327dae 100644
--- a/scripts/tracetool/format/c.py
+++ b/scripts/tracetool/format/c.py
@@ -16,5 +16,8 @@ __email__ = "address@hidden"
from tracetool import out
+API = False
+
+
def begin(events):
out('/* This file is autogenerated by tracetool, do not edit. */')
diff --git a/scripts/tracetool/format/d.py b/scripts/tracetool/format/d.py
index 74ee0d3..4d784d3 100644
--- a/scripts/tracetool/format/d.py
+++ b/scripts/tracetool/format/d.py
@@ -16,5 +16,8 @@ __email__ = "address@hidden"
from tracetool import out
+API = False
+
+
def begin(events):
out('/* This file is autogenerated by tracetool, do not edit. */')
diff --git a/scripts/tracetool/format/events_c.py
b/scripts/tracetool/format/events_c.py
index ea668ee..030dd37 100644
--- a/scripts/tracetool/format/events_c.py
+++ b/scripts/tracetool/format/events_c.py
@@ -16,6 +16,9 @@ __email__ = "address@hidden"
from tracetool import out
+API = True
+
+
def begin(events):
out('/* This file is autogenerated by tracetool, do not edit. */',
'',
diff --git a/scripts/tracetool/format/events_h.py
b/scripts/tracetool/format/events_h.py
index f3febae..983f2b2 100644
--- a/scripts/tracetool/format/events_h.py
+++ b/scripts/tracetool/format/events_h.py
@@ -16,6 +16,9 @@ __email__ = "address@hidden"
from tracetool import out
+API = True
+
+
def begin(events):
out('/* This file is autogenerated by tracetool, do not edit. */',
'',
diff --git a/scripts/tracetool/format/h.py b/scripts/tracetool/format/h.py
index 85f011f..2809730 100644
--- a/scripts/tracetool/format/h.py
+++ b/scripts/tracetool/format/h.py
@@ -16,6 +16,9 @@ __email__ = "address@hidden"
from tracetool import out
+API = True
+
+
def begin(events):
out('/* This file is autogenerated by tracetool, do not edit. */',
'',
diff --git a/scripts/tracetool/format/stap.py b/scripts/tracetool/format/stap.py
index 50a4c69..134c197 100644
--- a/scripts/tracetool/format/stap.py
+++ b/scripts/tracetool/format/stap.py
@@ -6,7 +6,7 @@ Generate .stp file (DTrace with SystemTAP only).
"""
__author__ = "Lluís Vilanova <address@hidden>"
-__copyright__ = "Copyright 2012, Lluís Vilanova <address@hidden>"
+__copyright__ = "Copyright 2012-2014, Lluís Vilanova <address@hidden>"
__license__ = "GPL version 2 or (at your option) any later version"
__maintainer__ = "Stefan Hajnoczi"
@@ -16,5 +16,8 @@ __email__ = "address@hidden"
from tracetool import out
+API = False
+
+
def begin(events):
out('/* This file is autogenerated by tracetool, do not edit. */')
- [Qemu-devel] [PATCH 0/4] Tracetool cleanup, Lluís Vilanova, 2014/02/17
- [Qemu-devel] [PATCH 1/4] trace: [tracetool] Add method 'Event.api' to build event names, Lluís Vilanova, 2014/02/17
- [Qemu-devel] [PATCH 2/4] trace: [tracetool,trivial] Style changes, Lluís Vilanova, 2014/02/17
- [Qemu-devel] [PATCH 3/4] trace: [tracetool] Identify formats directly used by QEMU,
Lluís Vilanova <=
- [Qemu-devel] [PATCH 4/4] trace: [tracetool] Minimize the amount of per-backend code, Lluís Vilanova, 2014/02/17
- Re: [Qemu-devel] [PATCH 0/4] Tracetool cleanup, Stefan Hajnoczi, 2014/02/19