LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Don Mullis <dwm@meer.net>
To: lkml <linux-kernel@vger.kernel.org>
Cc: Akinobu Mita <mita@miraclelinux.com>
Subject: Re: Re: [patch 6/6] process filtering for fault-injection capabilities
Date: Thu, 07 Sep 2006 23:29:57 -0700 [thread overview]
Message-ID: <1157696997.9460.99.camel@localhost.localdomain> (raw)
Suggested changes, implemented by patch below:
1) Reorder kernel command line args alphabetically -- lets
output of `ls /debug/failslab` serve as a handy reminder
of the arg bindings.
2) Rename a variable to agree with the /debug file name.
---
lib/should_fail.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
Index: linux-2.6.17/lib/should_fail.c
===================================================================
--- linux-2.6.17.orig/lib/should_fail.c
+++ linux-2.6.17/lib/should_fail.c
@@ -13,18 +13,20 @@ int setup_should_fail(struct should_fail
unsigned long interval;
int times;
int space;
- unsigned long filter;
+ unsigned long process_filter;
- /* "<probability>,<interval>,<times>,<space>,<process-filter>" */
- if (sscanf(str, "%lu,%lu,%d,%d,%lu", &probability, &interval, ×,
- &space, &filter) < 5)
- return 0;
+ /* "<interval>,<probability>,<process-filter>,<space>,<times>" */
+ if (sscanf(str, "%lu,%lu,%lu,%d,%d", &interval,
+ &probability, &process_filter, &space, ×) < 5) {
+ printk( "SHOULD_FAIL: failed to parse arguments\n");
+ return 0;
+ }
data->probability = probability;
data->interval = interval;
atomic_set(&data->times, times);
atomic_set(&data->space, space);
- data->process_filter = filter;
+ data->process_filter = process_filter;
return 1;
}
next reply other threads:[~2006-09-08 6:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-08 6:29 Don Mullis [this message]
2006-09-08 7:00 ` Akinobu Mita
2006-09-09 18:14 ` Don Mullis
2006-09-12 7:08 ` Akinobu Mita
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=1157696997.9460.99.camel@localhost.localdomain \
--to=dwm@meer.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mita@miraclelinux.com \
--subject='Re: Re: [patch 6/6] process filtering for fault-injection capabilities' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).