From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id A03211B4C1 for ; Mon, 7 Jan 2019 10:41:44 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Jan 2019 01:41:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,450,1539673200"; d="scan'208";a="289444977" Received: from unknown (HELO saesrv02-S2600CWR.intel.com) ([10.224.122.203]) by orsmga005.jf.intel.com with ESMTP; 07 Jan 2019 01:41:41 -0800 From: Vipin Varghese To: dev@dpdk.org, thomas@monjalon.net Cc: reshma.pattan@intel.com, john.mcnamara@intel.com, amol.patel@intel.com, stephen@networkplumber.org, konstantin.ananyev@intel.com, jasvinder.singh@intel.com, Vipin Varghese Date: Mon, 7 Jan 2019 21:08:23 +0530 Message-Id: <20190107153829.34047-2-vipin.varghese@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190107153829.34047-1-vipin.varghese@intel.com> References: <20181213050842.64587-1-vipin.varghese@intel.com> <20190107153829.34047-1-vipin.varghese@intel.com> Subject: [dpdk-dev] [PATCH v8 1/7] app/procinfo: prepare for new debug functions 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: Mon, 07 Jan 2019 09:41:45 -0000 Update code base and meson build file to accomadate changes for the new functionality. Signed-off-by: Vipin Varghese Acked-by: Reshma Pattan --- app/proc-info/main.c | 13 +++++++++++++ app/proc-info/meson.build | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index c20effa4f..c7697389c 100644 --- a/app/proc-info/main.c +++ b/app/proc-info/main.c @@ -29,6 +29,9 @@ #include #include #include +#include +#include +#include /* Maximum long option length for option parsing. */ #define MAX_LONG_OPT_SZ 64 @@ -36,6 +39,10 @@ #define MAX_STRING_LEN 256 +#define STATS_BDR_FMT "========================================" +#define STATS_BDR_STR(w, s) printf("%.*s%s%.*s\n", w, \ + STATS_BDR_FMT, s, w, STATS_BDR_FMT) + /**< mask of enabled ports */ static uint32_t enabled_port_mask; /**< Enable stats. */ @@ -65,6 +72,9 @@ static char *xstats_name; static uint32_t nb_xstats_ids; static uint64_t xstats_ids[MAX_NB_XSTATS_IDS]; +/* show border */ +static char bdr_str[MAX_STRING_LEN]; + /**< display usage */ static void proc_info_usage(const char *prgname) @@ -668,5 +678,8 @@ main(int argc, char **argv) if (ret) printf("Error from rte_eal_cleanup(), %d\n", ret); + snprintf(bdr_str, MAX_STRING_LEN, " "); + STATS_BDR_STR(50, bdr_str); + return 0; } diff --git a/app/proc-info/meson.build b/app/proc-info/meson.build index a52b2ee4a..866b390d6 100644 --- a/app/proc-info/meson.build +++ b/app/proc-info/meson.build @@ -3,4 +3,4 @@ sources = files('main.c') allow_experimental_apis = true -deps += ['ethdev', 'metrics'] +deps += ['ethdev', 'metrics', 'security'] -- 2.17.1