amd64 package of linux_kdump

John Baldwin jhb at freebsd.org
Wed Mar 21 20:50:32 UTC 2007


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


More information about the freebsd-emulation mailing list