aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/xenoprof.h
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-06-07 14:30:21 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-06-07 14:30:21 +0100
commit94c85019981270a21e6e3aeba694f3b7b444b566 (patch)
treec42a47aae990fa457bbd10e8372a4cb9744d094e /xen/include/asm-x86/xenoprof.h
parent30f01d9011561268556d47273a8599ebd9b3173a (diff)
downloadxen-94c85019981270a21e6e3aeba694f3b7b444b566.tar.gz
xen-94c85019981270a21e6e3aeba694f3b7b444b566.tar.bz2
xen-94c85019981270a21e6e3aeba694f3b7b444b566.zip
Add backtrace support to xenoprof.
Signed-off-by: Amitabha Roy <amitabha.roy@gmail.com> Reviewed-by: Jose Renato G Santos <joserenato.santos@hp.com>
Diffstat (limited to 'xen/include/asm-x86/xenoprof.h')
-rw-r--r--xen/include/asm-x86/xenoprof.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/xen/include/asm-x86/xenoprof.h b/xen/include/asm-x86/xenoprof.h
index 8554f7c383..2ce369dd81 100644
--- a/xen/include/asm-x86/xenoprof.h
+++ b/xen/include/asm-x86/xenoprof.h
@@ -46,7 +46,18 @@ int xenoprof_arch_counter(XEN_GUEST_HANDLE(void) arg);
struct vcpu;
struct cpu_user_regs;
+
int xenoprofile_get_mode(struct vcpu *v, struct cpu_user_regs * const regs);
+
+static inline int xenoprof_backtrace_supported(void)
+{
+ return 1;
+}
+
+void xenoprof_backtrace(
+ struct domain *d, struct vcpu *vcpu,
+ struct cpu_user_regs *const regs, unsigned long depth, int mode);
+
#define xenoprof_shared_gmfn(d, gmaddr, maddr) \
do { \
(void)(maddr); \