From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Oct 2018 23:51:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,419,1534834800"; d="scan'208";a="80469069" Received: from unknown (HELO saesrv02-S2600CWR.intel.com) ([10.224.122.203]) by fmsmga007.fm.intel.com with ESMTP; 23 Oct 2018 23:51:52 -0700 From: Vipin Varghese To: dev@dpdk.org, stephen@networkplumber.org, maryam.tahhan@intel.com, reshma.pattan@intel.com Cc: amol.patel@intel.com, sivaprasad.tummala@intel.com, stephen1.byrne@intel.com, michael.j.glynn@intel.com, Vipin Varghese Date: Wed, 24 Oct 2018 12:17:59 +0530 Message-Id: <20181024064805.23197-3-vipin.varghese@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181024064805.23197-1-vipin.varghese@intel.com> References: <20181023135751.21536-1-vipin.varghese@intel.com> <20181024064805.23197-1-vipin.varghese@intel.com> Subject: [dpdk-dev] [PATCH v2 3/9] app/procinfo: add prototype for debug instances X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2018 06:51:56 -0000 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