1
/******************************************************************************
3
* xenoprof x86 arch specific header file
5
* Copyright (c) 2006 Isaku Yamahata <yamahata at valinux co jp>
6
* VA Linux Systems Japan K.K.
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
#ifndef __ASM_X86_XENOPROF_H__
24
#define __ASM_X86_XENOPROF_H__
26
int nmi_reserve_counters(void);
27
int nmi_setup_events(void);
28
int nmi_enable_virq(void);
31
void nmi_disable_virq(void);
32
void nmi_release_counters(void);
34
int xenoprof_arch_init(int *num_events, char *cpu_type);
35
#define xenoprof_arch_reserve_counters() nmi_reserve_counters()
36
#define xenoprof_arch_setup_events() nmi_setup_events()
37
#define xenoprof_arch_enable_virq() nmi_enable_virq()
38
#define xenoprof_arch_start() nmi_start()
39
#define xenoprof_arch_stop() nmi_stop()
40
#define xenoprof_arch_disable_virq() nmi_disable_virq()
41
#define xenoprof_arch_release_counters() nmi_release_counters()
43
int xenoprof_arch_counter(XEN_GUEST_HANDLE(void) arg);
44
int compat_oprof_arch_counter(XEN_GUEST_HANDLE(void) arg);
49
int xenoprofile_get_mode(struct vcpu *v, struct cpu_user_regs * const regs);
51
static inline int xenoprof_backtrace_supported(void)
56
void xenoprof_backtrace(
57
struct domain *d, struct vcpu *vcpu,
58
struct cpu_user_regs *const regs, unsigned long depth, int mode);
60
#define xenoprof_shared_gmfn(d, gmaddr, maddr) \
63
gdprintk(XENLOG_WARNING, \
64
"xenoprof/x86 with autotranslated mode enabled" \
65
"isn't supported yet\n"); \
67
int passive_domain_do_rdmsr(struct cpu_user_regs *regs);
68
int passive_domain_do_wrmsr(struct cpu_user_regs *regs);
69
void passive_domain_destroy(struct vcpu *v);
71
#endif /* __ASM_X86_XENOPROF_H__ */
79
* indent-tabs-mode: nil