From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4lxM-0002M9-Sk for qemu-devel@nongnu.org; Wed, 09 Jul 2014 03:06:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4lxI-0007Y5-C0 for qemu-devel@nongnu.org; Wed, 09 Jul 2014 03:06:20 -0400 Received: from mail-we0-x232.google.com ([2a00:1450:400c:c03::232]:41206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4lxI-0007Y1-4f for qemu-devel@nongnu.org; Wed, 09 Jul 2014 03:06:16 -0400 Received: by mail-we0-f178.google.com with SMTP id x48so6934087wes.23 for ; Wed, 09 Jul 2014 00:06:15 -0700 (PDT) Date: Wed, 9 Jul 2014 09:06:12 +0200 From: Stefan Hajnoczi Message-ID: <20140709070612.GA9875@stefanha-thinkpad.redhat.com> References: <1403444767-2601-1-git-send-email-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline In-Reply-To: <1403444767-2601-1-git-send-email-stefanha@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 0/4] trace: add simpletrace-stap format to generate binary trace List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: vilanova@ac.upc.edu, qemu-devel@nongnu.org, saito.kazuya@jp.fujitsu.com --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 22, 2014 at 09:46:03PM +0800, Stefan Hajnoczi wrote: > v2: > * I realized that v1 was not complete enough after feedback from Llu=EDs= and > Frank Ch. Eigler, so here is a v2 after all. > * Add Makefile target for simpletrace .stp file [Llu=EDs] > * Generate SystemTap probe aliases so users can select a subset of probe= s to > enable [Frank Ch. Eigler] > * Delete --no-header from sys.argv[] so further command-line parsing wor= ks >=20 > SystemTap is a popular tracing solution on Fedora and RHEL. It does not = have > its own trace file format, instead stap scripts have the freedom to outpu= t data > in whatever format is most appropriate. >=20 > QEMU supports the simpletrace binary format for built-in tracing that com= es > with QEMU. Since we need a format for persisting SystemTap traces and a = binary > format has performance advantages, let's output simpletrace-compatible da= ta. >=20 > This patch adds a new stap file that is autogenerated from trace-events. = The > following example shows how to use SystemTap and analyze the resulting tr= ace > file with simpletrace.py: >=20 > $ ./configure --enable-trace-backend=3Ddtrace ... && make > $ sudo stap x86_64-softmmu/qemu-system-x86_64-simpletrace.stp >trace > ...run QEMU in another shell... > ^C > $ scripts/simpletrace.py --no-header trace-events trace >=20 > One new concept here is the simpletrace.py --no-header option. SystemTap > supports flight-recorder mode where trace records are written into a ring > buffer. The ring buffer can be dumped at any time so it is useful to ski= p the > simpletrace header check. >=20 > Stefan Hajnoczi (4): > trace: extract stap_escape() function for reuse > trace: add tracetool simpletrace_stap format > simpletrace: add simpletrace.py --no-header option > trace: install simpletrace SystemTap tapset >=20 > Makefile.target | 10 +++- > scripts/simpletrace.py | 24 +++++++--- > scripts/tracetool/format/simpletrace_stap.py | 71 ++++++++++++++++++++++= ++++++ > scripts/tracetool/format/stap.py | 11 +++-- > 4 files changed, 105 insertions(+), 11 deletions(-) > create mode 100644 scripts/tracetool/format/simpletrace_stap.py Applied to my tracing-next tree: https://github.com/stefanha/qemu/commits/tracing-next Stefan --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJTvOnkAAoJEJykq7OBq3PIhm8IAI5CZmc42jt9aOAMcFKjfxNg K01YD0nSnouE2xPoJLXY7w+Dzh4PRfKEBNdY0/Nhv2cTPQf/DZNtONQGI0WrugSc jMoHPYcMZh/zdR1NWTP0EjeQ9pH7RofNZ4lJHnkb6GezUYovyK635TCa4/wK3p1n yPlbgSLAAwrxQYnuaf4umRJVEJD5f/CvJxJgG2itiMYK6TjBdo5zKNEnjKMZ0goV cfiiimHSJHhxMKCs8ho8hHGWfhaLIXpeGqwefOCvv0h9BS/inbtv69ML58XvBQgZ ClMMQzb7TTI7I2mUp+6dD8JSyzWb66XQpWPhHr8gwu/6VsWdsGfKznGXlFCC1Xs= =pnfm -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G--