Re: [PATCH 2/4] perf kvm: Move arch specific code into arch/

2014-07-09 Thread David Ahern
On 7/3/14, 8:29 AM, Alexander Yarygin wrote: 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_eve

Re: [PATCH 2/4] perf kvm: Move arch specific code into arch/

2014-07-07 Thread Christian Borntraeger
On 03/07/14 16:29, Alexander Yarygin wrote: > 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

[PATCH 2/4] perf kvm: Move arch specific code into arch/

2014-07-03 Thread Alexander Yarygin
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