diff options
Diffstat (limited to 'include/linux/fault-inject.h')
-rw-r--r-- | include/linux/fault-inject.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/fault-inject.h b/include/linux/fault-inject.h index a525f9b9f015..9bb584e89399 100644 --- a/include/linux/fault-inject.h +++ b/include/linux/fault-inject.h | |||
@@ -18,6 +18,11 @@ struct fault_attr { | |||
18 | atomic_t space; | 18 | atomic_t space; |
19 | unsigned long verbose; | 19 | unsigned long verbose; |
20 | u32 task_filter; | 20 | u32 task_filter; |
21 | unsigned long stacktrace_depth; | ||
22 | unsigned long require_start; | ||
23 | unsigned long require_end; | ||
24 | unsigned long reject_start; | ||
25 | unsigned long reject_end; | ||
21 | 26 | ||
22 | unsigned long count; | 27 | unsigned long count; |
23 | 28 | ||
@@ -32,6 +37,11 @@ struct fault_attr { | |||
32 | struct dentry *space_file; | 37 | struct dentry *space_file; |
33 | struct dentry *verbose_file; | 38 | struct dentry *verbose_file; |
34 | struct dentry *task_filter_file; | 39 | struct dentry *task_filter_file; |
40 | struct dentry *stacktrace_depth_file; | ||
41 | struct dentry *require_start_file; | ||
42 | struct dentry *require_end_file; | ||
43 | struct dentry *reject_start_file; | ||
44 | struct dentry *reject_end_file; | ||
35 | } dentries; | 45 | } dentries; |
36 | 46 | ||
37 | #endif | 47 | #endif |
@@ -40,6 +50,8 @@ struct fault_attr { | |||
40 | #define FAULT_ATTR_INITIALIZER { \ | 50 | #define FAULT_ATTR_INITIALIZER { \ |
41 | .interval = 1, \ | 51 | .interval = 1, \ |
42 | .times = ATOMIC_INIT(1), \ | 52 | .times = ATOMIC_INIT(1), \ |
53 | .require_end = ULONG_MAX, \ | ||
54 | .stacktrace_depth = 32, \ | ||
43 | } | 55 | } |
44 | 56 | ||
45 | #define DECLARE_FAULT_ATTR(name) struct fault_attr name = FAULT_ATTR_INITIALIZER | 57 | #define DECLARE_FAULT_ATTR(name) struct fault_attr name = FAULT_ATTR_INITIALIZER |