aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-03-26 08:35:11 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-06-11 12:23:43 -0400
commit452a6bf955ee1842361742833e40e046287308f4 (patch)
tree2e4fb61fbbf32f17d80d9fce27a985361e6fc9af /include
parent8ad6c78a69ac5c74e8f4e8c78cdb86772face433 (diff)
edac: Add debufs nodes to allow doing fake error inject
Sometimes, it is useful to have a mechanism that generates fake errors, in order to test the EDAC core code, and the userspace tools. Provide such mechanism by adding a few debugfs nodes. Reviewed-by: Aristeu Rozanski <arozansk@redhat.com> Cc: Doug Thompson <norsk5@yahoo.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/edac.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/edac.h b/include/linux/edac.h
index 8a2da47daa47..64ae0c5cf62e 100644
--- a/include/linux/edac.h
+++ b/include/linux/edac.h
@@ -17,6 +17,7 @@
17#include <linux/kobject.h> 17#include <linux/kobject.h>
18#include <linux/completion.h> 18#include <linux/completion.h>
19#include <linux/workqueue.h> 19#include <linux/workqueue.h>
20#include <linux/debugfs.h>
20 21
21struct device; 22struct device;
22 23
@@ -634,6 +635,12 @@ struct mem_ctl_info {
634 635
635 /* the internal state of this controller instance */ 636 /* the internal state of this controller instance */
636 int op_state; 637 int op_state;
638
639#ifdef CONFIG_EDAC_DEBUG
640 struct dentry *debugfs;
641 u8 fake_inject_layer[EDAC_MAX_LAYERS];
642 u32 fake_inject_ue;
643#endif
637}; 644};
638 645
639#endif 646#endif