From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vipin Varghese Subject: [PATCH v2 3/9] app/procinfo: add prototype for debug instances Date: Wed, 24 Oct 2018 12:17:59 +0530 Message-ID: <20181024064805.23197-3-vipin.varghese@intel.com> References: <20181023135751.21536-1-vipin.varghese@intel.com> <20181024064805.23197-1-vipin.varghese@intel.com> Cc: amol.patel@intel.com, sivaprasad.tummala@intel.com, stephen1.byrne@intel.com, michael.j.glynn@intel.com, Vipin Varghese To: dev@dpdk.org, stephen@networkplumber.org, maryam.tahhan@intel.com, reshma.pattan@intel.com Return-path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 0F61A5A6E for ; Wed, 24 Oct 2018 08:51:55 +0200 (CEST) In-Reply-To: <20181024064805.23197-1-vipin.varghese@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add prototype and function calls for the debug functions. Signed-off-by: Vipin Varghese --- 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 0da148c8c..e2791aaab 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