[v1,3/9] app/procinfo: add prototype for debug instances
Checks
Commit Message
Add prototype and function calls for the debug functions.
Signed-off-by: Vipin Varghese <vipin.varghese@intel.com>
---
app/proc-info/main.c | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
@@ -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)