perf stat: Remove dead code: no need to set os.evsel twice
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>
This commit is contained in:
parent
fac49a3bc4
commit
7a16183316
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue