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 669CB45777; Fri, 9 Aug 2024 11:22:44 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3CD9742DC9; Fri, 9 Aug 2024 11:22:44 +0200 (CEST) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by mails.dpdk.org (Postfix) with ESMTP id 11F0C402A5 for ; Fri, 9 Aug 2024 11:22:43 +0200 (CEST) Received: from mail.maildlp.com (unknown [172.19.163.174]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4WgJMs2ShGzyNyf; Fri, 9 Aug 2024 17:22:17 +0800 (CST) Received: from kwepemf500004.china.huawei.com (unknown [7.202.181.242]) by mail.maildlp.com (Postfix) with ESMTPS id AFB83140121; Fri, 9 Aug 2024 17:22:40 +0800 (CST) Received: from [10.67.121.175] (10.67.121.175) 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; Fri, 9 Aug 2024 17:22:40 +0800 Message-ID: <67fc5d32-0c21-6a45-e25b-041811bbad5f@huawei.com> Date: Fri, 9 Aug 2024 17:22:39 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v6 0/8] support dump reigser names and filter From: Jie Hai To: CC: , , , References: <20231214015650.3738578-1-haijie1@huawei.com> <20240722065826.3039119-1-haijie1@huawei.com> In-Reply-To: <20240722065826.3039119-1-haijie1@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.121.175] 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 All maintainers, Hi, kindly ping for review. Thanks, Jie Hai On 2024/7/22 14:58, Jie Hai wrote: > 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. > > The hns3 driver and telemetry are examples for that. > > 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/rel_notes/release_24_07.rst | 8 + > drivers/net/hns3/hns3_regs.c | 1394 +++++++++++++++++++----- > 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 | 128 +++ > lib/ethdev/version.map | 3 + > 8 files changed, 1347 insertions(+), 266 deletions(-) >