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 6804341CAC; Thu, 16 Feb 2023 07:55:03 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 503A540A8B; Thu, 16 Feb 2023 07:55:03 +0100 (CET) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by mails.dpdk.org (Postfix) with ESMTP id ED97E40695 for ; Thu, 16 Feb 2023 07:55:01 +0100 (CET) Received: from kwepemm600004.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4PHQcz02r6zGpP3; Thu, 16 Feb 2023 14:53:06 +0800 (CST) Received: from [10.67.103.231] (10.67.103.231) by kwepemm600004.china.huawei.com (7.193.23.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Thu, 16 Feb 2023 14:54:54 +0800 Message-ID: <10ccbb3c-0e47-c8f4-4534-525bc5e6a409@huawei.com> Date: Thu, 16 Feb 2023 14:54:54 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH v4 3/3] ring: add telemetry cmd for ring info To: Jie Hai , , , CC: , References: <20230131022841.10775-1-haijie1@huawei.com> <20230210024835.33804-1-haijie1@huawei.com> <20230210024835.33804-4-haijie1@huawei.com> From: "lihuisong (C)" In-Reply-To: <20230210024835.33804-4-haijie1@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.103.231] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm600004.china.huawei.com (7.193.23.242) X-CFilter-Loop: Reflected 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 在 2023/2/10 10:48, Jie Hai 写道: > This patch supports dump of ring information by its name. > An example using this command is shown below: > > --> /ring/info,MP_mb_pool_0 > { > "/ring/info": { > "name": "MP_mb_pool_0", > "socket": 0, > "flags": "0x0", > "producer_type": "MP", > "consumer_type": "MC", > "size": 262144, > "mask": "0x3ffff", > "capacity": 262143, > "used_count": 153197, > "consumer_tail": 2259, > "consumer_head": 2259, > "producer_tail": 155456, > "producer_head": 155456, > "mz_name": "RG_MP_mb_pool_0", > "mz_len": 2097536, > "mz_hugepage_sz": 1073741824, > "mz_socket_id": 0, > "mz_flags": "0x0" > } > } > > Signed-off-by: Jie Hai > Reviewed-by: Honnappa Nagarahalli lgtm, Acked-by: Huisong Li