OBS User unknown 2007-03-10 23:02:29 +00:00 committed by Git OBS Bridge
parent 3fcd6a5ffa
commit f343233b1c
5 changed files with 23 additions and 48 deletions

38
README
View File

@ -1,38 +0,0 @@
Introduction:
To shorten the size of the dumpfile and the time of creating the
dumpfile, makedumpfile copies only the necessary pages for analysis
to the dumpfile from /proc/vmcore. You can specify the kind of
unnecessary pages with dump_level. If you want to shorten the size
further, enable the compression of the page data.
Download:
https://sourceforge.net/projects/makedumpfile/
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
SSH transporting support:
For ssh transporting support, -F and -R options are added.
A panic system sends dump data to a remote host with -F option, and
a remote host re-arranges dump data received to a normal dumpfile
(readable by analysis tools) with -R option.
Example-1:
# makedumpfile -F -cd31 -x vmlinux /proc/vmcore | ssh user@host "makedumpfile -R dumpfile"
A perl script makedumpfile-R.pl implements the same function as '-R'
option. Perl script does not depend on architecture, and a lot of
systems have perl command. Even if a remote host does not have the
makedumpfile command, it is possible to transport a dumpfile to a
remote host with running this script.
Example-2:
1. Transport the script.
# scp makedumpfile-R.pl user@remote:makedumpfile-R.pl
2. Transport a dumpfile.
# makedumpfile -F -cd31 -i config /proc/vmcore | ssh user@remote "./makedumpfile-R.pl dumpfile"

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1bc717c6a3edd8bfb5285c25deeed4c470cf2b3b16b46d3d0d0c02bdb75f9766
size 25269

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:00f3d0eb8b3b7e3b34ca6e03ec26b1588da31461798eb4597d479b4f13581597
size 33957

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Mar 9 11:55:49 CET 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 8 12:49:58 CET 2007 - tiwai@suse.de Thu Feb 8 12:49:58 CET 2007 - tiwai@suse.de

View File

@ -1,5 +1,5 @@
# #
# spec file for package makedumpfile (Version 1.1.1) # spec file for package makedumpfile (Version 1.1.2)
# #
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine # This file and all modifications and additions to the pristine
@ -14,14 +14,13 @@ Name: makedumpfile
BuildRequires: gcc-c++ BuildRequires: gcc-c++
%define elfutils_version 0.124 %define elfutils_version 0.124
License: GNU General Public License (GPL) License: GNU General Public License (GPL)
Version: 1.1.1 Version: 1.1.2
Release: 1 Release: 1
Summary: Partial kernel dump Summary: Partial kernel dump
Group: System/Kernel Group: System/Kernel
URL: https://sourceforge.net/projects/makedumpfile/ URL: https://sourceforge.net/projects/makedumpfile/
Source: makedumpfile-%{version}.tar.bz2 Source: makedumpfile-%{version}.tar.bz2
Source1: elfutils-%{elfutils_version}-no-osl.tar.bz2 Source1: elfutils-%{elfutils_version}-no-osl.tar.bz2
Source2: README
Patch: makedumpfile-static-elfutils.diff Patch: makedumpfile-static-elfutils.diff
Patch1: makedumpfile-coptflags.diff Patch1: makedumpfile-coptflags.diff
Patch2: elfutils-portability.patch Patch2: elfutils-portability.patch
@ -44,7 +43,6 @@ Authors:
%setup -n makedumpfile -q -a1 %setup -n makedumpfile -q -a1
%patch %patch
%patch1 %patch1
cp %{SOURCE2} .
cd elfutils-%{elfutils_version} cd elfutils-%{elfutils_version}
ls -l backends ls -l backends
if [ `wc -l < "backends/sparc_retval.c"` -gt 2 ]; then if [ `wc -l < "backends/sparc_retval.c"` -gt 2 ]; then
@ -73,17 +71,24 @@ make COPTFLAGS="$RPM_OPT_FLAGS"
mkdir -p $RPM_BUILD_ROOT/bin mkdir -p $RPM_BUILD_ROOT/bin
install -c -m 0755 makedumpfile $RPM_BUILD_ROOT/bin install -c -m 0755 makedumpfile $RPM_BUILD_ROOT/bin
install -c -m 0755 makedumpfile-R.pl $RPM_BUILD_ROOT/bin install -c -m 0755 makedumpfile-R.pl $RPM_BUILD_ROOT/bin
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
install -c -m 0644 makedumpfile.8 $RPM_BUILD_ROOT%{_mandir}/man8
%clean %clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc README %doc README COPYING
%doc elfutils-*/COPYING %doc %{_mandir}/man?/*
/bin/* /bin/*
%changelog -n makedumpfile %changelog
* 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: - updated to version 1.1.1:
* x86-64 DISCONTIGMEM support * x86-64 DISCONTIGMEM support