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 7C84041CE5; Mon, 20 Feb 2023 13:56:03 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 600304303D; Mon, 20 Feb 2023 13:56:03 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 49DE740395 for ; Mon, 20 Feb 2023 13:56:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676897761; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=MD5BJm95hYzXhCu4/kdoUw0AQk9TjQ/ORkPAMS055Jc=; b=cmwuP789u2CkjIximlSBn+O6TQloo9pGlwtuogTTKG7ckLMwdt/U63innCmPP5T2Psmb4D Tc6n43bhYnYgtEeovzafO4Le5DKdUIicS5BOC6funLaKfuaA0zHLOnhMY3i4uX8nUEbMfU kJN/iiKHxu53K7CFKzx3qTRdgbYwI3I= Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-651-S5qnElMiNNCwo_T0JGmuNQ-1; Mon, 20 Feb 2023 07:56:00 -0500 X-MC-Unique: S5qnElMiNNCwo_T0JGmuNQ-1 Received: by mail-pf1-f199.google.com with SMTP id a23-20020a62bd17000000b0058db55a8d7aso297043pff.21 for ; Mon, 20 Feb 2023 04:56:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MD5BJm95hYzXhCu4/kdoUw0AQk9TjQ/ORkPAMS055Jc=; b=B9ktT9Aq3I0+PYfKh1LwYvBwtBaPQd6PKYRvKCRe1x3CJ6vdGqQ7Pg/UaW6jaGgSGK k8Zz9RMb+EsJ9j1qEhXm6993sHZvPaxmm/QIupz2DUhP7mu6SLKD7/OThC2vJ93ZYzST V3n0a1QRitv9vSMOSZ8V0kc2fucbC9fWqBItfqdk1t33dbEa8pgCP0RsxpOp8CAQ3PcI 1Ew4MZAj5wRiVyaEryRXWdyp4inbVdMnmPhzYNdf7UTSDBOObzD5b7WiY/Y+hS04lAA6 D0UO7HQR6sGfzG4rWs55n64Ai95LoHrkDNO9W3V7xZ+w42V1I6iDPtBxkvl3cNpeYkaa LQAQ== X-Gm-Message-State: AO0yUKWsRXyV6Pm2PHkqg1Kjd//BZblN1GlOvbrZh7yIxlP+IxN3Zhlp lkPTXTzc6IjWFyw1ckJ5VnQSbppYR/NWvzN79tL2FQwH49RrPj8Kv+QQkvuczjSeJMhP4QxMnnB cOcetKlBDSDY9N80BVbQ= X-Received: by 2002:a63:77c1:0:b0:4fc:27da:54a5 with SMTP id s184-20020a6377c1000000b004fc27da54a5mr167106pgc.1.1676897759747; Mon, 20 Feb 2023 04:55:59 -0800 (PST) X-Google-Smtp-Source: AK7set/5OlPRc5rJ57vJ0d8B7ezaO/JwcDDlmb8Gfrz4Hq18K0Ij7ZpCT0jni8N6YHoW+KyIkTi/OJBBRZC1iNclmDA= X-Received: by 2002:a63:77c1:0:b0:4fc:27da:54a5 with SMTP id s184-20020a6377c1000000b004fc27da54a5mr167097pgc.1.1676897759422; Mon, 20 Feb 2023 04:55:59 -0800 (PST) MIME-Version: 1.0 References: <20230131022841.10775-1-haijie1@huawei.com> <20230210024835.33804-1-haijie1@huawei.com> <20230210024835.33804-4-haijie1@huawei.com> In-Reply-To: <20230210024835.33804-4-haijie1@huawei.com> From: David Marchand Date: Mon, 20 Feb 2023 13:55:48 +0100 Message-ID: Subject: Re: [PATCH v4 3/3] ring: add telemetry cmd for ring info To: Jie Hai Cc: honnappa.nagarahalli@arm.com, konstantin.v.ananyev@yandex.ru, dev@dpdk.org, liudongdong3@huawei.com, bruce.richardson@intel.com, Thomas Monjalon X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" 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 On Fri, Feb 10, 2023 at 3:50 AM Jie Hai wrote: > > 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, What would an external user make of such an information? I'd like to have a better idea what your usecase is. If it is for debugging, well, gdb is probably a better candidate. > "mz_name": "RG_MP_mb_pool_0", > "mz_len": 2097536, > "mz_hugepage_sz": 1073741824, > "mz_socket_id": 0, > "mz_flags": "0x0" > } > } -- David Marchand