perf: Enhance perf to allow for guest statistic collection from host
authorZhang, Yanmin <yanmin_zhang@linux.intel.com>
Mon, 19 Apr 2010 05:32:41 +0000 (13:32 +0800)
committerAvi Kivity <avi@redhat.com>
Mon, 19 Apr 2010 09:35:33 +0000 (12:35 +0300)
commit39447b386c846bbf1c56f6403c5282837486200f
tree5ceaf9900919e4bd269b92c55df15e33039fefd1
parentb5a80b7e91d6c067339e4d81a0176a835e9bf910
perf: Enhance perf to allow for guest statistic collection from host

Below patch introduces perf_guest_info_callbacks and related
register/unregister functions. Add more PERF_RECORD_MISC_XXX bits
meaning guest kernel and guest user space.

Signed-off-by: Zhang Yanmin <yanmin_zhang@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/perf_event.h
arch/x86/kernel/cpu/perf_event.c
include/linux/perf_event.h
kernel/perf_event.c