|
|
|
[RFC][PATCH 0/2] Partial dump 3 (analyzing kernel debug information) | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Hi
This is a patch to add new functionality to analyze the kernel debugging
information in the partial dump command "makedumpfile".
I implemented functionality modifying the "dwarfdump" command that displays
the kernel debugging information.
The patch consists of two parts;
Part1: makedumpfile-read_dwarf_01-org_dwarf_src.patch
This patch consists of unmodified source code from
the dwarfdump command used from "makedumpfile".
Part2: makedumpfile-read_dwarf_02-new.patch
This patch adds the function calls to the "makedumpfile" command.
It also includes modification or reduction of source code from the
dwarfdump command applied by part1.
You can compile the makedumpfile command if you apply this patch to the
original makedumpfile command archived at
http://lists.osdl.org/pipermail/fastboot/2006-April/002818.html
Follow the steps below to build the command.
1.Please load original makedumpfile.tar.tar and 2 patch files on work directory.
2.Please extract original makedumpfile.
"mv makedumpfile.tar.tar makedumpfile.tar.gz;
gunzip makedumpfile.tar.gz;
tar -xovf makedumpfile.tar"
3.Please apply the patch in order of part1 and part2.
"patch -p1 < makedumpfile-read_dwarf_01-org_dwarf_src.patch;
patch -p1 < makedumpfile-read_dwarf_02-new.patch"
4.Please execute the following.
"make clean; make; make install"
Usage is shown as follows. [-x vmlinux] was added.
Usage:
makedumpfile [-c|-E] [-d dump_level] [-x vmlinux] [map_file] dump_mem dump_file
Available options:
[-c]:
This option enables the compression function of each page.
This is only for crash.
[-E]:
Create the ELF dump file.
You can not specify this opiton with [-c].
This is only for gdb.
[-d dump_level]:
This is specification of the skipped pages.
The page type marked in the following table is skipped.
dump | zero cache cache user
level | page page private data
---------------------------------------
0 |
1 | X
2 | X
4 | X X
8 | X
15 | X X X X
[-x vmlinux]:
This is a pathname to a vmlinux file compiled with -g option
for first-kernel.
This is necessary when dump_level is 2 or more.
[map_file]:
This is a pathname to a system.map file of first-kernel.
This is necessary when dump_level is 2 or more.
dump_mem:
This is a pathname to a first-kernel memory core image.
This argument is generally /proc/vmcore.
dump_file:
This is a pathname to a filename created by this command.
Thanks
tachibana
[Netdev] [Linux Wireless] [Kernel Newbies] [Security] [Linux for Hams] [Netfilter] [Bugtraq] [Photo] [Yosemite] [Yosemite Forum] [MIPS Linux] [ARM Linux] [Linux RAID] [Linux Admin] [Samba] [Linux Media] [Linux Resources]