perf report: Remove duplicated 'samples' in lost samples warning
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 5 Apr 2018 17:34:09 +0000 (14:34 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 5 Apr 2018 17:34:09 +0000 (14:34 -0300)
The following message, emitted when samples are lost due to system
overload, had one 'samples' too many, ditch it:

   Processed 25333 samples and lost 20.88% samples!

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Cc: Kan Liang <kan.liang@intel.com>
Link: https://lkml.kernel.org/n/tip-oev1469y02hmfere6r2kkxp6@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/session.c

index c71ced7db152e6380984d740311ec205679c39eb..f4a7a437ee87a2c3d7e7501991e237be3ed6d852 100644 (file)
@@ -1591,7 +1591,7 @@ static void perf_session__warn_about_errors(const struct perf_session *session)
                drop_rate = (double)stats->total_lost_samples /
                            (double) (stats->nr_events[PERF_RECORD_SAMPLE] + stats->total_lost_samples);
                if (drop_rate > 0.05) {
-                       ui__warning("Processed %" PRIu64 " samples and lost %3.2f%% samples!\n\n",
+                       ui__warning("Processed %" PRIu64 " samples and lost %3.2f%%!\n\n",
                                    stats->nr_events[PERF_RECORD_SAMPLE] + stats->total_lost_samples,
                                    drop_rate * 100.0);
                }