perf stat: Remove dead code: no need to set os.evsel twice
authorIan Rogers <irogers@google.com>
Thu, 10 Sep 2020 03:26:30 +0000 (20:26 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 10 Sep 2020 11:13:04 +0000 (08:13 -0300)
No need to set os.evsel twice.

Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Kajol Jain <kjain@linux.ibm.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Link: http://lore.kernel.org/lkml/20200910032632.511566-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/stat-display.c

index 493ec372fdec4152df02ae02990b4b33effa1a1d..4b57c0c076323ceac2909dd78c031e376f86ed24 100644 (file)
@@ -946,7 +946,6 @@ static void print_metric_headers(struct perf_stat_config *config,
                out.print_metric = print_metric_header;
                out.new_line = new_line_metric;
                out.force_header = true;
-               os.evsel = counter;
                perf_stat__print_shadow_stats(config, counter, 0,
                                              0,
                                              &out,