aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xentrace/xenctx.c
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-04-28 14:04:13 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-04-28 14:04:13 +0000
commit162dad1cfbdb556a6d9d35d98e2c79d899adea9c (patch)
tree34f8af3c00d6ae89a1aeca46f10cee2735f4f9fe /tools/xentrace/xenctx.c
parentb9cd4450f8a869d848db2a4d73608100eea02492 (diff)
downloadxen-162dad1cfbdb556a6d9d35d98e2c79d899adea9c.tar.gz
xen-162dad1cfbdb556a6d9d35d98e2c79d899adea9c.tar.bz2
xen-162dad1cfbdb556a6d9d35d98e2c79d899adea9c.zip
bitkeeper revision 1.1389.1.2 (4270ed5dZvr_HdIQR0eBM2m4Kj81_A)
Renames: execution_context/xen_regs -> cpu_user_regs full_execution_context -> vcpu_guest_context [defined both 'struct xxx' and 'xxx_t' forms] Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/xentrace/xenctx.c')
-rw-r--r--tools/xentrace/xenctx.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/tools/xentrace/xenctx.c b/tools/xentrace/xenctx.c
index 4a65d53169..28dfd360ac 100644
--- a/tools/xentrace/xenctx.c
+++ b/tools/xentrace/xenctx.c
@@ -24,27 +24,26 @@
#include "xc.h"
#ifdef __i386__
-void
-print_ctx(full_execution_context_t *ctx1)
+void print_ctx(vcpu_guest_context_t *ctx1)
{
- execution_context_t *ctx = &ctx1->cpu_ctxt;
+ struct cpu_user_regs *regs = &ctx1->user_regs;
- printf("eip: %08lx\t", ctx->eip);
- printf("esp: %08lx\n", ctx->esp);
+ printf("eip: %08lx\t", regs->eip);
+ printf("esp: %08lx\n", regs->esp);
- printf("eax: %08lx\t", ctx->eax);
- printf("ebx: %08lx\t", ctx->ebx);
- printf("ecx: %08lx\t", ctx->ecx);
- printf("edx: %08lx\n", ctx->edx);
+ printf("eax: %08lx\t", regs->eax);
+ printf("ebx: %08lx\t", regs->ebx);
+ printf("ecx: %08lx\t", regs->ecx);
+ printf("edx: %08lx\n", regs->edx);
- printf("esi: %08lx\t", ctx->esi);
- printf("edi: %08lx\t", ctx->edi);
- printf("ebp: %08lx\n", ctx->ebp);
+ printf("esi: %08lx\t", regs->esi);
+ printf("edi: %08lx\t", regs->edi);
+ printf("ebp: %08lx\n", regs->ebp);
- printf(" cs: %08lx\t", ctx->cs);
- printf(" ds: %08lx\t", ctx->ds);
- printf(" fs: %08lx\t", ctx->fs);
- printf(" gs: %08lx\n", ctx->gs);
+ printf(" cs: %08lx\t", regs->cs);
+ printf(" ds: %08lx\t", regs->ds);
+ printf(" fs: %08lx\t", regs->fs);
+ printf(" gs: %08lx\n", regs->gs);
}
#endif
@@ -53,7 +52,7 @@ void dump_ctx(u32 domid, u32 vcpu)
{
int ret;
xc_domaininfo_t info;
- full_execution_context_t ctx;
+ vcpu_guest_context_t ctx;
int xc_handle = xc_interface_open(); /* for accessing control interface */