[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/6] trace: [tracetool] Add support for event proper
From: |
Lluís Vilanova |
Subject: |
[Qemu-devel] [PATCH 4/6] trace: [tracetool] Add support for event properties |
Date: |
Wed, 11 Jan 2012 19:05:51 +0100 |
User-agent: |
StGit/0.15 |
Signed-off-by: Lluís Vilanova <address@hidden>
---
scripts/tracetool.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/scripts/tracetool.py b/scripts/tracetool.py
index b7401a3..e3e665d 100755
--- a/scripts/tracetool.py
+++ b/scripts/tracetool.py
@@ -472,7 +472,7 @@ trace_gen = {
# A trace event
import re
-cre = re.compile("(?P<name>[^(\s]+)\((?P<args>[^)]*)\)\s*(?P<fmt>\".*\")?")
+cre =
re.compile("((?P<props>.*)\s+)?(?P<name>[^(\s]+)\((?P<args>[^)]*)\)\s*(?P<fmt>\".*\")?")
class Event(object):
def __init__(self, line):
@@ -486,6 +486,7 @@ class Event(object):
self.argnames = get_argnames(self.args)
self.sizestr = calc_sizeofargs(self.args, self.argc)
self.fmt = groups["fmt"]
+ self.properties = groups["props"].split()
# Generator that yields Event objects given a trace-events file object
def read_events(fobj):
- [Qemu-devel] [PATCH 1/6] trace: [tracetool] Do not rebuild event list in backend code, Lluís Vilanova, 2012/01/11
- [Qemu-devel] [PATCH 2/6] trace: [tracetool] Simplify event line parsing, Lluís Vilanova, 2012/01/11
- [Qemu-devel] [PATCH 3/6] trace: [ŧracetool ] Do not precompute the event number, Lluís Vilanova, 2012/01/11
- [Qemu-devel] [PATCH 4/6] trace: [tracetool] Add support for event properties,
Lluís Vilanova <=
- [Qemu-devel] [PATCH 5/6] trace: [tracetool] Process the "disable" event property, Lluís Vilanova, 2012/01/11
- [Qemu-devel] [PATCH 6/6] trace: [tracetool] Rewrite event argument parsing, Lluís Vilanova, 2012/01/11
- Re: [Qemu-devel] [PATCH 1/6] trace: [tracetool] Do not rebuild event list in backend code, Harsh Bora, 2012/01/18