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 6CDA745A2F; Thu, 26 Sep 2024 03:22:32 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F40974025D; Thu, 26 Sep 2024 03:22:31 +0200 (CEST) Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) by mails.dpdk.org (Postfix) with ESMTP id E293D400EF for ; Thu, 26 Sep 2024 03:22:29 +0200 (CEST) Received: from mail.maildlp.com (unknown [172.19.163.44]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4XDbMb3mNjz1HK3D; Thu, 26 Sep 2024 09:18:35 +0800 (CST) Received: from dggpeml500024.china.huawei.com (unknown [7.185.36.10]) by mail.maildlp.com (Postfix) with ESMTPS id ABFAD1400D2; Thu, 26 Sep 2024 09:22:26 +0800 (CST) Received: from [10.67.121.161] (10.67.121.161) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 26 Sep 2024 09:22:26 +0800 Message-ID: <23f5935b-63d7-441c-a4cd-19c7e5da700b@huawei.com> Date: Thu, 26 Sep 2024 09:22:26 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v8 2/8] ethdev: add telemetry cmd for registers To: Jie Hai , , , , CC: References: <20231214015650.3738578-1-haijie1@huawei.com> <20240925064038.27135-1-haijie1@huawei.com> <20240925064038.27135-3-haijie1@huawei.com> Content-Language: en-US From: fengchengwen In-Reply-To: <20240925064038.27135-3-haijie1@huawei.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.121.161] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml500024.china.huawei.com (7.185.36.10) 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 Acked-by: Chengwen Feng On 2024/9/25 14:40, Jie Hai wrote: > This patch adds a telemetry command for registers dump, > and supports obtaining the registers of a specified module. > > In one way, the number of registers that can be exported > is limited by the number of elements carried by dict and > container. In another way, the length of the string > exported by telemetry is limited by MAX_OUTPUT_LEN. > Therefore, when the number of registers to be exported > exceeds, some information will be lost. Warn on the former > case. > > An example usage is shown below: > --> /ethdev/regs,0,ring > { > "/ethdev/regs": { > "registers_length": 318, > "registers_width": 4, > "register_offset": "0x0", > "version": "0x1140011", > "group_0": { > "Q0_ring_rx_bd_num": "0x0", > "Q0_ring_rx_bd_len": "0x0", > ... > }, > "group_1": { > ... > }, > ... > } > > Signed-off-by: Jie Hai > Reviewed-by: Ferruh Yigit