[dpdk-dev] [PATCH v6 3/9] app/procinfo: add prototype for debug instances

Vipin Varghese vipin.varghese at intel.com
Mon Dec 3 06:49:54 CET 2018


Add prototype function calls for the show functions.

Signed-off-by: Vipin Varghese <vipin.varghese at intel.com>
---

V6:
 - add call to iter mempool - Vipin Varghese

V3:
 - update function names from debug to show - Vipin Varghese

V2:
 - removed if else ladder - Vipin Varghese
---
 app/proc-info/main.c | 50 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/app/proc-info/main.c b/app/proc-info/main.c
index bda7e9af8..698b120f2 100644
--- a/app/proc-info/main.c
+++ b/app/proc-info/main.c
@@ -638,6 +638,42 @@ metrics_display(int port_id)
 	rte_free(names);
 }
 
+static void
+show_port(void)
+{
+	printf(" port\n");
+}
+
+static void
+show_tm(void)
+{
+	printf(" tm\n");
+}
+
+static void
+show_crypto(void)
+{
+	printf(" crypto\n");
+}
+
+static void
+show_ring(char *name)
+{
+	printf(" ring Name (%s)\n", name);
+}
+
+static void
+show_mempool(char *name)
+{
+	printf(" mempool Name (%s)\n", name);
+}
+
+static void
+iter_mempool(char *name)
+{
+	printf(" Iter elements in mempool (%s)\n", name);
+}
+
 int
 main(int argc, char **argv)
 {
@@ -718,6 +754,20 @@ main(int argc, char **argv)
 	if (enable_metrics)
 		metrics_display(RTE_METRICS_GLOBAL);
 
+	/* show information for PMD */
+	if (enable_shw_port)
+		show_port();
+	if (enable_shw_tm)
+		show_tm();
+	if (enable_shw_crypto)
+		show_crypto();
+	if (enable_shw_ring)
+		show_ring(ring_name);
+	if (enable_shw_mempool)
+		show_mempool(mempool_name);
+	if (enable_iter_mempool)
+		iter_mempool(mempool_iter_name);
+
 	ret = rte_eal_cleanup();
 	if (ret)
 		printf("Error from rte_eal_cleanup(), %d\n", ret);
-- 
2.17.1



More information about the dev mailing list