perf tools: Handle allocation failures gracefully
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 4 Apr 2017 15:05:37 +0000 (12:05 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 4 Apr 2017 15:05:37 +0000 (12:05 -0300)
commitf05082b5479d91ee5c04f311acaa394ce0c5e6d2
treeb0b55a042b478400776df8a26bad3870c4927596
parent427748068a973627b406bf7312342b6fe4742d07
perf tools: Handle allocation failures gracefully

The callers of perf_read_values__enlarge_counters() already propagate
errors, so just print some debug diagnostics and handle allocation
failures gracefully, not trying to do silly things like 'a =
realloc(a)'.

Link: http://lkml.kernel.org/n/tip-nsmmh7uzpg35rzcl9nq7yztp@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/values.c