aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/xenoprof.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix emacs local variable block to use correct C style variable.David Vrabel2013-02-211-1/+1
| | | | | | | The emacs variable to set the C style from a local variable block is c-file-style, not c-set-style. Signed-off-by: David Vrabel <david.vrabel@citrix.com
* xen: replace XEN_GUEST_HANDLE with XEN_GUEST_HANDLE_PARAM when appropriateStefano Stabellini2012-10-171-3/+3
| | | | | | | | | | | | Note: these changes don't make any difference on x86. Replace XEN_GUEST_HANDLE with XEN_GUEST_HANDLE_PARAM when it is used as an hypercall argument. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Keir Fraser <keir@xen.org> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* x86/xenoprof: fix kernel/user mode detection for HVMJacob Shin2012-10-151-1/+1
| | | | | | | | | | | | | | | While trying oprofile under Xen, I noticed that HVM passive domain's kernel addresses were showing up as user application. It turns out under HVM get_cpu_user_regs()->cs contains 0x0000beef. Signed-off-by: Jacob Shin <jacob.shin@amd.com> Don't cast away const-ness. Use SS instead of CS to determine ring. Special-case real and protected mode. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org> Committed-by: Jan Beulich <jbeulich@suse.com>
* xen: Remove x86_32 build target.Keir Fraser2012-09-121-5/+0
| | | | Signed-off-by: Keir Fraser <keir@xen.org>
* oprofile: don't pass around redundant, easily derived argumentsJan Beulich2012-03-081-4/+3
| | | | | | | | | | | Passing both a struct vcpu pointer and the corresponding struct domain one is simply pointless, especially when intermediate functions just forward it without themselves making use of the already obtained value. Also constify a few function parameters. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
* x86: clean up AMD Fam10 xenoprof IBS codeKeir Fraser2010-11-041-1/+6
| | | | | | | | Arrange for (almost) no code to be generated for x86-32, where the functionality is disabled anyway. Properly __init-annotate the code. Remove some pointless bits. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* xenoprofile: Add IBS supportKeir Fraser2010-08-021-0/+5
| | | | | | | | | 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>
* x86 hvm: msr-handling cleanupKeir Fraser2010-06-101-2/+2
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* xenoprof: Small fixes.Keir Fraser2008-10-281-0/+3
| | | | | Signed-off-by: Ronghui Duan <ronghui.duan@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xenoprof: Fix x86 32-on-64 xenoprof_arch_counter() implementation.Keir Fraser2008-02-251-0/+1
| | | | | From: George Dunlap <George.Dunlap@eu.citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xenoprof: Fix initialisation. Much can be done at boot-time, askfraser@localhost.localdomain2007-07-101-3/+1
| | | | | | indicated by the fact that the low-level functiosn are marked '__init'. Signed-off-by: Keir Fraser <keir@xensource.com>
* Add backtrace support to xenoprof.kfraser@localhost.localdomain2007-06-071-0/+11
| | | | | Signed-off-by: Amitabha Roy <amitabha.roy@gmail.com> Reviewed-by: Jose Renato G Santos <joserenato.santos@hp.com>
* [XENOPROFILE] Make xenoprof arch-generic with dynamic mapping/unmapping xenoprofkfraser@localhost.localdomain2006-11-221-0/+11
| | | | | | | | | | | | | | buffer support and auto translated mode support. renamed xenoprof_get_buffer::buf_maddr, xenoprof_passive::buf_maddr to xenoprof_get_buffer::buf_gmaddr, xenoprof_passive::buf_gmaddr to support auto translated mode. With auto translated mode enabled, it is gmaddr, not maddr. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Simplify the share function. Signed-off-by: Keir Fraser <keir@xensource.com>
* [XENOPROFILE] Replace x86 specific code in xen/common/xenoprof.ckfraser@localhost.localdomain2006-11-221-0/+57
- replace nmi_ prefix with xenoprof_arch_ prefix - move config_counter to xen/arch/x86/oprofile/xenoprof.c Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>