From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 21 18:40:58 2007 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8700916A404; Wed, 21 Mar 2007 18:40:58 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from gateway.cybervisiontech.com.ua (gateway.cybervisiontech.com.ua [88.81.251.18]) by mx1.freebsd.org (Postfix) with ESMTP id 0E72D13C489; Wed, 21 Mar 2007 18:40:57 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost (hq.cybervisiontech.com [127.0.0.1]) by gateway.cybervisiontech.com.ua (Postfix) with ESMTP id 33799ED4DAD; Wed, 21 Mar 2007 20:40:49 +0200 (EET) X-Virus-Scanned: amavisd-new at cybervisiontech.com Received: from gateway.cybervisiontech.com.ua ([127.0.0.1]) by localhost (hq.cybervisiontech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id epq06hNkhGWf; Wed, 21 Mar 2007 20:40:42 +0200 (EET) Received: from [10.2.1.87] (rein.cybervisiontech.com.ua [10.2.1.87]) by gateway.cybervisiontech.com.ua (Postfix) with ESMTP id A67D5ED4CFC; Wed, 21 Mar 2007 20:40:42 +0200 (EET) Message-ID: <46017C2F.5060208@icyb.net.ua> Date: Wed, 21 Mar 2007 20:40:47 +0200 From: Andriy Gapon User-Agent: Thunderbird 1.5.0.10 (X11/20070315) MIME-Version: 1.0 To: John Baldwin References: <45FFB7F0.5030107@icyb.net.ua> <20070320215436.70f11d43@Magellan.Leidinger.net> <46011D03.8070706@icyb.net.ua> <200703211054.43466.jhb@freebsd.org> In-Reply-To: <200703211054.43466.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Alexander Leidinger , freebsd-emulation@freebsd.org, freebsd-amd64@freebsd.org Subject: Re: amd64 package of linux_kdump X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2007 18:40:58 -0000 on 21/03/2007 16:54 John Baldwin said the following: > > The problem is that the kdump records aren't 32-bit, but 64-bit. You can try > using www.freebsd.org/~jhb/ktrace64.c to convert a 64-bit ktrace.out file to > a 32-bit ktrace.out file and then run linux_kdump on the 32-bit file. I cant > recall if I fully tested ktrace64.c though, so YMMV. John, thank you very much! This was something that I haven't thought about. The tool works very well, the only obvious/visible bug was in copy_sysret(): 125 assert(h32->ktr_len == sizeof(k64)); 126 127 memcpy(&k64, buf, sizeof(k64)); <--- this was missing 128 129 /* Translate the data. */ -- Andriy Gapon