OSDN Git Service

perf kvm: Move kvm-stat header file from conditional inclusion to common include...
authorAnju T Sudhakar <anju@linux.vnet.ibm.com>
Thu, 18 Jul 2019 18:17:47 +0000 (23:47 +0530)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 20 Sep 2019 13:28:26 +0000 (10:28 -0300)
commit8067b3da970baa12e6045400fdf009673b8dd3c2
tree9d1ed0e3d1ff91e39b2364a3b36a020b86dae803
parentce095c9ac293d1683f9fedb214811727dff0d508
perf kvm: Move kvm-stat header file from conditional inclusion to common include section

Move kvm-stat header file to the common include section, and make the
definitions in the header file under the conditional inclusion `#ifdef
HAVE_KVM_STAT_SUPPORT`.

This helps to define other 'perf kvm' related function prototypes in
kvm-stat header file, which may not need kvm-stat support.

Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com>
Reviewed-By: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: linuxppc-dev@lists.ozlabs.org
Link: http://lore.kernel.org/lkml/20190718181749.30612-1-anju@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-kvm.c
tools/perf/util/kvm-stat.h