From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0FC1045A38; Thu, 26 Sep 2024 14:43:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0E43A40676; Thu, 26 Sep 2024 14:43:15 +0200 (CEST) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by mails.dpdk.org (Postfix) with ESMTP id E32AD4025D for ; Thu, 26 Sep 2024 14:43:08 +0200 (CEST) Received: from mail.maildlp.com (unknown [172.19.163.48]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4XDtWm277rzcbgy; Thu, 26 Sep 2024 20:41:40 +0800 (CST) Received: from kwepemf500004.china.huawei.com (unknown [7.202.181.242]) by mail.maildlp.com (Postfix) with ESMTPS id EFF7618005F; Thu, 26 Sep 2024 20:43:06 +0800 (CST) Received: from localhost.huawei.com (10.90.30.45) by kwepemf500004.china.huawei.com (7.202.181.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Thu, 26 Sep 2024 20:43:06 +0800 From: Jie Hai To: , , , CC: , , Subject: [PATCH v9 0/8] support dump reigster names and filter Date: Thu, 26 Sep 2024 20:42:41 +0800 Message-ID: <20240926124249.81679-1-haijie1@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20231214015650.3738578-1-haijie1@huawei.com> References: <20231214015650.3738578-1-haijie1@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.90.30.45] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemf500004.china.huawei.com (7.202.181.242) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The registers can be dumped through the API rte_eth_dev_get_reg_info. However, only register values are exported, which is inconvenient for users to interpret. Therefore, an extension of the structure "rte_dev_reg_info" and a new API rte_eth_dev_get_reg_info_ext is added to support the capability of exporting the name of the corresponding register and filtering by module names. -- v9: 1. add Acked-by. 2. fix typo and inaccurate expression of hns3.rst. v8: 1. fix typo on patch[0/8]. 2. add Reviewed-bys and Acked-bys. 3. fix potentital memory leak and error information on telemetry. 4. fix on reviews about hns3 driver. v7: fix doc indention. -- Jie Hai (8): ethdev: support report register names and filter ethdev: add telemetry cmd for registers net/hns3: remove some basic address dump net/hns3: fix dump counter of registers net/hns3: remove separators between register module net/hns3: refactor register dump net/hns3: support report names of registers net/hns3: support filter registers by module names doc/guides/nics/hns3.rst | 7 + doc/guides/rel_notes/release_24_11.rst | 8 + drivers/net/hns3/hns3_regs.c | 1384 +++++++++++++++++++----- lib/ethdev/ethdev_trace.h | 2 + lib/ethdev/rte_dev_info.h | 11 + lib/ethdev/rte_ethdev.c | 38 + lib/ethdev/rte_ethdev.h | 29 + lib/ethdev/rte_ethdev_telemetry.c | 130 +++ lib/ethdev/version.map | 1 + 9 files changed, 1344 insertions(+), 266 deletions(-) -- 2.33.0