aboutsummaryrefslogtreecommitdiff
path: root/testcases/kdump
diff options
context:
space:
mode:
authorsubrata_modak <subrata_modak>2007-04-17 09:41:25 +0000
committersubrata_modak <subrata_modak>2007-04-17 09:41:25 +0000
commit9f5e6d477a29af0b4ff36596ee906b88ea1464ae (patch)
tree95749394a890b156a9423f48a03d940125ae8240 /testcases/kdump
parent6c39895b5453eb11fc6bf3961d7ebc49633ca622 (diff)
Patch Submitted by <sachinp@linux.vnet.ibm.com> which removes the lkdtt code and adds lkdtm code
Diffstat (limited to 'testcases/kdump')
-rw-r--r--testcases/kdump/susetools/stress-0.18.8/src/Makefile282
-rw-r--r--testcases/kdump/susetools/stress-0.18.8/src/Makefile.am7
-rw-r--r--testcases/kdump/susetools/stress-0.18.8/src/Makefile.in282
-rw-r--r--testcases/kdump/susetools/stress-0.18.8/src/stress.c767
4 files changed, 0 insertions, 1338 deletions
diff --git a/testcases/kdump/susetools/stress-0.18.8/src/Makefile b/testcases/kdump/susetools/stress-0.18.8/src/Makefile
deleted file mode 100644
index 2b9fa5fb4..000000000
--- a/testcases/kdump/susetools/stress-0.18.8/src/Makefile
+++ /dev/null
@@ -1,282 +0,0 @@
-# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
-
-# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-
-SHELL = /bin/sh
-
-srcdir = .
-top_srcdir = ..
-
-prefix = /usr/local
-exec_prefix = ${prefix}
-
-bindir = ${exec_prefix}/bin
-sbindir = ${exec_prefix}/sbin
-libexecdir = ${exec_prefix}/libexec
-datadir = ${prefix}/share
-sysconfdir = ${prefix}/etc
-sharedstatedir = ${prefix}/com
-localstatedir = ${prefix}/var
-libdir = ${exec_prefix}/lib
-infodir = ${prefix}/info
-mandir = ${prefix}/man
-includedir = ${prefix}/include
-oldincludedir = /usr/include
-
-DESTDIR =
-
-pkgdatadir = $(datadir)/stress
-pkglibdir = $(libdir)/stress
-pkgincludedir = $(includedir)/stress
-
-top_builddir = ..
-
-ACLOCAL = /home/kdump-test/tools/stress-0.18.8/missing aclocal-1.4
-AUTOCONF = autoconf
-AUTOMAKE = /home/kdump-test/tools/stress-0.18.8/missing automake-1.4
-AUTOHEADER = autoheader
-
-INSTALL = /usr/bin/install -c
-INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
-INSTALL_DATA = ${INSTALL} -m 644
-INSTALL_SCRIPT = ${INSTALL}
-transform = s,x,x,
-
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-host_alias =
-host_triplet = @host@
-CC = gcc
-HAVE_LIB = @HAVE_LIB@
-LIB = @LIB@
-LTLIB = @LTLIB@
-MAKEINFO = makeinfo
-PACKAGE = stress
-VERSION = 0.18.8
-
-MAINTAINERCLEANFILES = Makefile.in
-
-CFLAGS = -Wall -Werror -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-
-bin_PROGRAMS = stress
-stress_SOURCES = stress.c
-stress_MANS = stress.1
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_CLEAN_FILES =
-PROGRAMS = $(bin_PROGRAMS)
-
-
-DEFS = -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"stress\" -DVERSION=\"0.18.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBM=1 -I. -I$(srcdir)
-CPPFLAGS =
-LDFLAGS =
-LIBS = -lm
-stress_OBJECTS = stress.o
-stress_LDADD = $(LDADD)
-stress_DEPENDENCIES =
-stress_LDFLAGS =
-COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
-DIST_COMMON = Makefile.am Makefile.in
-
-
-DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
-
-TAR = tar
-GZIP_ENV = --best
-SOURCES = $(stress_SOURCES)
-OBJECTS = $(stress_OBJECTS)
-
-all: all-redirect
-.SUFFIXES:
-.SUFFIXES: .S .c .o .s
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
- cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/Makefile
-
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) \
- && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
-
-
-mostlyclean-binPROGRAMS:
-
-clean-binPROGRAMS:
- -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
-
-distclean-binPROGRAMS:
-
-maintainer-clean-binPROGRAMS:
-
-install-binPROGRAMS: $(bin_PROGRAMS)
- @$(NORMAL_INSTALL)
- $(mkinstalldirs) $(DESTDIR)$(bindir)
- @list='$(bin_PROGRAMS)'; for p in $$list; do \
- if test -f $$p; then \
- echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
- $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
- else :; fi; \
- done
-
-uninstall-binPROGRAMS:
- @$(NORMAL_UNINSTALL)
- list='$(bin_PROGRAMS)'; for p in $$list; do \
- rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
- done
-
-.c.o:
- $(COMPILE) -c $<
-
-.s.o:
- $(COMPILE) -c $<
-
-.S.o:
- $(COMPILE) -c $<
-
-mostlyclean-compile:
- -rm -f *.o core *.core
-
-clean-compile:
-
-distclean-compile:
- -rm -f *.tab.c
-
-maintainer-clean-compile:
-
-stress: $(stress_OBJECTS) $(stress_DEPENDENCIES)
- @rm -f stress
- $(LINK) $(stress_LDFLAGS) $(stress_OBJECTS) $(stress_LDADD) $(LIBS)
-
-tags: TAGS
-
-ID: $(HEADERS) $(SOURCES) $(LISP)
- list='$(SOURCES) $(HEADERS)'; \
- unique=`for i in $$list; do echo $$i; done | \
- awk ' { files[$$0] = 1; } \
- END { for (i in files) print i; }'`; \
- here=`pwd` && cd $(srcdir) \
- && mkid -f$$here/ID $$unique $(LISP)
-
-TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
- tags=; \
- here=`pwd`; \
- list='$(SOURCES) $(HEADERS)'; \
- unique=`for i in $$list; do echo $$i; done | \
- awk ' { files[$$0] = 1; } \
- END { for (i in files) print i; }'`; \
- test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
- || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
-
-mostlyclean-tags:
-
-clean-tags:
-
-distclean-tags:
- -rm -f TAGS ID
-
-maintainer-clean-tags:
-
-distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
-
-subdir = src
-
-distdir: $(DISTFILES)
- @for file in $(DISTFILES); do \
- d=$(srcdir); \
- if test -d $$d/$$file; then \
- cp -pr $$d/$$file $(distdir)/$$file; \
- else \
- test -f $(distdir)/$$file \
- || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
- || cp -p $$d/$$file $(distdir)/$$file || :; \
- fi; \
- done
-stress.o: stress.c
-
-info-am:
-info: info-am
-dvi-am:
-dvi: dvi-am
-check-am: all-am
-check: check-am
-installcheck-am:
-installcheck: installcheck-am
-install-exec-am: install-binPROGRAMS
-install-exec: install-exec-am
-
-install-data-am:
-install-data: install-data-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-install: install-am
-uninstall-am: uninstall-binPROGRAMS
-uninstall: uninstall-am
-all-am: Makefile $(PROGRAMS)
-all-redirect: all-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
-installdirs:
- $(mkinstalldirs) $(DESTDIR)$(bindir)
-
-
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -rm -f Makefile $(CONFIG_CLEAN_FILES)
- -rm -f config.cache config.log stamp-h stamp-h[0-9]*
-
-maintainer-clean-generic:
- -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \
- mostlyclean-tags mostlyclean-generic
-
-mostlyclean: mostlyclean-am
-
-clean-am: clean-binPROGRAMS clean-compile clean-tags clean-generic \
- mostlyclean-am
-
-clean: clean-am
-
-distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \
- distclean-generic clean-am
-
-distclean: distclean-am
-
-maintainer-clean-am: maintainer-clean-binPROGRAMS \
- maintainer-clean-compile maintainer-clean-tags \
- maintainer-clean-generic distclean-am
- @echo "This command is intended for maintainers to use;"
- @echo "it deletes files that may require special tools to rebuild."
-
-maintainer-clean: maintainer-clean-am
-
-.PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
-maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
-mostlyclean-compile distclean-compile clean-compile \
-maintainer-clean-compile tags mostlyclean-tags distclean-tags \
-clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
-check-am installcheck-am installcheck install-exec-am install-exec \
-install-data-am install-data install-am install uninstall-am uninstall \
-all-redirect all-am all installdirs mostlyclean-generic \
-distclean-generic clean-generic maintainer-clean-generic clean \
-mostlyclean distclean maintainer-clean
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/testcases/kdump/susetools/stress-0.18.8/src/Makefile.am b/testcases/kdump/susetools/stress-0.18.8/src/Makefile.am
deleted file mode 100644
index bf907e2d6..000000000
--- a/testcases/kdump/susetools/stress-0.18.8/src/Makefile.am
+++ /dev/null
@@ -1,7 +0,0 @@
-MAINTAINERCLEANFILES = Makefile.in
-
-CFLAGS = -Wall -Werror -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-
-bin_PROGRAMS = stress
-stress_SOURCES = stress.c
-stress_MANS = stress.1
diff --git a/testcases/kdump/susetools/stress-0.18.8/src/Makefile.in b/testcases/kdump/susetools/stress-0.18.8/src/Makefile.in
deleted file mode 100644
index ac1539a2a..000000000
--- a/testcases/kdump/susetools/stress-0.18.8/src/Makefile.in
+++ /dev/null
@@ -1,282 +0,0 @@
-# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
-
-# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-
-SHELL = @SHELL@
-
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
-VPATH = @srcdir@
-prefix = @prefix@
-exec_prefix = @exec_prefix@
-
-bindir = @bindir@
-sbindir = @sbindir@
-libexecdir = @libexecdir@
-datadir = @datadir@
-sysconfdir = @sysconfdir@
-sharedstatedir = @sharedstatedir@
-localstatedir = @localstatedir@
-libdir = @libdir@
-infodir = @infodir@
-mandir = @mandir@
-includedir = @includedir@
-oldincludedir = /usr/include
-
-DESTDIR =
-
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-
-top_builddir = ..
-
-ACLOCAL = @ACLOCAL@
-AUTOCONF = @AUTOCONF@
-AUTOMAKE = @AUTOMAKE@
-AUTOHEADER = @AUTOHEADER@
-
-INSTALL = @INSTALL@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-transform = @program_transform_name@
-
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-host_alias = @host_alias@
-host_triplet = @host@
-CC = @CC@
-HAVE_LIB = @HAVE_LIB@
-LIB = @LIB@
-LTLIB = @LTLIB@
-MAKEINFO = @MAKEINFO@
-PACKAGE = @PACKAGE@
-VERSION = @VERSION@
-
-MAINTAINERCLEANFILES = Makefile.in
-
-CFLAGS = -Wall -Werror -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-
-bin_PROGRAMS = stress
-stress_SOURCES = stress.c
-stress_MANS = stress.1
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_CLEAN_FILES =
-PROGRAMS = $(bin_PROGRAMS)
-
-
-DEFS = @DEFS@ -I. -I$(srcdir)
-CPPFLAGS = @CPPFLAGS@
-LDFLAGS = @LDFLAGS@
-LIBS = @LIBS@
-stress_OBJECTS = stress.o
-stress_LDADD = $(LDADD)
-stress_DEPENDENCIES =
-stress_LDFLAGS =
-COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
-DIST_COMMON = Makefile.am Makefile.in
-
-
-DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
-
-TAR = tar
-GZIP_ENV = --best
-SOURCES = $(stress_SOURCES)
-OBJECTS = $(stress_OBJECTS)
-
-all: all-redirect
-.SUFFIXES:
-.SUFFIXES: .S .c .o .s
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
- cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/Makefile
-
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) \
- && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
-
-
-mostlyclean-binPROGRAMS:
-
-clean-binPROGRAMS:
- -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
-
-distclean-binPROGRAMS:
-
-maintainer-clean-binPROGRAMS:
-
-install-binPROGRAMS: $(bin_PROGRAMS)
- @$(NORMAL_INSTALL)
- $(mkinstalldirs) $(DESTDIR)$(bindir)
- @list='$(bin_PROGRAMS)'; for p in $$list; do \
- if test -f $$p; then \
- echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
- $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
- else :; fi; \
- done
-
-uninstall-binPROGRAMS:
- @$(NORMAL_UNINSTALL)
- list='$(bin_PROGRAMS)'; for p in $$list; do \
- rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
- done
-
-.c.o:
- $(COMPILE) -c $<
-
-.s.o:
- $(COMPILE) -c $<
-
-.S.o:
- $(COMPILE) -c $<
-
-mostlyclean-compile:
- -rm -f *.o core *.core
-
-clean-compile:
-
-distclean-compile:
- -rm -f *.tab.c
-
-maintainer-clean-compile:
-
-stress: $(stress_OBJECTS) $(stress_DEPENDENCIES)
- @rm -f stress
- $(LINK) $(stress_LDFLAGS) $(stress_OBJECTS) $(stress_LDADD) $(LIBS)
-
-tags: TAGS
-
-ID: $(HEADERS) $(SOURCES) $(LISP)
- list='$(SOURCES) $(HEADERS)'; \
- unique=`for i in $$list; do echo $$i; done | \
- awk ' { files[$$0] = 1; } \
- END { for (i in files) print i; }'`; \
- here=`pwd` && cd $(srcdir) \
- && mkid -f$$here/ID $$unique $(LISP)
-
-TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
- tags=; \
- here=`pwd`; \
- list='$(SOURCES) $(HEADERS)'; \
- unique=`for i in $$list; do echo $$i; done | \
- awk ' { files[$$0] = 1; } \
- END { for (i in files) print i; }'`; \
- test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
- || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
-
-mostlyclean-tags:
-
-clean-tags:
-
-distclean-tags:
- -rm -f TAGS ID
-
-maintainer-clean-tags:
-
-distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
-
-subdir = src
-
-distdir: $(DISTFILES)
- @for file in $(DISTFILES); do \
- d=$(srcdir); \
- if test -d $$d/$$file; then \
- cp -pr $$d/$$file $(distdir)/$$file; \
- else \
- test -f $(distdir)/$$file \
- || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
- || cp -p $$d/$$file $(distdir)/$$file || :; \
- fi; \
- done
-stress.o: stress.c
-
-info-am:
-info: info-am
-dvi-am:
-dvi: dvi-am
-check-am: all-am
-check: check-am
-installcheck-am:
-installcheck: installcheck-am
-install-exec-am: install-binPROGRAMS
-install-exec: install-exec-am
-
-install-data-am:
-install-data: install-data-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-install: install-am
-uninstall-am: uninstall-binPROGRAMS
-uninstall: uninstall-am
-all-am: Makefile $(PROGRAMS)
-all-redirect: all-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
-installdirs:
- $(mkinstalldirs) $(DESTDIR)$(bindir)
-
-
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -rm -f Makefile $(CONFIG_CLEAN_FILES)
- -rm -f config.cache config.log stamp-h stamp-h[0-9]*
-
-maintainer-clean-generic:
- -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \
- mostlyclean-tags mostlyclean-generic
-
-mostlyclean: mostlyclean-am
-
-clean-am: clean-binPROGRAMS clean-compile clean-tags clean-generic \
- mostlyclean-am
-
-clean: clean-am
-
-distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \
- distclean-generic clean-am
-
-distclean: distclean-am
-
-maintainer-clean-am: maintainer-clean-binPROGRAMS \
- maintainer-clean-compile maintainer-clean-tags \
- maintainer-clean-generic distclean-am
- @echo "This command is intended for maintainers to use;"
- @echo "it deletes files that may require special tools to rebuild."
-
-maintainer-clean: maintainer-clean-am
-
-.PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
-maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
-mostlyclean-compile distclean-compile clean-compile \
-maintainer-clean-compile tags mostlyclean-tags distclean-tags \
-clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
-check-am installcheck-am installcheck install-exec-am install-exec \
-install-data-am install-data install-am install uninstall-am uninstall \
-all-redirect all-am all installdirs mostlyclean-generic \
-distclean-generic clean-generic maintainer-clean-generic clean \
-mostlyclean distclean maintainer-clean
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/testcases/kdump/susetools/stress-0.18.8/src/stress.c b/testcases/kdump/susetools/stress-0.18.8/src/stress.c
deleted file mode 100644
index f480e1b60..000000000
--- a/testcases/kdump/susetools/stress-0.18.8/src/stress.c
+++ /dev/null
@@ -1,767 +0,0 @@
-/* A program to put stress on a POSIX system (stress).
- *
- * Copyright (C) 2001,2002,2003,2004,2005
- * Amos Waterland <apw@rossby.metr.ou.edu>
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc., 59
- * Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include <ctype.h>
-#include <errno.h>
-#include <libgen.h>
-#include <math.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <signal.h>
-#include <time.h>
-#include <unistd.h>
-#include <sys/wait.h>
-
-/* By default, print all messages of severity info and above. */
-static int global_debug = 2;
-
-/* Name of this program */
-static char *global_progname = PACKAGE;
-
-/* Implemention of runtime-selectable severity message printing. */
-#define dbg if (global_debug >= 3) \
- fprintf (stdout, "%s: dbug: [%lli] ", \
- global_progname, (long long)getpid()), fprintf
-#define out if (global_debug >= 2) \
- fprintf (stdout, "%s: info: [%lli] ", \
- global_progname, (long long)getpid()), fprintf
-#define wrn if (global_debug >= 1) \
- fprintf (stderr, "%s: WARN: [%lli] (%d) ", \
- global_progname, (long long)getpid(), __LINE__), fprintf
-#define err if (global_debug >= 0) \
- fprintf (stderr, "%s: FAIL: [%lli] (%d) ", \
- global_progname, (long long)getpid(), __LINE__), fprintf
-
-/* Implementation of check for option argument correctness. */
-#define assert_arg(A) \
- if (++i == argc || ((arg = argv[i])[0] == '-' && \
- !isdigit ((int)arg[1]) )) \
- { \
- err (stderr, "missing argument to option '%s'\n", A); \
- exit (1); \
- }
-
-/* Prototypes for utility functions. */
-int usage (int status);
-int version (int status);
-long long atoll_s (const char *nptr);
-long long atoll_b (const char *nptr);
-
-/* Prototypes for worker functions. */
-int hogcpu (void);
-int hogio (void);
-int hogvm (long long bytes, long long stride, long long hang, int keep);
-int hoghdd (long long bytes, int clean);
-
-int
-main (int argc, char **argv)
-{
- int i, pid, children = 0, retval = 0;
- long starttime, stoptime, runtime, forks;
-
- /* Variables that indicate which options have been selected. */
- int do_dryrun = 0;
- long long do_backoff = 3000;
- long long do_timeout = 0;
- long long do_cpu = 0;
- long long do_io = 0;
- long long do_vm = 0;
- long long do_vm_bytes = 256 * 1024 * 1024;
- long long do_vm_stride = 4096;
- long long do_vm_hang = -1;
- int do_vm_keep = 0;
- long long do_hdd = 0;
- int do_hdd_clean = 2;
- long long do_hdd_bytes = 1024 * 1024 * 1024;
-
- /* Record our start time. */
- if ((starttime = time (NULL)) == -1)
- {
- err (stderr, "failed to acquire current time: %s\n", strerror (errno));
- exit (1);
- }
-
- /* SuSv3 does not define any error conditions for this function. */
- global_progname = basename (argv[0]);
-
- /* For portability, parse command line options without getopt_long. */
- for (i = 1; i < argc; i++)
- {
- char *arg = argv[i];
-
- if (strcmp (arg, "--help") == 0 || strcmp (arg, "-?") == 0)
- {
- usage (0);
- }
- else if (strcmp (arg, "--version") == 0)
- {
- version (0);
- }
- else if (strcmp (arg, "--verbose") == 0 || strcmp (arg, "-v") == 0)
- {
- global_debug = 3;
- }
- else if (strcmp (arg, "--quiet") == 0 || strcmp (arg, "-q") == 0)
- {
- global_debug = 0;
- }
- else if (strcmp (arg, "--dry-run") == 0 || strcmp (arg, "-n") == 0)
- {
- do_dryrun = 1;
- }
- else if (strcmp (arg, "--backoff") == 0)
- {
- assert_arg ("--backoff");
- if (sscanf (arg, "%lli", &do_backoff) != 1)
- {
- err (stderr, "invalid number: %s\n", arg);
- exit (1);
- }
- if (do_backoff < 0)
- {
- err (stderr, "invalid backoff factor: %lli\n", do_backoff);
- exit (1);
- }
- dbg (stdout, "setting backoff coeffient to %llius\n", do_backoff);
- }
- else if (strcmp (arg, "--timeout") == 0 || strcmp (arg, "-t") == 0)
- {
- assert_arg ("--timeout");
- do_timeout = atoll_s (arg);
- if (do_timeout <= 0)
- {
- err (stderr, "invalid timeout value: %llis\n", do_timeout);
- exit (1);
- }
- }
- else if (strcmp (arg, "--cpu") == 0 || strcmp (arg, "-c") == 0)
- {
- assert_arg ("--cpu");
- do_cpu = atoll_b (arg);
- if (do_cpu <= 0)
- {
- err (stderr, "invalid number of cpu hogs: %lli\n", do_cpu);
- exit (1);
- }
- }
- else if (strcmp (arg, "--io") == 0 || strcmp (arg, "-i") == 0)
- {
- assert_arg ("--io");
- do_io = atoll_b (arg);
- if (do_io <= 0)
- {
- err (stderr, "invalid number of io hogs: %lli\n", do_io);
- exit (1);
- }
- }
- else if (strcmp (arg, "--vm") == 0 || strcmp (arg, "-m") == 0)
- {
- assert_arg ("--vm");
- do_vm = atoll_b (arg);
- if (do_vm <= 0)
- {
- err (stderr, "invalid number of vm hogs: %lli\n", do_vm);
- exit (1);
- }
- }
- else if (strcmp (arg, "--vm-bytes") == 0)
- {
- assert_arg ("--vm-bytes");
- do_vm_bytes = atoll_b (arg);
- if (do_vm_bytes <= 0)
- {
- err (stderr, "invalid vm byte value: %lli\n", do_vm_bytes);
- exit (1);
- }
- }
- else if (strcmp (arg, "--vm-stride") == 0)
- {
- assert_arg ("--vm-stride");
- do_vm_stride = atoll_b (arg);
- if (do_vm_stride <= 0)
- {
- err (stderr, "invalid stride value: %lli\n", do_vm_stride);
- exit (1);
- }
- }
- else if (strcmp (arg, "--vm-hang") == 0)
- {
- assert_arg ("--vm-hang");
- do_vm_hang = atoll_b (arg);
- if (do_vm_hang < 0)
- {
- err (stderr, "invalid value: %lli\n", do_vm_hang);
- exit (1);
- }
- }
- else if (strcmp (arg, "--vm-keep") == 0)
- {
- do_vm_keep = 1;
- }
- else if (strcmp (arg, "--hdd") == 0 || strcmp (arg, "-d") == 0)
- {
- assert_arg ("--hdd");
- do_hdd = atoll_b (arg);
- if (do_hdd <= 0)
- {
- err (stderr, "invalid number of hdd hogs: %lli\n", do_hdd);
- exit (1);
- }
- }
- else if (strcmp (arg, "--hdd-noclean") == 0)
- {
- do_hdd_clean = 0;
- }
- else if (strcmp (arg, "--hdd-bytes") == 0)
- {
- assert_arg ("--hdd-bytes");
- do_hdd_bytes = atoll_b (arg);
- if (do_hdd_bytes <= 0)
- {
- err (stderr, "invalid hdd byte value: %lli\n", do_hdd_bytes);
- exit (1);
- }
- }
- else
- {
- err (stderr, "unrecognized option: %s\n", arg);
- exit (1);
- }
- }
-
- /* Print startup message if we have work to do, bail otherwise. */
- if (do_cpu + do_io + do_vm + do_hdd)
- {
- out (stdout, "dispatching hogs: %lli cpu, %lli io, %lli vm, %lli hdd\n",
- do_cpu, do_io, do_vm, do_hdd);
- }
- else
- usage (0);
-
- /* Round robin dispatch our worker processes. */
- while ((forks = (do_cpu + do_io + do_vm + do_hdd)))
- {
- long long backoff, timeout = 0;
-
- /* Calculate the backoff value so we get good fork throughput. */
- backoff = do_backoff * forks;
- dbg (stdout, "using backoff sleep of %llius\n", backoff);
-
- /* If we are supposed to respect a timeout, calculate it. */
- if (do_timeout)
- {
- long long currenttime;
-
- /* Acquire current time. */
- if ((currenttime = time (NULL)) == -1)
- {
- perror ("error acquiring current time");
- exit (1);
- }
-
- /* Calculate timeout based on current time. */
- timeout = do_timeout - (currenttime - starttime);
-
- if (timeout > 0)
- {
- dbg (stdout, "setting timeout to %llis\n", timeout);
- }
- else
- {
- wrn (stderr, "used up time before all workers dispatched\n");
- break;
- }
- }
-
- if (do_cpu)
- {
- switch (pid = fork ())
- {
- case 0: /* child */
- alarm (timeout);
- usleep (backoff);
- if (do_dryrun)
- exit (0);
- exit (hogcpu ());
- case -1: /* error */
- err (stderr, "fork failed: %s\n", strerror (errno));
- break;
- default: /* parent */
- dbg (stdout, "--> hogcpu worker %lli [%i] forked\n",
- do_cpu, pid);
- ++children;
- }
- --do_cpu;
- }
-
- if (do_io)
- {
- switch (pid = fork ())
- {
- case 0: /* child */
- alarm (timeout);
- usleep (backoff);
- if (do_dryrun)
- exit (0);
- exit (hogio ());
- case -1: /* error */
- err (stderr, "fork failed: %s\n", strerror (errno));
- break;
- default: /* parent */
- dbg (stdout, "--> hogio worker %lli [%i] forked\n", do_io, pid);
- ++children;
- }
- --do_io;
- }
-
- if (do_vm)
- {
- switch (pid = fork ())
- {
- case 0: /* child */
- alarm (timeout);
- usleep (backoff);
- if (do_dryrun)
- exit (0);
- exit (hogvm
- (do_vm_bytes, do_vm_stride, do_vm_hang, do_vm_keep));
- case -1: /* error */
- err (stderr, "fork failed: %s\n", strerror (errno));
- break;
- default: /* parent */
- dbg (stdout, "--> hogvm worker %lli [%i] forked\n", do_vm, pid);
- ++children;
- }
- --do_vm;
- }
-
- if (do_hdd)
- {
- switch (pid = fork ())
- {
- case 0: /* child */
- alarm (timeout);
- usleep (backoff);
- if (do_dryrun)
- exit (0);
- exit (hoghdd (do_hdd_bytes, do_hdd_clean));
- case -1: /* error */
- err (stderr, "fork failed: %s\n", strerror (errno));
- break;
- default: /* parent */
- dbg (stdout, "--> hoghdd worker %lli [%i] forked\n",
- do_hdd, pid);
- ++children;
- }
- --do_hdd;
- }
- }
-
- /* Wait for our children to exit. */
- while (children)
- {
- int status, ret;
-
- if ((pid = wait (&status)) > 0)
- {
- --children;
-
- if (WIFEXITED (status))
- {
- if ((ret = WEXITSTATUS (status)) == 0)
- {
- dbg (stdout, "<-- worker %i returned normally\n", pid);
- }
- else
- {
- err (stderr, "<-- worker %i returned error %i\n", pid, ret);
- ++retval;
- wrn (stderr, "now reaping child worker processes\n");
- if (signal (SIGUSR1, SIG_IGN) == SIG_ERR)
- err (stderr, "handler error: %s\n", strerror (errno));
- if (kill (-1 * getpid (), SIGUSR1) == -1)
- err (stderr, "kill error: %s\n", strerror (errno));
- }
- }
- else if (WIFSIGNALED (status))
- {
- if ((ret = WTERMSIG (status)) == SIGALRM)
- {
- dbg (stdout, "<-- worker %i signalled normally\n", pid);
- }
- else if ((ret = WTERMSIG (status)) == SIGUSR1)
- {
- dbg (stdout, "<-- worker %i reaped\n", pid);
- }
- else
- {
- err (stderr, "<-- worker %i got signal %i\n", pid, ret);
- ++retval;
- wrn (stderr, "now reaping child worker processes\n");
- if (signal (SIGUSR1, SIG_IGN) == SIG_ERR)
- err (stderr, "handler error: %s\n", strerror (errno));
- if (kill (-1 * getpid (), SIGUSR1) == -1)
- err (stderr, "kill error: %s\n", strerror (errno));
- }
- }
- else
- {
- err (stderr, "<-- worker %i exited abnormally\n", pid);
- ++retval;
- }
- }
- else
- {
- err (stderr, "error waiting for worker: %s\n", strerror (errno));
- ++retval;
- break;
- }
- }
-
- /* Record our stop time. */
- if ((stoptime = time (NULL)) == -1)
- {
- err (stderr, "failed to acquire current time\n");
- exit (1);
- }
-
- /* Calculate our runtime. */
- runtime = stoptime - starttime;
-
- /* Print final status message. */
- if (retval)
- {
- err (stderr, "failed run completed in %lis\n", runtime);
- }
- else
- {
- out (stdout, "successful run completed in %lis\n", runtime);
- }
-
- exit (retval);
-}
-
-int
-hogcpu (void)
-{
- while (1)
- sqrt (rand ());
-
- return 0;
-}
-
-int
-hogio ()
-{
- while (1)
- sync ();
-
- return 0;
-}
-
-int
-hogvm (long long bytes, long long stride, long long hang, int keep)
-{
- long long i;
- char *ptr;
- int do_malloc = 1;
-
- while (1)
- {
- if (do_malloc)
- {
- dbg (stdout, "allocating %lli bytes ...\n", bytes);
- if (!(ptr = (char *) malloc (bytes * sizeof (char))))
- {
- err (stderr, "hogvm malloc failed: %s\n", strerror (errno));
- return 1;
- }
- if (keep)
- do_malloc = 0;
- }
-
- dbg (stdout, "touching bytes in strides of %lli bytes ...\n", stride);
- for (i = 0; i < bytes; i += stride)
- ptr[i] = 'Z'; /* Ensure that COW happens. */
-
- if (hang == 0)
- {
- dbg (stdout, "sleeping forever with allocated memory\n");
- while (1)
- sleep (1024);
- }
- else if (hang > 0)
- {
- dbg (stdout, "sleeping for %llis with allocated memory\n", hang);
- sleep (hang);
- }
-
- if (do_malloc)
- {
- free (ptr);
- dbg (stdout, "freed %lli bytes\n", bytes);
- }
- }
-
- return 0;
-}
-
-int
-hoghdd (long long bytes, int clean)
-{
- long long i, j;
- int fd;
- int chunk = (1024 * 1024) - 1; /* Minimize slow writing. */
- char buff[chunk];
-
- /* Initialize buffer with some random ASCII data. */
- dbg (stdout, "seeding %d byte buffer with random data\n", chunk);
- for (i = 0; i < chunk - 1; i++)
- {
- j = rand ();
- j = (j < 0) ? -j : j;
- j %= 95;
- j += 32;
- buff[i] = j;
- }
- buff[i] = '\n';
-
- while (1)
- {
- char name[] = "./stress.XXXXXX";
-
- if ((fd = mkstemp (name)) == -1)
- {
- err (stderr, "mkstemp failed: %s\n", strerror (errno));
- return 1;
- }
-
- dbg (stdout, "opened %s for writing %lli bytes\n", name, bytes);
- if (clean == 2)
- {
- dbg (stdout, "unlinking %s\n", name);
- if (unlink (name) == -1)
- {
- err (stderr, "unlink failed: %s\n", strerror (errno));
- return 1;
- }
- }
-
- dbg (stdout, "fast writing to %s\n", name);
- for (j = 0; bytes == 0 || j + chunk < bytes; j += chunk)
- {
- if (write (fd, buff, chunk) == -1)
- {
- err (stderr, "write failed: %s\n", strerror (errno));
- return 1;
- }
- }
-
- dbg (stdout, "slow writing to %s\n", name);
- for (; bytes == 0 || j < bytes - 1; j++)
- {
- if (write (fd, "Z", 1) == -1)
- {
- err (stderr, "write failed: %s\n", strerror (errno));
- return 1;
- }
- }
- if (write (fd, "\n", 1) == -1)
- {
- err (stderr, "write failed: %s\n", strerror (errno));
- return 1;
- }
- ++j;
-
- dbg (stdout, "closing %s after %lli bytes\n", name, j);
- close (fd);
-
- if (clean == 1)
- {
- if (unlink (name))
- {
- err (stderr, "unlink failed: %s\n", strerror (errno));
- return 1;
- }
- }
- }
-
- return 0;
-}
-
-/* Convert a string representation of a number with an optional size suffix
- * to a long long.
- */
-long long
-atoll_b (const char *nptr)
-{
- int pos;
- char suffix;
- long long factor = 0;
- long long value;
-
- if ((pos = strlen (nptr) - 1) < 0)
- {
- err (stderr, "invalid string\n");
- exit (1);
- }
-
- switch (suffix = nptr[pos])
- {
- case 'b':
- case 'B':
- factor = 0;
- break;
- case 'k':
- case 'K':
- factor = 10;
- break;
- case 'm':
- case 'M':
- factor = 20;
- break;
- case 'g':
- case 'G':
- factor = 30;
- break;
- default:
- if (suffix < '0' || suffix > '9')
- {
- err (stderr, "unrecognized suffix: %c\n", suffix);
- exit (1);
- }
- }
-
- if (sscanf (nptr, "%lli", &value) != 1)
- {
- err (stderr, "invalid number: %s\n", nptr);
- exit (1);
- }
-
- value = value << factor;
-
- return value;
-}
-
-/* Convert a string representation of a number with an optional time suffix
- * to a long long.
- */
-long long
-atoll_s (const char *nptr)
-{
- int pos;
- char suffix;
- long long factor = 1;
- long long value;
-
- if ((pos = strlen (nptr) - 1) < 0)
- {
- err (stderr, "invalid string\n");
- exit (1);
- }
-
- switch (suffix = nptr[pos])
- {
- case 's':
- case 'S':
- factor = 1;
- break;
- case 'm':
- case 'M':
- factor = 60;
- break;
- case 'h':
- case 'H':
- factor = 60 * 60;
- break;
- case 'd':
- case 'D':
- factor = 60 * 60 * 24;
- break;
- case 'y':
- case 'Y':
- factor = 60 * 60 * 24 * 365;
- break;
- default:
- if (suffix < '0' || suffix > '9')
- {
- err (stderr, "unrecognized suffix: %c\n", suffix);
- exit (1);
- }
- }
-
- if (sscanf (nptr, "%lli", &value) != 1)
- {
- err (stderr, "invalid number: %s\n", nptr);
- exit (1);
- }
-
- value = value * factor;
-
- return value;
-}
-
-int
-version (int status)
-{
- char *mesg = "%s %s\n";
-
- fprintf (stdout, mesg, global_progname, VERSION);
-
- if (status <= 0)
- exit (-1 * status);
-
- return 0;
-}
-
-int
-usage (int status)
-{
- char *mesg =
- "`%s' imposes certain types of compute stress on your system\n\n"
- "Usage: %s [OPTION [ARG]] ...\n"
- " -?, --help show this help statement\n"
- " --version show version statement\n"
- " -v, --verbose be verbose\n"
- " -q, --quiet be quiet\n"
- " -n, --dry-run show what would have been done\n"
- " -t, --timeout N timeout after N seconds\n"
- " --backoff N wait factor of N microseconds before work starts\n"
- " -c, --cpu N spawn N workers spinning on sqrt()\n"
- " -i, --io N spawn N workers spinning on sync()\n"
- " -m, --vm N spawn N workers spinning on malloc()/free()\n"
- " --vm-bytes B malloc B bytes per vm worker (default is 256MB)\n"
- " --vm-stride B touch a byte every B bytes (default is 4096)\n"
- " --vm-hang N sleep N secs before free (default is none, 0 is inf)\n"
- " --vm-keep redirty memory instead of freeing and reallocating\n"
- " -d, --hdd N spawn N workers spinning on write()/unlink()\n"
- " --hdd-bytes B write B bytes per hdd worker (default is 1GB)\n"
- " --hdd-noclean do not unlink files created by hdd workers\n\n"
- "Example: %s --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 10s\n\n"
- "Note: Numbers may be suffixed with s,m,h,d,y (time) or B,K,M,G (size).\n";
-
- fprintf (stdout, mesg, global_progname, global_progname, global_progname);
-
- if (status <= 0)
- exit (-1 * status);
-
- return 0;
-}