perf kvm: Fix building perf kvm on non x86 arches
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Mon, 19 Nov 2012 08:19:21 +0000 (16:19 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 23 Nov 2012 23:40:17 +0000 (20:40 -0300)
commit7321090f6751c9987c26a8c81c63680d16a614d7
tree27a52ff8c74ec62f604f72e68255df884ec5c112
parent3786063a3c0ba26a2400a04476c0c0ccfd3c6beb
perf kvm: Fix building perf kvm on non x86 arches

Now, 'perf kvm stat' is only supported on x86, let its code depend on
(__x86_64__ || __i386__) to fix building it on other architectures.

Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Dong Hao <haodong@linux.vnet.ibm.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Josh Boyer <jwboyer@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Runzhen Wang <runzhen@linux.vnet.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-arch@vger.kernel.org
Cc: x86@kernel.org
Link: http://lkml.kernel.org/r/50A9EB89.70901@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-kvm.c