"Ken'ichi Ohmichi"<[EMAIL PROTECTED]> writes:

> I think that hardcoding the structure size and fields isn't a good
> idea.  I'm planning to use just the source code in gdb to get the
> structure size and fields.  I think this should reduce the memory usage
> small enough to be run in second kernel.

Pleas folks do this in the user space that runs under the second kernel
it doesn't make any sense whats over in the kernel proper.

But reading the information you need out of the debug information
makes sense.

> By using lseek, disk blocks aren't allocated and the dump file size can
> be reduced.  The dump file must be treated carefully not to expand the
> holes in the file with zero-filled blocks.
>
> The advantage of this method is that crash can be used without any
> modification.  If elf headers are regenerated, crash will recognize the
> skipped pages as memory holes.

You can also trivially do this with the general bss segments in
an ELF header.  It will may take a few more headers but it doesn't
depend on the dump being stored somewhere that supports holes.

Eric
_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot

Reply via email to