diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-08-02 11:00:56 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-08-02 11:00:56 +0100 |
commit | 89de5a8f164045da99b5dff2e6620c5c869ffb9c (patch) | |
tree | a174e275f3487d52dbc72ab8740e1c7c154d1709 /xen/include/asm-x86/xenoprof.h | |
parent | afc6c57b6d604614433d214eca24ad16bc770d08 (diff) | |
download | xen-89de5a8f164045da99b5dff2e6620c5c869ffb9c.tar.gz xen-89de5a8f164045da99b5dff2e6620c5c869ffb9c.tar.bz2 xen-89de5a8f164045da99b5dff2e6620c5c869ffb9c.zip |
xenoprofile: Add IBS support
Add IBS support for AMD family 10h processors. The major
implementation is derived from latest Linux. Two hypercalls are added,
which is necessary for IBS feature detection and user mode parameter
read.
Signed-off-by: Wei Wang <wei.wang2@amd.com>
Diffstat (limited to 'xen/include/asm-x86/xenoprof.h')
-rw-r--r-- | xen/include/asm-x86/xenoprof.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xen/include/asm-x86/xenoprof.h b/xen/include/asm-x86/xenoprof.h index be4e74241d..8431379d95 100644 --- a/xen/include/asm-x86/xenoprof.h +++ b/xen/include/asm-x86/xenoprof.h @@ -42,10 +42,15 @@ int xenoprof_arch_init(int *num_events, char *cpu_type); int xenoprof_arch_counter(XEN_GUEST_HANDLE(void) arg); int compat_oprof_arch_counter(XEN_GUEST_HANDLE(void) arg); +int xenoprof_arch_ibs_counter(XEN_GUEST_HANDLE(void) arg); struct vcpu; struct cpu_user_regs; +/* AMD IBS support */ +u32 ibs_init(void); +extern u32 ibs_caps; + int xenoprofile_get_mode(struct vcpu *v, struct cpu_user_regs * const regs); static inline int xenoprof_backtrace_supported(void) |