Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Mar 2007 15:11:47 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        Andriy Gapon <avg@icyb.net.ua>
Cc:        Alexander Leidinger <Alexander@leidinger.net>, freebsd-emulation@freebsd.org, freebsd-amd64@freebsd.org
Subject:   Re: amd64 package of linux_kdump
Message-ID:  <200703211511.47948.jhb@freebsd.org>
In-Reply-To: <46017C2F.5060208@icyb.net.ua>
References:  <45FFB7F0.5030107@icyb.net.ua> <200703211054.43466.jhb@freebsd.org> <46017C2F.5060208@icyb.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703211511.47948.jhb>