From patchwork Thu Oct 21 09:39:11 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prerna Saxena X-Patchwork-Id: 68561 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 7784DB70EA for ; Thu, 21 Oct 2010 20:54:17 +1100 (EST) Received: from localhost ([127.0.0.1]:47384 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8rqg-0007Z3-C6 for incoming@patchwork.ozlabs.org; Thu, 21 Oct 2010 05:54:14 -0400 Received: from [140.186.70.92] (port=51149 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8rcN-0000or-AO for qemu-devel@nongnu.org; Thu, 21 Oct 2010 05:39:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8rcG-0005eM-0B for qemu-devel@nongnu.org; Thu, 21 Oct 2010 05:39:21 -0400 Received: from e23smtp02.au.ibm.com ([202.81.31.144]:48596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8rcF-0005dz-A8 for qemu-devel@nongnu.org; Thu, 21 Oct 2010 05:39:19 -0400 Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [202.81.31.246]) by e23smtp02.au.ibm.com (8.14.4/8.13.1) with ESMTP id o9L9YkvW012216 for ; Thu, 21 Oct 2010 20:34:46 +1100 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o9L9dGXx2523210 for ; Thu, 21 Oct 2010 20:39:16 +1100 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o9L9dGLS032368 for ; Thu, 21 Oct 2010 20:39:16 +1100 Received: from zephyr ([9.124.35.82]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id o9L9dEN4032344; Thu, 21 Oct 2010 20:39:15 +1100 Date: Thu, 21 Oct 2010 15:09:11 +0530 From: Prerna Saxena To: qemu-devel Message-ID: <20101021150911.6ffa0788@zephyr> In-Reply-To: <20101021144929.7911128a@zephyr> References: <20101021144929.7911128a@zephyr> Organization: IBM X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i386-redhat-linux-gnu) Mime-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: Mahesh , Ananth Narayan , Stefan Hajnoczi , Luiz Capitulino Subject: [Qemu-devel] [RFC] [PATCH 3/5] query-trace-file X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 'query-trace-file' : QMP interface to find currently set trace file and its status. (Analogous to hmp command : trace-file) Signed-off-by: Prerna Saxena --- qmp-commands.hx | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/qmp-commands.hx b/qmp-commands.hx index e079eef..7e95f4e 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -1622,3 +1622,27 @@ Example: } EQMP + +SQMP +query-trace-file +---------------- + +Display the trace file name to which trace data is currently logged, and its +status. + +Returns a json-object containing the following data: + +- "trace-file": Name + path of Trace-file (json-string) +- "enabled": State of trace-event (json-bool) + +Example: + +-> { "execute": "query-trace-file" } +<- { + "return":{ + "trace-file": "/tmp/trace-26609", + "enabled": true + } + } + +EQMP