From: Subrata Modak <subrata@linux.vnet.ibm.com>
To: LTP Mailing List <ltp-list@lists.sourceforge.net>
Cc: Sachin P Sant <sachinp@linux.vnet.ibm.com>,
Mike Frysinger <vapier@gentoo.org>,
Michael Reed <mreed10@us.ibm.com>, Nate Straz <nate@refried.org>,
Paul Larson <paul.larson@ubuntu.com>,
Manoj Iyer <manoj.iyer@ubuntu.com>,
Balbir Singh <balbir@linux.vnet.ibm.com>
Subject: [LTP] [PATCH 03/05] Add Script so the kernel is restored back to its original pristine form
Date: Tue, 11 Aug 2009 23:00:35 +0530 [thread overview]
Message-ID: <20090811173035.7074.95239.sendpatchset@subratamodak.linux.ibm.com> (raw)
In-Reply-To: <20090811172957.7074.62874.sendpatchset@subratamodak.linux.ibm.com>
Once the faults has been injected and all the concerned tests have been run
completely, the kernel needs to be restored back to its original pristine
form so that it is stable again. This Script does just exactly that.
Signed-off-by: Subrata Modak <subrata@linux.vnet.ibm.com>
---
diff -uprN ltp-full-20090731.orig/tools/restore_kernel_faults_default.sh ltp-full-20090731/tools/restore_kernel_faults_default.sh
--- ltp-full-20090731.orig/tools/restore_kernel_faults_default.sh 1970-01-01 05:30:00.000000000 +0530
+++ ltp-full-20090731/tools/restore_kernel_faults_default.sh 2009-08-11 18:45:38.000000000 +0530
@@ -0,0 +1,85 @@
+#!/bin/sh
+################################################################################
+## ##
+## Copyright (c) International Business Machines Corp., 2009 ##
+## ##
+## 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 ##
+## ##
+################################################################################
+# ##
+# File : restore_kernel_faults_default.sh ##
+# ##
+# Usage: restore_kernel_faults_default.sh ##
+# ##
+# Description: This is a simple script that will restore the /debugfs/fail* ##
+# entries to their default values ##
+# ##
+# Author: Subrata Modak <subrata@linux.vnet.ibm.com> ##
+# ##
+# History: Aug 11 2009 - Created - Subrata Modak. ##
+################################################################################
+
+echo 0 > /debug/fail_io_timeout/reject-end
+echo 0 > /debug/fail_io_timeout/reject-start
+echo 4294967295 > /debug/fail_io_timeout/require-end
+echo 0 > /debug/fail_io_timeout/require-start
+echo 32 > /debug/fail_io_timeout/stacktrace-depth
+echo N > /debug/fail_io_timeout/task-filter
+echo 2 > /debug/fail_io_timeout/verbose
+echo 0 > /debug/fail_io_timeout/space
+echo 1 > /debug/fail_io_timeout/times
+echo 1 > /debug/fail_io_timeout/interval
+echo 0 > /debug/fail_io_timeout/probability
+
+echo 0 > /debug/fail_make_request/reject-end
+echo 0 > /debug/fail_make_request/reject-start
+echo 4294967295 > /debug/fail_make_request/require-end
+echo 0 > /debug/fail_make_request/require-start
+echo 32 > /debug/fail_make_request/stacktrace-depth
+echo N > /debug/fail_make_request/task-filter
+echo 2 > /debug/fail_make_request/verbose
+echo 0 > /debug/fail_make_request/space
+echo 1 > /debug/fail_make_request/times
+echo 1 > /debug/fail_make_request/interval
+echo 0 > /debug/fail_make_request/probability
+
+echo 1 > /debug/fail_page_alloc/min-order
+echo Y > /debug/fail_page_alloc/ignore-gfp-highmem
+echo Y > /debug/fail_page_alloc/ignore-gfp-wait
+echo 0 > /debug/fail_page_alloc/reject-end
+echo 0 > /debug/fail_page_alloc/reject-start
+echo 4294967295 > /debug/fail_page_alloc/require-end
+echo 0 > /debug/fail_page_alloc/require-start
+echo 32 > /debug/fail_page_alloc/stacktrace-depth
+echo N > /debug/fail_page_alloc/task-filter
+echo 2 > /debug/fail_page_alloc/verbose
+echo 0 > /debug/fail_page_alloc/space
+echo 1 > /debug/fail_page_alloc/times
+echo 1 > /debug/fail_page_alloc/interval
+echo 0 > /debug/fail_page_alloc/probability
+
+echo Y > /debug/failslab/ignore-gfp-wait
+echo 0 > /debug/failslab/reject-end
+echo 0 > /debug/failslab/reject-start
+echo 4294967295 > /debug/failslab/require-end
+echo 0 > /debug/failslab/require-start
+echo 32 > /debug/failslab/stacktrace-depth
+echo N > /debug/failslab/task-filter
+echo 2 > /debug/failslab/verbose
+echo 0 > /debug/failslab/space
+echo 1 > /debug/failslab/times
+echo 1 > /debug/failslab/interval
+echo 0 > /debug/failslab/probability
+
---
Regards--
Subrata
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2009-08-11 17:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-11 17:29 [LTP] [PATCH 00/05] Integration of "Fault Injection Framework" into LTP Subrata Modak
2009-08-11 17:30 ` [LTP] [PATCH 01/05] Provide all necessary information through ltp/README Subrata Modak
2009-08-11 17:30 ` [LTP] [PATCH 02/05] Add Script which would actually do the job of injecting faults Subrata Modak
2009-08-12 8:45 ` Garrett Cooper
2009-08-12 11:20 ` Subrata Modak
2009-08-11 17:30 ` Subrata Modak [this message]
2009-08-11 17:30 ` [LTP] [PATCH 04/05] Add Script which will be at the heart of this infrastructure Subrata Modak
2009-08-12 8:42 ` Garrett Cooper
2009-08-12 11:21 ` Subrata Modak
2009-08-13 7:11 ` Mike Frysinger
2009-08-11 17:31 ` [LTP] [PATCH 05/05] Add the necessary Interface and Option through "runltp" Subrata Modak
2009-08-11 18:02 ` Paul Larson
[not found] ` <4A81B1A0.5050708@ubuntu.com>
2009-08-12 11:21 ` Subrata Modak
2009-08-13 7:13 ` Mike Frysinger
2009-08-11 17:31 ` [LTP] [RESULTS] Results of test run for "Fault Injection Framework" Subrata Modak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090811173035.7074.95239.sendpatchset@subratamodak.linux.ibm.com \
--to=subrata@linux.vnet.ibm.com \
--cc=balbir@linux.vnet.ibm.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=manoj.iyer@ubuntu.com \
--cc=mreed10@us.ibm.com \
--cc=nate@refried.org \
--cc=paul.larson@ubuntu.com \
--cc=sachinp@linux.vnet.ibm.com \
--cc=vapier@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox