Alexander Yarygin 9daa81239e perf kvm: Move arch specific code into arch/
Parts of a 'perf kvm stat' code make sense only for x86.

Let's move this code into the arch/x86/kvm-stat.c file and add
util/kvm-stat.h for generic structure definitions.

Add a global array 'kvm_reg_events_ops' for accessing the arch-specific
'kvm_events_ops' from generic code.

Since the several global arrays (i.e. 'kvm_events_tp') have been moved
to arch/*, we can not know their sizes and use them directly in
builtin-kvm.c. This patch fixes that problem by adding trimming NULL
element to each array and changing the behavior of their handlers in
generic code.

Reviewed-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Alexander Yarygin <yarygin@linux.vnet.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1404397747-20939-3-git-send-email-yarygin@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2014-07-16 17:57:32 -03:00
..
2014-05-01 21:22:39 +02:00
2013-12-27 15:17:00 -03:00
2014-05-01 21:22:39 +02:00
2014-05-01 21:22:39 +02:00
2011-02-16 13:30:48 +01:00
2014-01-13 11:37:17 -03:00
2014-01-13 11:37:17 -03:00
2012-02-13 23:17:40 -02:00
2014-05-01 21:22:39 +02:00
2014-05-01 21:22:39 +02:00
2014-06-09 13:34:49 +02:00
2014-06-09 13:34:49 +02:00
2014-05-21 11:48:33 +02:00
2014-05-01 21:22:39 +02:00
2014-05-01 21:22:39 +02:00
2014-05-01 21:22:39 +02:00
2014-02-18 09:34:49 -03:00
2014-06-09 13:34:49 +02:00
2013-08-07 17:35:26 -03:00
2014-05-01 21:22:39 +02:00
2014-07-10 00:22:54 +02:00
2014-07-10 00:22:54 +02:00
2013-09-11 10:09:32 -03:00
2014-05-01 21:22:39 +02:00
2014-05-01 21:22:39 +02:00
2014-05-01 21:22:39 +02:00
2014-05-01 21:22:39 +02:00