From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E7A72A052B; Tue, 28 Jul 2020 21:14:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 782C71C0B6; Tue, 28 Jul 2020 21:13:54 +0200 (CEST) Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by dpdk.org (Postfix) with ESMTP id 7A6661C027 for ; Tue, 28 Jul 2020 21:13:49 +0200 (CEST) Received: by mail-pg1-f193.google.com with SMTP id l63so12573081pge.12 for ; Tue, 28 Jul 2020 12:13:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9a1Muj0yhg5qN2YZyeRJeEfa7ViIacgWiKYyExxeKOY=; b=HmXyD6C2EtI228lvC2Y6hwA8P4XHhMAjYx759sTKUJxxcBZQnehCa8e/AnLN1yEUw5 d7v3c1p6fjNQNwnAINhXPGWAl23W0NzAcam+WOhdCgaGPqpj9ISsYoypl/8RDLCCERrq t1dH0v8f1WdQj8CT6vPhHjvsixr8c5yUT+SGTemvzW9xE+YmVWv5R5rOdagNkRLeXEVS qRQgRQY1womKA/rxwd+p4SyTJripmDoobkOm7Ym8wbK/gjwlQI3kt9piK+ZdLGH+4xyS XNu/HCSF3vZ3KrDsT4TSuHnLII+8i+9RiZBbWbO29gYLDQx+Li54H/S5HgPhYfxFJaLZ 0edw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9a1Muj0yhg5qN2YZyeRJeEfa7ViIacgWiKYyExxeKOY=; b=qZpxsck3tSUmPFXLuEhpEjlQCozEzxOM4Rru/UIjWa/7B12JwDxu4tfOGLrjmcwNux n+Bu/1d9PPMircnjEMAx2+0YPqf9lNupvIKJpHB51XUMYcmXkUMGb6ssFvjiC6HYIdJA ZUwv/VG1q6k7xqhs7BsLA1rSRcbqLqrFfBk9DwsY3/qsNCmktvhVVyFXo0Z6wk4wbhyi 8RJC4FCL4iG/ZL8ViYitPoJssWv8om4khPSFT0YCqDPINnnLV43XjiVVZ64+jkjm0BmV VW4EcEtEQkKFLgYPUnKIpmfZJBHqiUhsN+LVwrsglBK1KZohyWv5aYLTj+G/kXZO9xcs YC6Q== X-Gm-Message-State: AOAM533DaS+dCuxDprGIFdASi6QbvA/NTXaSBAIo65uGhISGuxsPCIbw WUjAJ9/EYgFE4NtboYpOvQ9bCkW9phtTLQ== X-Google-Smtp-Source: ABdhPJwqGMb0Z+ha8S6d4ORyuLJ6imjDW+PXbdh6PhMZLuYsZ3rnnms9xI0+DqDku/yC/xZF4py+Qg== X-Received: by 2002:a05:6a00:2283:: with SMTP id f3mr25642506pfe.89.1595963628298; Tue, 28 Jul 2020 12:13:48 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id x66sm19045748pgb.12.2020.07.28.12.13.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2020 12:13:47 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Hemant Agrawal , Stephen Hemminger Date: Tue, 28 Jul 2020 12:13:27 -0700 Message-Id: <20200728191330.20864-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200728191330.20864-1-stephen@networkplumber.org> References: <20200506193741.24117-1-stephen@networkplumber.org> <20200728191330.20864-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v5 5/8] app/proc-info: enhance mempool to print ops name X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Hemant Agrawal Enhance the mempool details to also print the ops index and name Signed-off-by: Hemant Agrawal Signed-off-by: Stephen Hemminger --- app/proc-info/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index 28838be882b9..b2011c448577 100644 --- a/app/proc-info/main.c +++ b/app/proc-info/main.c @@ -1219,7 +1219,10 @@ show_mempool(char *name) if (name != NULL) { struct rte_mempool *ptr = rte_mempool_lookup(name); if (ptr != NULL) { + struct rte_mempool_ops *ops; + flags = ptr->flags; + ops = rte_mempool_get_ops(ptr->ops_index); printf(" - Name: %s on socket %d\n" " - flags:\n" "\t -- No spread (%c)\n" @@ -1249,6 +1252,8 @@ show_mempool(char *name) printf(" - Count: avail (%u), in use (%u)\n", rte_mempool_avail_count(ptr), rte_mempool_in_use_count(ptr)); + printf(" - ops_index %d ops_name %s\n", + ptr->ops_index, ops ? ops->name : "NA"); return; } -- 2.27.0