Received: from eggs.gnu.org ([140.186.70.92]:57356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl2aQ-0002u6-6j for qemu-devel@nongnu.org; Wed, 11 Jan 2012 13:07:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rl2aO-0006KR-QX for qemu-devel@nongnu.org; Wed, 11 Jan 2012 13:07:45 -0500 Received: from gw.ac.upc.edu ([147.83.30.3]:54578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl2aO-0006KL-KH for qemu-devel@nongnu.org; Wed, 11 Jan 2012 13:07:44 -0500 From: =?utf-8?b?TGx1w61z?= Vilanova Date: Wed, 11 Jan 2012 19:05:51 +0100 Message-ID: <20120111180551.25198.850.stgit@ginnungagap.bsc.es> In-Reply-To: <20120111180504.25198.76946.stgit@ginnungagap.bsc.es> References: <20120111180504.25198.76946.stgit@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 4/6] trace: [tracetool] Add support for event properties List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: harsh@linux.vnet.ibm.com, stefanha@linux.vnet.ibm.com, aneesh.kumar@linux.vnet.ibm.com Signed-off-by: Llu=C3=ADs Vilanova --- 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 =3D { =20 # A trace event import re -cre =3D re.compile("(?P[^(\s]+)\((?P[^)]*)\)\s*(?P\".*\= ")?") +cre =3D re.compile("((?P.*)\s+)?(?P[^(\s]+)\((?P[^)]*= )\)\s*(?P\".*\")?") =20 class Event(object): def __init__(self, line): @@ -486,6 +486,7 @@ class Event(object): self.argnames =3D get_argnames(self.args) self.sizestr =3D calc_sizeofargs(self.args, self.argc) self.fmt =3D groups["fmt"] + self.properties =3D groups["props"].split() =20 # Generator that yields Event objects given a trace-events file object def read_events(fobj):