]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
perf tools: Fix error index for pmu event parser
authorJiri Olsa <jolsa@kernel.org>
Wed, 6 Jun 2018 22:15:05 +0000 (00:15 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 7 Jun 2018 18:50:14 +0000 (15:50 -0300)
commitf7fa827f5f432a0b1f34e10fc49da93aeef9f817
treeec72af9f888a069277fc504116a871af13996818
parentc9d366287042489090da0391318df528bdce9941
perf tools: Fix error index for pmu event parser

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?

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <frederic@kernel.org>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/20180606221513.11302-3-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-events.y