From nobody Wed Nov 5 10:07:49 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1534180443382132.71907097631833; Mon, 13 Aug 2018 10:14:03 -0700 (PDT) Received: from localhost ([::1]:40529 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpGPg-0006ba-Go for importer@patchew.org; Mon, 13 Aug 2018 13:13:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpGNe-0005Wj-UY for qemu-devel@nongnu.org; Mon, 13 Aug 2018 13:11:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fpGNb-0006aw-KW for qemu-devel@nongnu.org; Mon, 13 Aug 2018 13:11:46 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:39995) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fpGNb-0006aX-Cu for qemu-devel@nongnu.org; Mon, 13 Aug 2018 13:11:43 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id A88C021B87; Mon, 13 Aug 2018 13:11:42 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 13 Aug 2018 13:11:42 -0400 Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id C5A1CE4621; Mon, 13 Aug 2018 13:11:41 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap.org; h=cc :date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=mesmtp; bh=sECQSkxTFKszWm saWORBbIrDo7shW+rJdq7im/uQNq8=; b=V/WZbstmoe5uVMZ24pyhVnz/FjZEec +DVj5Gl1LICviYwMk5iUp3IvMFNgRaJFzUaJsvUfcIqRelOEQ6iU20wXqzeA4r6G r+bq+59RtktB7NePt3pGLAMn8a075lYLdbhmKaXDN6ihyuiE6ANCjhTA2Nt3+ffv 4YhT1C4aEmojQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=sECQSkxTFKszWmsaWORBbIrDo7shW+rJdq7im/uQNq8=; b=umiGcywh OUXWYC/0icY6xco4c/UWwe/N9xpyG2VPFpqqiepu1Br/Q/h5b3xNm+ijDOO+Q5Mt ka1vw39UkYTPYyJxI2Zh9seLrTqkpjZeKjkxHnr1phd8Uri9qrGp8RlMNuIU+vsi /gO1NBe2nP3YJ6Cb0nUwKaynKwo3sn6HKsTgypP1V+LjUHRH5YjumkDAc4vLk2s6 /3MasnaXRqb1KhsILy1kTjLgVJngVRN79kmub8iFaiaZbu3uBH9jTGxX2gCUa75e 7CbFJRoMfc3xpn4eshAUW1ioCgt7mrBv+3lsFkVr1/6Sqaq4ZJv8loco8l85giHE txw9pDiosJTOeg== X-ME-Proxy: X-ME-Sender: From: "Emilio G. Cota" To: qemu-devel@nongnu.org Date: Mon, 13 Aug 2018 13:11:31 -0400 Message-Id: <20180813171132.21939-3-cota@braap.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180813171132.21939-1-cota@braap.org> References: <20180813171132.21939-1-cota@braap.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.25 Subject: [Qemu-devel] [PATCH 2/3] monitor: show sync profiling info with 'info sync' X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Crosthwaite , Stefan Weil , "Dr. David Alan Gilbert" , Peter Xu , Markus Armbruster , Paolo Bonzini , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Emilio G. Cota --- monitor.c | 7 +++++++ hmp-commands-info.hx | 16 ++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/monitor.c b/monitor.c index 77861e96af..66d8d85b97 100644 --- a/monitor.c +++ b/monitor.c @@ -1454,6 +1454,13 @@ static void hmp_info_opcount(Monitor *mon, const QDi= ct *qdict) } #endif =20 +static void hmp_info_sync(Monitor *mon, const QDict *qdict) +{ + int64_t max =3D qdict_get_try_int(qdict, "max", 10); + + qsp_report((FILE *)mon, monitor_fprintf, max); +} + static void hmp_info_history(Monitor *mon, const QDict *qdict) { int i; diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx index 70639f656a..56a3249bad 100644 --- a/hmp-commands-info.hx +++ b/hmp-commands-info.hx @@ -297,6 +297,22 @@ STEXI @item info opcount @findex info opcount Show dynamic compiler opcode counters +ETEXI + + { + .name =3D "sync", + .args_type =3D "max:i?", + .params =3D "[max]", + .help =3D "show sync profiling info for " + "up to max entries (default: 10). " + "Entries are sorted by wait time.", + .cmd =3D hmp_info_sync, + }, + +STEXI +@item info sync +@findex sync +Show sync profiling info. ETEXI =20 { --=20 2.17.1