diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-11-22 09:48:42 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-11-22 09:48:42 +0000 |
commit | c621e4b40d613123ef475846ccb7867b6548d727 (patch) | |
tree | b32208907345cfe94ace2f6cebaf87d5f7b06a8d /xen/include/asm-x86/xenoprof.h | |
parent | 7ecfc1cfff3985ae47de849bf0ea06591a1d1c23 (diff) | |
download | xen-c621e4b40d613123ef475846ccb7867b6548d727.tar.gz xen-c621e4b40d613123ef475846ccb7867b6548d727.tar.bz2 xen-c621e4b40d613123ef475846ccb7867b6548d727.zip |
[XENOPROFILE] Replace x86 specific code in xen/common/xenoprof.c
- 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>
Diffstat (limited to 'xen/include/asm-x86/xenoprof.h')
-rw-r--r-- | xen/include/asm-x86/xenoprof.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/xen/include/asm-x86/xenoprof.h b/xen/include/asm-x86/xenoprof.h new file mode 100644 index 0000000000..ab1dbd3a45 --- /dev/null +++ b/xen/include/asm-x86/xenoprof.h @@ -0,0 +1,57 @@ +/****************************************************************************** + * asm-x86/xenoprof.h + * xenoprof x86 arch specific header file + * + * Copyright (c) 2006 Isaku Yamahata <yamahata at valinux co jp> + * VA Linux Systems Japan K.K. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifndef __ASM_X86_XENOPROF_H__ +#define __ASM_X86_XENOPROF_H__ + +int nmi_init(int *num_events, int *is_primary, char *cpu_type); +int nmi_reserve_counters(void); +int nmi_setup_events(void); +int nmi_enable_virq(void); +int nmi_start(void); +void nmi_stop(void); +void nmi_disable_virq(void); +void nmi_release_counters(void); + +#define xenoprof_arch_init(num_events, is_primary, cpu_type) \ + nmi_init(num_events, is_primary, cpu_type) +#define xenoprof_arch_reserve_counters() nmi_reserve_counters() +#define xenoprof_arch_setup_events() nmi_setup_events() +#define xenoprof_arch_enable_virq() nmi_enable_virq() +#define xenoprof_arch_start() nmi_start() +#define xenoprof_arch_stop() nmi_stop() +#define xenoprof_arch_disable_virq() nmi_disable_virq() +#define xenoprof_arch_release_counters() nmi_release_counters() + +int xenoprof_arch_counter(XEN_GUEST_HANDLE(void) arg); + +#endif /* __ASM_X86_XENOPROF_H__ */ + +/* + * Local variables: + * mode: C + * c-set-style: "BSD" + * c-basic-offset: 4 + * tab-width: 4 + * indent-tabs-mode: nil + * End: + */ |