Re: [PATCH 1/4] perf kvm: Use defines of kvm events

From: David Ahern
Date: Mon Jul 07 2014 - 11:42:35 EST


On 7/7/14, 8:06 AM, Christian Borntraeger wrote:
On 03/07/14 16:29, Alexander Yarygin wrote:
Currently perf-kvm uses string literals for kvm event names,
but it works only for x86, because other architectures may have
other names for those events.

To reduce dependence on architecture, we add <asm/kvm_perf.h> file with
defines for:
- kvm_entry and kvm_exit events,
- exit reason field name in kvm_exit event,
- length of exit reasons strings,
- vcpu_id field name in kvm trace events,

and replace literals in perf-kvm.

Signed-off-by: Alexander Yarygin <yarygin@xxxxxxxxxxxxxxxxxx>
Reviewed-by: Cornelia Huck <cornelia.huck@xxxxxxxxxx>

Acked-by: Christian Borntraeger <borntraeger@xxxxxxxxxx>
Would be good if Paolo and David could ack the KVM/perf parts. Then this should also go into next merge window.

I want to try out the patches on x86 and verify compiles on ppc; hopefully by end of day tomorrow.

David

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/