mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
[PATCH] fault injection: process filtering for fault-injection capabilities
This patch provides process filtering feature. The process filter allows failing only permitted processes by /proc/<pid>/make-it-fail Please see the example that demostrates how to inject slab allocation failures into module init/cleanup code in Documentation/fault-injection/fault-injection.txt Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
c17bb49517
commit
f4f154fd92
4 changed files with 86 additions and 1 deletions
|
@ -17,6 +17,7 @@ struct fault_attr {
|
|||
atomic_t times;
|
||||
atomic_t space;
|
||||
unsigned long verbose;
|
||||
u32 task_filter;
|
||||
|
||||
unsigned long count;
|
||||
|
||||
|
@ -30,6 +31,7 @@ struct fault_attr {
|
|||
struct dentry *times_file;
|
||||
struct dentry *space_file;
|
||||
struct dentry *verbose_file;
|
||||
struct dentry *task_filter_file;
|
||||
} dentries;
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue