Re: [PATCH 02/10] perf tools: Fix error index for pmu event parser

From: Arnaldo Carvalho de Melo
Date: Thu Jun 07 2018 - 14:53:19 EST


Em Thu, Jun 07, 2018 at 12:15:05AM +0200, Jiri Olsa escreveu:
> For events we provide specific error message we need to set
> error column index, PMU parser is missing that, adding it.
>
> Before:
> $ perf stat -e cycles,krava/cycles/ kill
> event syntax error: 'cycles,krava/cycles/'
> \___ Cannot find PMU `krava'. Missing kernel support?
>
> After:
> $ perf stat -e cycles,krava/cycles/ kill
> event syntax error: 'cycles,krava/cycles/'
> \___ Cannot find PMU `krava'. Missing kernel support?

Thanks, tested and applied.

- Arnaldo