From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id C10FC1B4F6 for ; Tue, 23 Oct 2018 16:01:43 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Oct 2018 07:01:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,416,1534834800"; d="scan'208";a="80934600" Received: from unknown (HELO saesrv02-S2600CWR.intel.com) ([10.224.122.203]) by fmsmga008.fm.intel.com with ESMTP; 23 Oct 2018 07:01:38 -0700 From: Vipin Varghese To: dev@dpdk.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: Tue, 23 Oct 2018 19:27:45 +0530 Message-Id: <20181023135751.21536-3-vipin.varghese@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181023135751.21536-1-vipin.varghese@intel.com> References: <20181023135751.21536-1-vipin.varghese@intel.com> Subject: [dpdk-dev] [PATCH v1 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: Tue, 23 Oct 2018 14:01:44 -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 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