diff options
author | Chen, Gong <gong.chen@linux.intel.com> | 2014-06-11 14:02:20 -0700 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2014-06-25 11:22:03 -0700 |
commit | d963cd95bea93b7db9390a71d1e2cabbb3b2c3ea (patch) | |
tree | b6d25da65a161f6c38207a2f15515c3b795d3396 /include/linux/ras.h | |
parent | 3760cd20402d4c131e1994c968ecb055fa0f74bc (diff) |
RAS, debugfs: Add debugfs interface for RAS subsystem
Implement a new debugfs interface for RAS susbsystem.
A file named daemon_active is added there accordingly.
This file is used to track if user space daemon accesses
perf/trace interface or not. One can track which daemon
opens it via "lsof /path/to/debugfs/ras/daemon_active".
Signed-off-by: Chen, Gong <gong.chen@linux.intel.com>
Link: http://lkml.kernel.org/r/1402475691-30045-5-git-send-email-gong.chen@linux.intel.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include/linux/ras.h')
-rw-r--r-- | include/linux/ras.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/ras.h b/include/linux/ras.h new file mode 100644 index 000000000000..2aceeafd6fe5 --- /dev/null +++ b/include/linux/ras.h @@ -0,0 +1,14 @@ +#ifndef __RAS_H__ +#define __RAS_H__ + +#ifdef CONFIG_DEBUG_FS +int ras_userspace_consumers(void); +void ras_debugfs_init(void); +int ras_add_daemon_trace(void); +#else +static inline int ras_userspace_consumers(void) { return 0; } +static inline void ras_debugfs_init(void) { return; } +static inline int ras_add_daemon_trace(void) { return 0; } +#endif + +#endif |