From 63f14f931324ea7655bd9aed36c07beadb179a9e Mon Sep 17 00:00:00 2001 From: Konrad Sztyber Date: Thu, 20 May 2021 16:59:34 +0200 Subject: [PATCH] app/trace: remove the -q (quiet) option The application doesn't do anything useful when started with this option, so there's no point in keeping it. Signed-off-by: Konrad Sztyber Change-Id: I2fca31fc7ccca11fc44a7f9a7a7b83d7634048d7 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8103 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris Reviewed-by: Aleksey Marchuk --- app/trace/trace.cpp | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/app/trace/trace.cpp b/app/trace/trace.cpp index b83e0be83..6573649d4 100644 --- a/app/trace/trace.cpp +++ b/app/trace/trace.cpp @@ -82,7 +82,6 @@ struct object_stats { struct object_stats g_stats[SPDK_TRACE_MAX_OBJECT]; static char *g_exe_name; -static int g_verbose = 1; static uint64_t g_tsc_rate; static uint64_t g_first_tsc = 0x0; @@ -233,9 +232,7 @@ process_event(struct spdk_trace_entry *e, uint64_t tsc_rate, stats->size[e->object_id] = e->size; } - if (g_verbose) { - print_event(e, tsc_rate, tsc_offset, lcore); - } + print_event(e, tsc_rate, tsc_offset, lcore); } static int @@ -298,7 +295,6 @@ static void usage(void) { fprintf(stderr, "usage:\n"); fprintf(stderr, " %s