Hi.

makedumpfile version 1.0.6 is released.
This version fixes 2 problems.

[1/3] Fix the physical address for i386PAE
[2/3] Fix the ELF dumpfile
[3/3] Update the version info

Please test it, and your opinions/comments are welcome.

- [1/3] Fix the physical address for i386PAE
  The first problem is that makedumpfile can not run on i386PAE system
  because the variables of physical address are 32bit though i386PAE
  system has physical address of 36bit. The first patch changes the
  variables of physical address to "unsigned long long".
  This change affects only i386 because of the following size.

    Arch   | unsigned long(old) | unsigned long long(new)
  ---------+--------------------+-------------------------
    i386   |        32          |          64
    x86_64 |        64          |          64
    ia64   |        64          |          64


- [2/3] Fix the ELF dumpfile
  The second problem is that gdb can not analyze the ELF dumpfile.
  When I created the feature of the ELF dumpfile output, I did not
  consider that PT_LOAD is not on page_size boundary. If PT_LOAD is
  not on page_size boundary, gdb can not analyze it.

  Even if you apply the attached patchset to makedumpfile, the crash
  utility can not read the ELF dumpfile in some case. Because necessary
  zero pages are excluded.

  I created the feature of the ELF dumpfile output only for gdb, not for
  the crash utility. The crash utility considers the excluded page of
  the ELF dumpfile to be unaccessible area. If necessary zero pages are
  excluded, the crash utility can not analyze it.
  http://lists.osdl.org/pipermail/fastboot/2006-April/002819.html

  If you use the crash utility, please do not select the ELF dumpfile
  format.


The latest makedumpfile(ver. 1.0.6) is based on makedumpfile from
me(2006/11/17) with all my patches applied.
You can get the latest makedumpfile from the following URL.
https://sourceforge.net/projects/makedumpfile/

Method of installation:
  You can compile the makedumpfile command as follows;
  1. "tar -zxvf makedumpfile-1.0.6.tar.gz"
  2. "cd makedumpfile"
  3. "make; make install"

Usage:
  makedumpfile [-c] [-E] [-d dump_level] [-x vmlinux] dump_mem dump_file

Example:
  If you want to exclude pages filled by zero, cache pages, user pages
  and free pages and to enable compression, please execute the following
  command.

  # makedumpfile -c -d 31 -x vmlinux /proc/vmcore dumpfile

Todo:
  - Dumping DISCONTIGMEM kernel

Thanks
Ken'ichi Ohmichi
_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot

Reply via email to