Re: [PATCH] perf tool sort: Use default sort if evlist is empty
From: Arnaldo Carvalho de Melo
Date: Wed Jul 26 2017 - 16:03:34 EST
Em Thu, Jul 20, 2017 at 10:11:57PM -0700, David Carrillo-Cisneros escreveu:
> Fixes bug noted by Jiri in https://lkml.org/lkml/2017/6/13/755 and caused
> by commit d49dadea7862 ("perf tools: Make 'trace' or 'trace_fields' sort
> key default for tracepoint events")
> not taking into account that evlist is empty in pipe-mode.
>
> Before this commit, pipe mode will only show bogus "100.00% N/A" instead
> of correct output as follows:
>
Thanks, tested and applied.
- Arnaldo