perf jevents: Make build fail on JSON parse error
authorAndi Kleen <ak@linux.intel.com>
Tue, 25 Jul 2017 00:16:38 +0000 (17:16 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 26 Jul 2017 01:46:36 +0000 (22:46 -0300)
commit3f056b66647bafc39f060a57289320765915972c
tree5e8c6ba82fc3e5743f7f39e93fb241a9b1200282
parenta1a8bed32de197801bb861fbf13cd01496df3e05
perf jevents: Make build fail on JSON parse error

Today, when a JSON file fails parsing the build continues, but there are
no json files built in, which is difficult to debug later.  Make the
build stop on a parse error instead.

v2: Add fixes from Sukadev. Now we handle architectures
    with no JSON events correctly. And fix some stale comments.

Committer note:

Tested by running the cross build container tests, that were all failing
for v1.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/20170725001638.19990-1-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/pmu-events/README
tools/perf/pmu-events/jevents.c