aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xentrace/xenctx.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-06-19 16:15:05 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-06-19 16:15:05 +0100
commit50bddc93078cb4f3e757027fbe3b9a15659050c0 (patch)
tree260c0ca76854afa92c5536603c5a0361a378341b /tools/xentrace/xenctx.c
parentc385f786c2b062e79c92a760ca0973ef0d54371a (diff)
downloadxen-50bddc93078cb4f3e757027fbe3b9a15659050c0.tar.gz
xen-50bddc93078cb4f3e757027fbe3b9a15659050c0.tar.bz2
xen-50bddc93078cb4f3e757027fbe3b9a15659050c0.zip
libxc: The following patch replace the libxc interface to use
vcpu_guest_context_any_t (which is both 32 and 64 bits) instead of vcpu_guest_context_t. Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
Diffstat (limited to 'tools/xentrace/xenctx.c')
-rw-r--r--tools/xentrace/xenctx.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/xentrace/xenctx.c b/tools/xentrace/xenctx.c
index 59b631d74a..e6d10db356 100644
--- a/tools/xentrace/xenctx.c
+++ b/tools/xentrace/xenctx.c
@@ -22,6 +22,8 @@
#include <string.h>
#include <inttypes.h>
#include <getopt.h>
+#include <xen/foreign/x86_64.h>
+#include <xen/foreign/x86_32.h>
#include "xenctrl.h"
@@ -702,7 +704,7 @@ void print_stack(vcpu_guest_context_t *ctx, int vcpu)
void dump_ctx(int vcpu)
{
int ret;
- vcpu_guest_context_t ctx;
+ vcpu_guest_context_any_t ctx;
xc_dominfo_t dominfo;
xc_handle = xc_interface_open(); /* for accessing control interface */
@@ -727,10 +729,10 @@ void dump_ctx(int vcpu)
exit(-1);
}
- print_ctx(&ctx);
+ print_ctx(&ctx.c);
#ifndef NO_TRANSLATION
- if (is_kernel_text(INSTR_POINTER((&ctx.user_regs))))
- print_stack(&ctx, vcpu);
+ if (is_kernel_text(INSTR_POINTER((&ctx.c.user_regs))))
+ print_stack(&ctx.c, vcpu);
#endif
if (!dominfo.paused) {