From patchwork Thu Dec 13 05:08:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Varghese, Vipin" X-Patchwork-Id: 48734 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6BFF31B4A6; Thu, 13 Dec 2018 06:09:09 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id D10791B49C for ; Thu, 13 Dec 2018 06:09:07 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Dec 2018 21:09:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,347,1539673200"; d="scan'208";a="129528863" Received: from unknown (HELO saesrv02-S2600CWR.intel.com) ([10.224.122.203]) by fmsmga001.fm.intel.com with ESMTP; 12 Dec 2018 21:09:05 -0800 From: Vipin Varghese To: konstantin.ananyev@intel.com, stephen@networkplumber.org, reshma.pattan@intel.com, dev@dpdk.org, john.mcnamara@intel.com Cc: thomas@monjalon.net, stephen1.byrne@intel.com, amol.patel@intel.com, Vipin Varghese Date: Thu, 13 Dec 2018 10:38:36 +0530 Message-Id: <20181213050842.64587-4-vipin.varghese@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181213050842.64587-1-vipin.varghese@intel.com> References: <20181203055000.39012-2-vipin.varghese@intel.com> <20181213050842.64587-1-vipin.varghese@intel.com> Subject: [dpdk-dev] [PATCH v7 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add prototype function calls for the show functions. Signed-off-by: Vipin Varghese --- V6: - add call to iter mempool - Vipin Varghese V3: - update function names from debug to show - Vipin Varghese V2: - removed if else ladder - Vipin Varghese --- app/proc-info/main.c | 50 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index 41c5bcea5..c4e17668e 100644 --- a/app/proc-info/main.c +++ b/app/proc-info/main.c @@ -638,6 +638,42 @@ metrics_display(int port_id) rte_free(names); } +static void +show_port(void) +{ + printf(" port\n"); +} + +static void +show_tm(void) +{ + printf(" tm\n"); +} + +static void +show_crypto(void) +{ + printf(" crypto\n"); +} + +static void +show_ring(char *name) +{ + printf(" ring Name (%s)\n", name); +} + +static void +show_mempool(char *name) +{ + printf(" mempool Name (%s)\n", name); +} + +static void +iter_mempool(char *name) +{ + printf(" Iter elements in mempool (%s)\n", name); +} + int main(int argc, char **argv) { @@ -718,6 +754,20 @@ main(int argc, char **argv) if (enable_metrics) metrics_display(RTE_METRICS_GLOBAL); + /* show information for PMD */ + if (enable_shw_port) + show_port(); + if (enable_shw_tm) + show_tm(); + if (enable_shw_crypto) + show_crypto(); + if (enable_shw_ring) + show_ring(ring_name); + if (enable_shw_mempool) + show_mempool(mempool_name); + if (enable_iter_mempool) + iter_mempool(mempool_iter_name); + ret = rte_eal_cleanup(); if (ret) printf("Error from rte_eal_cleanup(), %d\n", ret);