perf tools: Propagate get_cpuid() error
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 30 Sep 2019 13:55:34 +0000 (10:55 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Nov 2019 12:05:42 +0000 (13:05 +0100)
commitf0ba7ab26bfc3b7c651a264ab283895a575b1cf7
tree318687f1d171ababc1ad2ba3b347bd3198c07af8
parentc022c7f6171ef8fa47e9d9a5ad2180d1e24843a0
perf tools: Propagate get_cpuid() error

[ Upstream commit f67001a4a08eb124197ed4376941e1da9cf94b42 ]

For consistency, propagate the exact cause for get_cpuid() to have
failed.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-9ig269f7ktnhh99g4l15vpu2@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/arch/powerpc/util/header.c
tools/perf/arch/s390/util/header.c
tools/perf/arch/x86/util/header.c
tools/perf/builtin-kvm.c