From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SePLE-00079L-L0 for qemu-devel@nongnu.org; Tue, 12 Jun 2012 07:33:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SePLC-0003Pj-FE for qemu-devel@nongnu.org; Tue, 12 Jun 2012 07:32:56 -0400 Received: from e23smtp09.au.ibm.com ([202.81.31.142]:49257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SePLB-0003OD-TY for qemu-devel@nongnu.org; Tue, 12 Jun 2012 07:32:54 -0400 Received: from /spool/local by e23smtp09.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 12 Jun 2012 12:20:16 +1000 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q5CBPHkQ56819802 for ; Tue, 12 Jun 2012 21:25:17 +1000 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q5CBWhDB002240 for ; Tue, 12 Jun 2012 21:32:44 +1000 From: Harsh Prateek Bora Date: Tue, 12 Jun 2012 17:02:31 +0530 Message-Id: <1339500754-3400-1-git-send-email-harsh@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v3 0/3] Simpletrace v2: Support multiple args, strings. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: stefanha@gmail.com, qemu-devel@nongnu.org Cc: Harsh Prateek Bora , aneesh.kumar@linux.vnet.ibm.com, stefanha@linux.vnet.ibm.com Existing simpletrace backend allows to trace at max 6 args and does not support strings. This newer tracelog format gets rid of fixed size records and therefore allows to trace variable number of args including strings. Sample trace: v9fs_version 0.000 tag=0xffff id=0x64 msize=0x2000 version=9P2000.L v9fs_version_return 6.705 tag=0xffff id=0x64 msize=0x2000 version=9P2000.L v9fs_attach 174.467 tag=0x1 id=0x68 fid=0x0 afid=0xffffffffffffffff uname=nobody aname= v9fs_attach_return 4720.454 tag=0x1 id=0x68 type=0xffffffffffffff80 version=0x4f2a4dd0 path=0x220ea6 v3: - Addressed Stefan's review comments on v2 series v2: - moved elimination of st_print_trace to 1/3 patch - use sizeof(TraceRecord) for #define ST_REC_HDR_LEN v1: - Simpletrace v2 for the new (pythonized) tracetool Harsh Prateek Bora (3): monitor: remove unused do_info_trace Simpletrace v2: Support multiple arguments, strings. Update simpletrace.py for new log format monitor.c | 16 --- scripts/simpletrace.py | 116 ++++++++++------ scripts/tracetool/backend/simple.py | 84 +++++++++--- trace/simple.c | 257 ++++++++++++++++++++--------------- trace/simple.h | 39 ++++-- 5 files changed, 321 insertions(+), 191 deletions(-) -- 1.7.10.2