Hello community, here is the log from the commit of package makedumpfile checked in at Fri Feb 8 19:56:23 CET 2008. -------- --- makedumpfile/makedumpfile.changes 2007-12-10 18:30:18.000000000 +0100 +++ makedumpfile/makedumpfile.changes 2008-02-07 10:04:45.000000000 +0100 @@ -1,0 +2,11 @@ +Thu Feb 7 10:02:09 CET 2008 - bwalle@suse.de + +- update to 1.2.4 + o Add linux-2.6.24 support. + o Add xen kernel support to the STDOUT feature (-F option). + o Fix the method looking for .debug_info section in + get_debug_info(). + o Fix the problem that -d1 option cannot be specified without + -x/-i option. + +------------------------------------------------------------------- Old: ---- makedumpfile-1.2.3.tar.bz2 New: ---- makedumpfile-1.2.4.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ makedumpfile.spec ++++++ --- /var/tmp/diff_new_pack.M11582/_old 2008-02-08 19:55:43.000000000 +0100 +++ /var/tmp/diff_new_pack.M11582/_new 2008-02-08 19:55:43.000000000 +0100 @@ -1,7 +1,7 @@ # -# spec file for package makedumpfile (Version 1.2.3) +# spec file for package makedumpfile (Version 1.2.4) # -# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -14,8 +14,8 @@ BuildRequires: gcc-c++ libdw-devel libdw1 libelf-devel libelf0 libelf1 zlib-devel %define elfutils_version 0.124 License: GPL v2 or later -Version: 1.2.3 -Release: 4 +Version: 1.2.4 +Release: 1 Summary: Partial kernel dump Group: System/Kernel Url: https://sourceforge.net/projects/makedumpfile/ @@ -61,19 +61,27 @@ /bin/* %changelog -* Mon Dec 10 2007 - bwalle@suse.de +* Thu Feb 07 2008 bwalle@suse.de +- update to 1.2.4 + o Add linux-2.6.24 support. + o Add xen kernel support to the STDOUT feature (-F option). + o Fix the method looking for .debug_info section in + get_debug_info(). + o Fix the problem that -d1 option cannot be specified without + -x/-i option. +* Mon Dec 10 2007 bwalle@suse.de - Fix generation of vmcoreinfo for ELF64 kernels on 32bit machines -* Thu Nov 29 2007 - bwalle@suse.de +* Thu Nov 29 2007 bwalle@suse.de - updated to 1.2.3 o Add the filtering feature for free_pages of linux-2.6.24. -* Fri Nov 02 2007 - bwalle@suse.de +* Fri Nov 02 2007 bwalle@suse.de - updated to 1.2.2 o Fix the problem that vmcoreinfo cannot be extracted from ELF32 /proc/vmcore. -* Thu Oct 11 2007 - bwalle@suse.de +* Thu Oct 11 2007 bwalle@suse.de - adding libelf0 libelf1 to BuildRequires to make the resolver of the BuildService happy for <= 10.2 -* Wed Oct 10 2007 - bwalle@suse.de +* Wed Oct 10 2007 bwalle@suse.de - updated to 1.2.1 o Add virtual memmap support for x86_64 sparsemem kernel. o Add the message_level (16) for printing the report message. @@ -82,20 +90,20 @@ o Change the common/debug message output to STDOUT from STDERR if not specifying '-F' option o Some cleanups -* Fri Sep 07 2007 - bwalle@suse.de +* Fri Sep 07 2007 bwalle@suse.de - updated to 1.2.0 o extract vmcoreinfo from /proc/vmcore. o linux-2.6.23-rc4-mm1 support. o Add the "-d 1" option (skip zero-filled pages) for Xen. o Add the feature which gets enum number. o Some Cleanups -* Mon Aug 13 2007 - bwalle@suse.de +* Mon Aug 13 2007 bwalle@suse.de - updated to 1.1.6 o linux-2.6.22 support. o Change the check method of free_pages for linux-2.6.21 or later. o Some cleanups -* Fri Jul 27 2007 - bwalle@suse.de +* Fri Jul 27 2007 bwalle@suse.de - updated to 1.1.5 o new feature that allows extracting the part of xen hypervisor and domain-0 from /proc/vmcore. @@ -107,7 +115,7 @@ o Change the method for getting the kernel's OSRELEASE if generating a vmcoreinfo file. o Some cleanups -* Mon Jun 11 2007 - bwalle@suse.de +* Mon Jun 11 2007 bwalle@suse.de - updated to 1.1.4 o Add ia64 DISCONTIGMEM support. o Add ia64_vtop. @@ -115,43 +123,43 @@ o Cleanup README. o Fix DISCONTIGMEM bitmap. o Fix ELF output with overlapping sections. -* Tue Jun 05 2007 - bwalle@suse.de +* Tue Jun 05 2007 bwalle@suse.de - fix build -* Tue Jun 05 2007 - bwalle@suse.de +* Tue Jun 05 2007 bwalle@suse.de - link dynamically against libc to decrease binary size (initrd has already libc included) but leave the other libraries linked statically -* Mon May 21 2007 - tiwai@suse.de +* Mon May 21 2007 tiwai@suse.de - use external elfutils packages. -* Fri Apr 13 2007 - tiwai@suse.de +* Fri Apr 13 2007 tiwai@suse.de - updated to version 1.1.3: * 2.6.21 kernel support * fix handling of excluded zero-filled pages for crash * crash can display dump_level -* Thu Mar 29 2007 - rguenther@suse.de +* Thu Mar 29 2007 rguenther@suse.de - add zlib-devel BuildRequires -* Fri Mar 09 2007 - tiwai@suse.de +* Fri Mar 09 2007 tiwai@suse.de - updated to version 1.1.2: * don't exit even for the unsupported kernel version * minor fixes * documents, man page -* Thu Feb 08 2007 - tiwai@suse.de +* Thu Feb 08 2007 tiwai@suse.de - updated to version 1.1.1: * x86-64 DISCONTIGMEM support -* Mon Feb 05 2007 - tiwai@suse.de +* Mon Feb 05 2007 tiwai@suse.de - updated to version 1.1.0: * support SSH transfer -* Thu Jan 18 2007 - tiwai@suse.de +* Thu Jan 18 2007 tiwai@suse.de - updated to version 1.0.9: * fix the calculation of page size. -* Tue Jan 09 2007 - tiwai@suse.de +* Tue Jan 09 2007 tiwai@suse.de - remove codes with problematic license from elfutils-0.124 (#232894) -* Tue Jan 09 2007 - tiwai@suse.de +* Tue Jan 09 2007 tiwai@suse.de - added COPYING file (from elfutils) - fixed optimization flags to use $RPM_OPT_FLAGS - fix a minor compile error with C99 standard. -* Mon Jan 08 2007 - tiwai@suse.de +* Mon Jan 08 2007 tiwai@suse.de - initial version: 1.0.8 - build statically with elfutils-1.2.4 since elfutils conflicts with the existing libelf. ++++++ makedumpfile-1.2.3.tar.bz2 -> makedumpfile-1.2.4.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/makedumpfile/makedumpfile.8 new/makedumpfile/makedumpfile.8 --- old/makedumpfile/makedumpfile.8 2007-11-14 12:34:36.000000000 +0100 +++ new/makedumpfile/makedumpfile.8 2008-02-07 04:05:22.000000000 +0100 @@ -1,4 +1,4 @@ -.TH MAKEDUMPFILE 8 "November 2007" "makedumpfile v1.2.3" "Linux System Administrator's Manual" +.TH MAKEDUMPFILE 8 "February 2008" "makedumpfile v1.2.4" "Linux System Administrator's Manual" .SH NAME makedumpfile \- make a small dumpfile of kdump .SH SYNOPSIS @@ -221,6 +221,10 @@ # makedumpfile \-F \-E \-d 31 \-i vmcoreinfo /proc/vmcore \e .br | ssh user@host "makedumpfile \-R dumpfile" +.br +# makedumpfile \-F \-E \-\-xen-vmcoreinfo \fIVMCOREINFO\fR /proc/vmcore \e +.br +| ssh user@host "makedumpfile \-R dumpfile" .TP \fB\-R\fR diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/makedumpfile/makedumpfile.c new/makedumpfile/makedumpfile.c --- old/makedumpfile/makedumpfile.c 2007-11-14 12:34:36.000000000 +0100 +++ new/makedumpfile/makedumpfile.c 2008-02-07 04:05:22.000000000 +0100 @@ -1628,10 +1628,10 @@ while ((scn = elf_nextscn(elfd, scn)) != NULL) { scnhdr = gelf_getshdr(scn, &scnhdr_mem); name = elf_strptr(elfd, shstrndx, scnhdr->sh_name); - if (strcmp(name, ".debug_info")) - continue; + if (!strcmp(name, ".debug_info")) + break; } - if (!strcmp(name, ".debug_info")) { + if (strcmp(name, ".debug_info")) { ERRMSG("Can't get .debug_info section.\n"); goto out; } @@ -3220,6 +3220,9 @@ return FALSE; if (!vmcoreinfo_in_vmcore) { + if (info->dump_level <= DL_EXCLUDE_ZERO) + goto out; + MSG("%s doesn't contain vmcoreinfo.\n", info->name_memory); MSG("'-x' or '-i' must be specified.\n"); @@ -3246,6 +3249,7 @@ return FALSE; unlink(info->name_vmcoreinfo); } +out: if (info->dump_level <= DL_EXCLUDE_ZERO) { if (!get_mem_map_without_mm()) return FALSE; @@ -5803,12 +5807,22 @@ if (!create_dump_bitmap_xen()) goto out; + if (info->flag_flatten) { + if (!write_start_flat_header()) + goto out; + } + if (!write_elf_header()) goto out; if (!write_elf_pages()) goto out; + if (info->flag_flatten) { + if (!write_end_flat_header()) + goto out; + } + if (!close_files_for_creating_dumpfile()) goto out; diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/makedumpfile/makedumpfile.h new/makedumpfile/makedumpfile.h --- old/makedumpfile/makedumpfile.h 2007-11-14 12:34:36.000000000 +0100 +++ new/makedumpfile/makedumpfile.h 2008-02-07 04:05:22.000000000 +0100 @@ -422,7 +422,7 @@ #define KVER_MIN_SHIFT 16 #define KERNEL_VERSION(x,y,z) (((x) << KVER_MAJ_SHIFT) | ((y) << KVER_MIN_SHIFT) | (z)) #define OLDEST_VERSION (0x0206000f) /* linux-2.6.15 */ -#define LATEST_VERSION (0x02060017) /* linux-2.6.23 */ +#define LATEST_VERSION (0x02060018) /* linux-2.6.24 */ /* * vmcoreinfo in /proc/vmcore diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/makedumpfile/Makefile new/makedumpfile/Makefile --- old/makedumpfile/Makefile 2007-11-14 12:34:36.000000000 +0100 +++ new/makedumpfile/Makefile 2008-02-07 04:05:22.000000000 +0100 @@ -1,7 +1,7 @@ # makedumpfile -VERSION=1.2.3 -DATE=14 November 2007 +VERSION=1.2.4 +DATE=7 February 2008 CC = gcc CFLAGS = -g -O2 -Wall -D_FILE_OFFSET_BITS=64 \ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/makedumpfile/README new/makedumpfile/README --- old/makedumpfile/README 2007-11-14 12:34:36.000000000 +0100 +++ new/makedumpfile/README 2008-02-07 04:05:22.000000000 +0100 @@ -39,7 +39,7 @@ # make; make install * SUPPORTED KERNELS - makedumpfile (version 1.2.3) supports the following kernels. + makedumpfile (version 1.2.4) supports the following kernels. | FLATMEM | DISCONTIGMEM | SPARSEMEM |-------------------+-------------------+------------------- @@ -56,6 +56,7 @@ 2.6.21 | OK | OK | -- | | OK | OK |TODO| -- | OK | OK | OK | 2.6.22 | OK | OK | -- | | OK | OK |TODO| -- | OK | OK | OK | 2.6.23 | OK | OK | -- | | OK | OK |TODO| -- | OK | OK | OK | + 2.6.24 | OK | OK | -- | | OK | OK |TODO| -- | OK | OK | OK | OK : Support. -- : Not support. @@ -79,6 +80,11 @@ file should be regenerated by it. Actually, makedumpfile v1.2.0 or later doesn't work by vmcoreinfo file generated by v1.6.0 or before. + 2. If using linux-2.6.24 and kexec-tools-testing-20061214, /proc/vmcore + contains vmcoreinfo data. So it is possible to create a dumpfile without + -x option (or -i option) like the following: + # makedumpfile -d 31 /proc/vmcore dumpfile + * FAQ 001: It cannot be compiled with the following messages: # make ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org