From nobody Mon Feb 9 21:12:07 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=oracle.com Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1548940443802746.4511397751635; Thu, 31 Jan 2019 05:14:03 -0800 (PST) Received: from localhost ([127.0.0.1]:54576 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpCAH-0002Rk-MT for importer@patchew.org; Thu, 31 Jan 2019 08:13:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpC5l-0007Gz-Vd for qemu-devel@nongnu.org; Thu, 31 Jan 2019 08:09:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpC5k-0000Ko-61 for qemu-devel@nongnu.org; Thu, 31 Jan 2019 08:09:17 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:39192) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gpC5j-0000KR-U2 for qemu-devel@nongnu.org; Thu, 31 Jan 2019 08:09:16 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x0VD4Iqd128430; Thu, 31 Jan 2019 13:09:14 GMT Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2q8g6rghgx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 31 Jan 2019 13:09:14 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x0VD9DbP032288 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 31 Jan 2019 13:09:13 GMT Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x0VD9Db0015429; Thu, 31 Jan 2019 13:09:13 GMT Received: from localhost.localdomain (/77.138.186.148) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 31 Jan 2019 05:09:12 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : in-reply-to : references; s=corp-2018-07-02; bh=tftgPfxnFHKh8t8MqRoy4CtSUsgmcIqkWfFDo3gPFEU=; b=IxTnBhnKAQt637/11ug4DVPxQDtYjgsZpYgHCFrvtVjuGT+ZdndcPE0dTdVHf6EL3WDE VRJj6E+KUF0Mf3AS7uVd/icClH3/xzlLok8CgjMFpOeZnUeYKOZft8nbwKeNM0lsDAoV jwPFUtdI9rHi4hGE+YggrfcE/hUuE5mTx/qO/0jpYcYMfeic8phIlX76XaAgG/zLi1vN Awhxzac2O6GLnGmWn6Vfy3vdJuWZerf1nynPrdogRFWYvvjH4lX2d5RRtXCVcl0ZLC5r snDCuvLpIhDaQSp74ttUfwFu5pjJkqMQiV2Z8z8E52Z3vZ/bnz39JHXp92HJfPc66Zv3 Ig== From: Yuval Shaia To: dgilbert@redhat.com, yuval.shaia@oracle.com, marcel.apfelbaum@gmail.com, armbru@redhat.com, qemu-devel@nongnu.org Date: Thu, 31 Jan 2019 15:08:47 +0200 Message-Id: <20190131130850.6850-8-yuval.shaia@oracle.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190131130850.6850-1-yuval.shaia@oracle.com> References: <20190131130850.6850-1-yuval.shaia@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9152 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901310103 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 156.151.31.85 Subject: [Qemu-devel] [PATCH 07/10] monitor: Expose pvrdma device statistics counters 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Yuval Shaia --- hmp-commands-info.hx | 14 ++++++++++++++ monitor.c | 6 ++++++ 2 files changed, 20 insertions(+) diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx index cbee8b944d..32f6215619 100644 --- a/hmp-commands-info.hx +++ b/hmp-commands-info.hx @@ -522,6 +522,20 @@ STEXI @item info cpustats @findex info cpustats Show CPU statistics. +ETEXI + + { + .name =3D "pvrdmastats", + .args_type =3D "", + .params =3D "", + .help =3D "show pvrdma device statistics", + .cmd =3D hmp_info_pvrdmastats, + }, + +STEXI +@item info pvrdmastats +@findex info pvrdmastats +Show pvrdma device statistics. ETEXI =20 #if defined(CONFIG_SLIRP) diff --git a/monitor.c b/monitor.c index eb39fb015b..7a96c02438 100644 --- a/monitor.c +++ b/monitor.c @@ -84,6 +84,7 @@ #include "sysemu/iothread.h" #include "qemu/cutils.h" #include "tcg/tcg.h" +#include "hw/rdma/vmw/pvrdma.h" =20 #if defined(TARGET_S390X) #include "hw/s390x/storage-keys.h" @@ -1399,6 +1400,11 @@ static void hmp_info_cpustats(Monitor *mon, const QD= ict *qdict) cpu_dump_statistics(cs, (FILE *)mon, &monitor_fprintf, 0); } =20 +static void hmp_info_pvrdmastats(Monitor *mon, const QDict *qdict) +{ + pvrdma_dump_statistics((FILE *)mon, &monitor_fprintf); +} + static void hmp_info_trace_events(Monitor *mon, const QDict *qdict) { const char *name =3D qdict_get_try_str(qdict, "name"); --=20 2.17.2