From: Hemant Agrawal <hemant.agrawal@nxp.com>
To: dev@dpdk.org
Cc: maryam.tahhan@intel.com, reshma.pattan@intel.com,
Hemant Agrawal <hemant.agrawal@nxp.com>
Subject: [dpdk-dev] [PATCH v3 1/2] app/proc-info: enhance mempool to print ops name
Date: Mon, 13 Jul 2020 18:45:00 +0530 [thread overview]
Message-ID: <20200713131501.17422-1-hemant.agrawal@nxp.com> (raw)
In-Reply-To: <20200711095343.10523-1-hemant.agrawal@nxp.com>
Enhance the mempool details to also print the ops index and name
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
These patches are built over Stephen's series:
https://patches.dpdk.org/cover/69876/
But they can be applied independently as well.
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 e0b61b366..a5d16765b 100644
--- a/app/proc-info/main.c
+++ b/app/proc-info/main.c
@@ -1276,7 +1276,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"
@@ -1306,6 +1309,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.17.1
next prev parent reply other threads:[~2020-07-13 13:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-10 16:06 [dpdk-dev] [PATCH] app/procinfo: enhance port and mempool info Hemant Agrawal
2020-07-10 18:07 ` Stephen Hemminger
2020-07-11 9:53 ` [dpdk-dev] [PATCH v2] app/procinfo: enhance port mempool and crypto info Hemant Agrawal
2020-07-12 3:12 ` Stephen Hemminger
2020-07-13 3:49 ` Hemant Agrawal
2020-07-15 0:07 ` Stephen Hemminger
2020-07-15 0:43 ` Hemant Agrawal
2020-07-13 9:57 ` Pattan, Reshma
2020-07-13 13:15 ` Hemant Agrawal [this message]
2020-07-13 13:15 ` [dpdk-dev] [PATCH v3 2/2] app/proc-info: add crypto security context info Hemant Agrawal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200713131501.17422-1-hemant.agrawal@nxp.com \
--to=hemant.agrawal@nxp.com \
--cc=dev@dpdk.org \
--cc=maryam.tahhan@intel.com \
--cc=reshma.pattan@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).