Hi.

This patchset fixes two problems.

[PATCH 1/3] Fix the page-flags
 The first patch fixes the values of page-flags to solve the problem
 that makedumpfile cannot distinguish the cache page correctly.
 To distinguish the cache page, makedumpfile uses the values of PG_lru,
 PG_swapcache, and PG_private. And there were the mistakes of these
 values in the existing makedumpfile. This problem was reported by
 Akiyama-san.

                  | PG_lru | PG_private | PG_swapcache
 -----------------+--------+------------+--------------
  old makedumpfile|   5    |     12     |      16
  2.6.15          |   5    |     11     |      15
  2.6.16.27       |   5    |     11     |      15
  2.6.17          |   5    |     11     |      15
  2.6.18          |   5    |     11     |      15

[PATCH 2/3] Fix the variable as pfn
 The second patch fixes the variable as pfn at write_pages().
 The existing makedumpfile aborts with "Floating point exception"
 if you select ELF format as a dumpfile format(-E option).
 it used dh->max_mapnr as pfn at write_pages(), but makedumpfile
 does not set the value into dh->max_mapnr with ELF format, and
 the value divides by 0.

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

[PATCH 1/3] Fix the page-flags
[PATCH 2/3] Fix the variable as pfn
[PATCH 3/3] Update the version info of makedumpfile

Method of installation:
  You can compile the makedumpfile command as follows;
  1. "tar -zxvf makedumpfile-1.0.4.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