LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Re: Re: [patch 6/6] process filtering for fault-injection capabilities
@ 2006-09-08 6:29 Don Mullis
2006-09-08 7:00 ` Akinobu Mita
0 siblings, 1 reply; 4+ messages in thread
From: Don Mullis @ 2006-09-08 6:29 UTC (permalink / raw)
To: lkml; +Cc: Akinobu Mita
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;
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: [patch 6/6] process filtering for fault-injection capabilities
2006-09-08 6:29 Re: [patch 6/6] process filtering for fault-injection capabilities Don Mullis
@ 2006-09-08 7:00 ` Akinobu Mita
2006-09-09 18:14 ` Don Mullis
0 siblings, 1 reply; 4+ messages in thread
From: Akinobu Mita @ 2006-09-08 7:00 UTC (permalink / raw)
To: Don Mullis; +Cc: lkml
On Thu, Sep 07, 2006 at 11:29:57PM -0700, Don Mullis wrote:
> 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.
Yes. this kernel command line was confusing.
This change makes it better.
Now I'm writing the filter which allow failing only for a specific
module by using unwinding kernel stacks API.
Then I'll send next version with your fixes.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: [patch 6/6] process filtering for fault-injection capabilities
2006-09-08 7:00 ` Akinobu Mita
@ 2006-09-09 18:14 ` Don Mullis
2006-09-12 7:08 ` Akinobu Mita
0 siblings, 1 reply; 4+ messages in thread
From: Don Mullis @ 2006-09-09 18:14 UTC (permalink / raw)
To: Akinobu Mita; +Cc: lkml
On Fri, 2006-09-08 at 15:00 +0800, Akinobu Mita wrote:
> Now I'm writing the filter which allow failing only for a specific
> module by using unwinding kernel stacks API.
Are you planning to use STACK_UNWIND? I see that only i386
supports STACK_UNWIND.
Perhaps the much simpler STACKTRACE would suffice -- supported
by i386, x86_64, and s390?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: [patch 6/6] process filtering for fault-injection capabilities
2006-09-09 18:14 ` Don Mullis
@ 2006-09-12 7:08 ` Akinobu Mita
0 siblings, 0 replies; 4+ messages in thread
From: Akinobu Mita @ 2006-09-12 7:08 UTC (permalink / raw)
To: Don Mullis; +Cc: lkml
On Sat, Sep 09, 2006 at 11:14:58AM -0700, Don Mullis wrote:
> On Fri, 2006-09-08 at 15:00 +0800, Akinobu Mita wrote:
> > Now I'm writing the filter which allow failing only for a specific
> > module by using unwinding kernel stacks API.
>
> Are you planning to use STACK_UNWIND? I see that only i386
> supports STACK_UNWIND.
>
> Perhaps the much simpler STACKTRACE would suffice -- supported
> by i386, x86_64, and s390?
Thanks, I didn't realize the include/linux/stacktrace.h
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-09-12 7:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-08 6:29 Re: [patch 6/6] process filtering for fault-injection capabilities Don Mullis
2006-09-08 7:00 ` Akinobu Mita
2006-09-09 18:14 ` Don Mullis
2006-09-12 7:08 ` Akinobu Mita
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).