From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:45357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkZQl-00085i-J3 for qemu-devel@nongnu.org; Tue, 10 Jan 2012 05:59:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkZQk-0001je-I5 for qemu-devel@nongnu.org; Tue, 10 Jan 2012 05:59:51 -0500 Received: from e28smtp08.in.ibm.com ([122.248.162.8]:55817) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkZQj-0001jO-OB for qemu-devel@nongnu.org; Tue, 10 Jan 2012 05:59:50 -0500 Received: from /spool/local by e28smtp08.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 10 Jan 2012 16:29:45 +0530 Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay02.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q0AAxeGs3805380 for ; Tue, 10 Jan 2012 16:29:42 +0530 Received: from d28av02.in.ibm.com (loopback [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q0AAxerP009860 for ; Tue, 10 Jan 2012 21:59:40 +1100 From: Harsh Prateek Bora Date: Tue, 10 Jan 2012 16:29:36 +0530 Message-Id: <1326193179-19677-1-git-send-email-harsh@linux.vnet.ibm.com> Subject: [Qemu-devel] [RFC PATCH v3 0/3] simpletrace : support var num of args and strings. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aneesh.kumar@linux.vnet.ibm.com, mathieu.desnoyers@efficios.com, vilanova@ac.upc.edu, stefanha@linux.vnet.ibm.com Existing simple trace can log upto 6 args per trace event and does not support strings in trace record format. Introducing new trace format as discussed earlier on list to support variable number/size of arguments. (Ref: http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg03426.html) Basic testing of new tracelog format is successful. Stress testing not yet done. Apply patches, then run: make distclean ./configure with --enable-trace-backend=simple make sudo make install Sample tracelog showing strings support: [harsh@harshbora v9fs]$ scripts/simpletrace.py trace-events trace-23261 v9fs_version 0.000 tag=65535 id=100 msize=8192 version=9P2000.L v9fs_version_return 17.530 tag=65535 id=100 msize=8192 version=9P2000.L v9fs_attach 180.121 tag=1 id=104 fid=0 afid=18446744073709551615 uname=nobody aname= Note: Other backends are only compile tested. Version History: v3: - Added support for LTTng ust trace backend in tracetool.py v2: - Updated tracetool.py to support nop, stderr, dtrace backend v1: - Working protoype with tracetool.py converted only for simpletrace backend Harsh Prateek Bora (3): Converting tracetool.sh to tracetool.py simpletrace-v2: Handle variable number/size of elements per trace record. simpletrace.py: updated log reader script to handle new log format Makefile.objs | 6 +- Makefile.target | 10 +- configure | 7 +- monitor.c | 2 +- scripts/simpletrace.py | 109 ++++++++- scripts/tracetool | 643 ------------------------------------------------ scripts/tracetool.py | 585 +++++++++++++++++++++++++++++++++++++++++++ trace/simple.c | 178 +++++--------- trace/simple.h | 31 ++- 9 files changed, 783 insertions(+), 788 deletions(-) delete mode 100755 scripts/tracetool create mode 100755 scripts/tracetool.py