From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 21 20:50:32 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 26C6916A405; Wed, 21 Mar 2007 20:50:32 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id BC1EA13C4AE; Wed, 21 Mar 2007 20:50:31 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l2LKoN0n058824; Wed, 21 Mar 2007 15:50:23 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Andriy Gapon Date: Wed, 21 Mar 2007 15:11:47 -0400 User-Agent: KMail/1.9.6 References: <45FFB7F0.5030107@icyb.net.ua> <200703211054.43466.jhb@freebsd.org> <46017C2F.5060208@icyb.net.ua> In-Reply-To: <46017C2F.5060208@icyb.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703211511.47948.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Wed, 21 Mar 2007 15:50:24 -0500 (EST) X-Virus-Scanned: ClamAV 0.88.3/2892/Wed Mar 21 05:40:09 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx 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 20:50:32 -0000 On Wednesday 21 March 2007 02:40:47 pm Andriy Gapon wrote: > 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. */ Oh, heh, I meant for k64 to be a pointer as in the malloc utrace case. I've fixed this and a bug in the malloc utrace stuff and uploaded a new ktrace64.c. Thanks for testing it! -- John Baldwin