From: Akio Takebe Subject: [patch] fix xenctx for x86_64 Date: Sat, 17 Jun 2006 16:41:01 +0900 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-aWOtA5sNvWiXAiHVkeseM" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-aWOtA5sNvWiXAiHVkeseM Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit Content-Description: Mail message body Hi, all I have no x86_64 machine now. So this patch is not tested. But I think this is obviously wrong. Please check x86_64 people. :-) Signed-off-by: Akio Takebe Best Regards, Akio Takebe diff -r b87ff075dab9 tools/xentrace/xenctx.c --- a/tools/xentrace/xenctx.c Thu Jun 08 11:08:35 2006 -0600 +++ b/tools/xentrace/xenctx.c Sun Jun 25 13:35:32 2006 +0900 @@ -393,7 +393,11 @@ void dump_ctx(int vcpu) } print_ctx(&ctx); +#if defined (__i386__) if (is_kernel_text(ctx.user_regs.eip)) +#elif defined (__x86_64__) + if (is_kernel_text(ctx.user_regs.rip)) +#endif print_stack(&ctx, vcpu); ret = xc_domain_unpause(xc_handle, domid); --Boundary-aWOtA5sNvWiXAiHVkeseM Content-Type: application/octet-stream; name="xenctx_x86_64.patch" Content-Disposition: attachment; filename="xenctx_x86_64.patch" Content-Transfer-Encoding: base64 ZGlmZiAtciBiODdmZjA3NWRhYjkgdG9vbHMveGVudHJhY2UveGVuY3R4LmMKLS0tIGEvdG9v bHMveGVudHJhY2UveGVuY3R4LmMJVGh1IEp1biAwOCAxMTowODozNSAyMDA2IC0wNjAwCisr KyBiL3Rvb2xzL3hlbnRyYWNlL3hlbmN0eC5jCVN1biBKdW4gMjUgMTM6MzU6MzIgMjAwNiAr MDkwMApAQCAtMzkzLDcgKzM5MywxMSBAQCB2b2lkIGR1bXBfY3R4KGludCB2Y3B1KQogICAg IH0KIAogICAgIHByaW50X2N0eCgmY3R4KTsKKyNpZiBkZWZpbmVkIChfX2kzODZfXykKICAg ICBpZiAoaXNfa2VybmVsX3RleHQoY3R4LnVzZXJfcmVncy5laXApKQorI2VsaWYgZGVmaW5l ZCAoX194ODZfNjRfXykKKyAgICBpZiAoaXNfa2VybmVsX3RleHQoY3R4LnVzZXJfcmVncy5y aXApKQorI2VuZGlmCiAgICAgICAgIHByaW50X3N0YWNrKCZjdHgsIHZjcHUpOwogCiAgICAg cmV0ID0geGNfZG9tYWluX3VucGF1c2UoeGNfaGFuZGxlLCBkb21pZCk7Cg== --Boundary-aWOtA5sNvWiXAiHVkeseM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-aWOtA5sNvWiXAiHVkeseM--