aboutsummaryrefslogtreecommitdiff
path: root/testcases/kdump
diff options
context:
space:
mode:
authorsubrata_modak <subrata_modak>2007-04-17 07:08:10 +0000
committersubrata_modak <subrata_modak>2007-04-17 07:08:10 +0000
commitaa5ac7d718abe59992f6bb0706f848ef0e5c812a (patch)
treeb54d92602a4cb33fa2196ea7b83b96e9eb0635ac /testcases/kdump
parent90456c97205ddfcbc1afb127ea7a53ef6c038e11 (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/dtt_tools/helper/Makefile16
-rw-r--r--testcases/kdump/susetools/dtt_tools/helper/alarm.c50
-rw-r--r--testcases/kdump/susetools/dtt_tools/helper/brk.c41
-rw-r--r--testcases/kdump/susetools/dtt_tools/helper/memdrain.c56
-rw-r--r--testcases/kdump/susetools/dtt_tools/helper/setuid.c40
5 files changed, 0 insertions, 203 deletions
diff --git a/testcases/kdump/susetools/dtt_tools/helper/Makefile b/testcases/kdump/susetools/dtt_tools/helper/Makefile
deleted file mode 100644
index 8f0ff9f53..000000000
--- a/testcases/kdump/susetools/dtt_tools/helper/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-all: memdrain setuid alarm brk
-
-memdrain: memdrain.c
- gcc -Wall -o memdrain memdrain.c
-
-setuid: setuid.c
- gcc -Wall -o setuid setuid.c
-
-alarm: alarm.c
- gcc -Wall -o alarm alarm.c
-
-brk: brk.c
- gcc -Wall -o brk brk.c
-
-clean:
- rm -f memdrain setuid alarm brk *.o
diff --git a/testcases/kdump/susetools/dtt_tools/helper/alarm.c b/testcases/kdump/susetools/dtt_tools/helper/alarm.c
deleted file mode 100644
index 17ff3eb9e..000000000
--- a/testcases/kdump/susetools/dtt_tools/helper/alarm.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (c) Itsuro ODA 2004 all rights reserved
- *
- * DTT helper application: issue alarm system-call point.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * 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 <unistd.h>
-#include <signal.h>
-#include <stdio.h>
-#include <err.h>
-
-#define LOOP 100
-
-static void catch(int i)
-{
- if (signal(SIGALRM, catch) == SIG_ERR) {
- err(1, NULL); /* exit */
- }
-
- return;
-}
-
-int main(int argc, char *argv[])
-{
- int i;
-
- if (signal(SIGALRM, catch) == SIG_ERR) {
- err(1, NULL); /* exit */
- }
-
- for (i = 0; i < LOOP; i++) {
- printf("alarm called. (%d)\n", i);
- (void)alarm(1);
- (void)pause();
- }
-
- return 0;
-}
diff --git a/testcases/kdump/susetools/dtt_tools/helper/brk.c b/testcases/kdump/susetools/dtt_tools/helper/brk.c
deleted file mode 100644
index 81d186bfd..000000000
--- a/testcases/kdump/susetools/dtt_tools/helper/brk.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright (c) Itsuro ODA 2004 all rights reserved
- *
- * DTT helper application: issue brk system-call.
- *
- * This program assumes "data segment size" and "max memory size"
- * of process resource are set "unlimited".
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * 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 <unistd.h>
-#include <stdio.h>
-#include <err.h>
-
-#define BSIZE 4096
-
-int main(int argc, char *argv[])
-{
- int i;
- char *p;
-
- for (i = 0; ; i++) {
- p = (char *)sbrk(BSIZE);
- if ((int)p == -1) {
- warn("(%d pages allocated)", i);
- (void)pause(); /* wait until kill */
- }
- *p = 1; /* force a real page allocated and make dirty */
- }
-}
diff --git a/testcases/kdump/susetools/dtt_tools/helper/memdrain.c b/testcases/kdump/susetools/dtt_tools/helper/memdrain.c
deleted file mode 100644
index 732b86b44..000000000
--- a/testcases/kdump/susetools/dtt_tools/helper/memdrain.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * memdrain.c
- *
- * DTT helper applications
- *
- * Copyright (C) 2005 NTT Data Corporation
- *
- * Author: Fernando Luis Vazquez Cao
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * 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.
- *
- * Contact information:
- * Fernando Luis Vazquez Cao <fernando@intellilink.co.jp>
- * NTT Data Intellilink Corporation, Kayaba-cho Tower (2nd floor),
- * 1-21-2 Shinkawa, Chuo-ku, Tokyo 104-0033, Japan
- */
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-
-#define MEGABYTE 1024*1024
-#define iter 1000
-
-int main (int argc, char **argv) {
- void *tmp;
- int i;
-
- printf("ENTERING memdrain\n");
-
- for (i = 0; i < iter; i++) {
- printf("Allocating memory\n");
- tmp = malloc(100*MEGABYTE);
- if (tmp == NULL) {
- printf("Unable to allocate the requested memory\n");
- exit(-1);
- }
- memset(tmp, i, 100*MEGABYTE);
- getchar();
- }
-
- printf("LEAVING memdrain\n");
-
- return 0;
-}
diff --git a/testcases/kdump/susetools/dtt_tools/helper/setuid.c b/testcases/kdump/susetools/dtt_tools/helper/setuid.c
deleted file mode 100644
index 8769a32ec..000000000
--- a/testcases/kdump/susetools/dtt_tools/helper/setuid.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (c) Itsuro ODA 2004 all rights reserved
- *
- * DTT helper application: issue setuid system-call.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * 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 <sys/types.h>
-#include <unistd.h>
-#include <stdio.h>
-#include <err.h>
-
-#define USERID 500
-#define LOOP 100
-
-int main(int argc, char *argv[])
-{
- int ret;
- int i;
-
- for (i = 0; i < LOOP; i++) {
- ret = setuid(USERID);
- if (ret < 0) {
- err(1, NULL); /* exit */
- }
- }
-
- return 0;
-}