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

Vipin Varghese vipin.varghese at intel.com
Tue Oct 23 15:57:45 CEST 2018


Add prototype and function calls for the debug functions.

Signed-off-by: Vipin Varghese <vipin.varghese at intel.com>
---
 app/proc-info/main.c | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/app/proc-info/main.c b/app/proc-info/main.c
index 5505d3fe3..5511fcb71 100644
--- a/app/proc-info/main.c
+++ b/app/proc-info/main.c
@@ -628,6 +628,36 @@ metrics_display(int port_id)
 	rte_free(names);
 }
 
+static void
+debug_port(void)
+{
+	printf(" port");
+}
+
+static void
+debug_tm(void)
+{
+	printf(" tm");
+}
+
+static void
+debug_crypto(void)
+{
+	printf(" crypto");
+}
+
+static void
+debug_ring(char *name)
+{
+	printf(" rings Name (%s)", name);
+}
+
+static void
+debug_mempool(char *name)
+{
+	printf(" mempools Name (%s)", name);
+}
+
 int
 main(int argc, char **argv)
 {
@@ -707,6 +737,17 @@ main(int argc, char **argv)
 	/* print port independent stats */
 	if (enable_metrics)
 		metrics_display(RTE_METRICS_GLOBAL);
+	/* print debug information for PMD */
+	if (enable_dbg_port)
+		debug_port();
+	if (enable_dbg_tm)
+		debug_tm();
+	if (enable_dbg_crypto)
+		debug_crypto();
+	if (enable_dbg_ring)
+		debug_ring(ring_name);
+	if (enable_dbg_mempool)
+		debug_mempool(mempool_name);
 
 	ret = rte_eal_cleanup();
 	if (ret)
-- 
2.17.1



More information about the dev mailing list