Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

trace, RAS: Add basic RAS trace event

To avoid confuision and conflict of usage for RAS related trace event,
add an unified RAS trace event stub.

Start a RAS subsystem menu which will be fleshed out in time, when more
features get added to it.

Signed-off-by: Chen, Gong <gong.chen@linux.intel.com>
Link: http://lkml.kernel.org/r/1402475691-30045-2-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>

authored by

Chen, Gong and committed by
Tony Luck
76ac8275 4d4c9cc8

+19 -3
+2
drivers/Kconfig
··· 176 176 177 177 source "drivers/mcb/Kconfig" 178 178 179 + source "drivers/ras/Kconfig" 180 + 179 181 endmenu
+1
drivers/Makefile
··· 158 158 obj-$(CONFIG_FMC) += fmc/ 159 159 obj-$(CONFIG_POWERCAP) += powercap/ 160 160 obj-$(CONFIG_MCB) += mcb/ 161 + obj-$(CONFIG_RAS) += ras/
+1
drivers/edac/Kconfig
··· 72 72 73 73 config EDAC_MM_EDAC 74 74 tristate "Main Memory EDAC (Error Detection And Correction) reporting" 75 + select RAS 75 76 help 76 77 Some systems are able to detect and correct errors in main 77 78 memory. EDAC can report statistics on memory error
-3
drivers/edac/edac_mc.c
··· 33 33 #include <asm/edac.h> 34 34 #include "edac_core.h" 35 35 #include "edac_module.h" 36 - 37 - #define CREATE_TRACE_POINTS 38 - #define TRACE_INCLUDE_PATH ../../include/ras 39 36 #include <ras/ras_event.h> 40 37 41 38 /* lock to memory controller's control array */
+2
drivers/ras/Kconfig
··· 1 + config RAS 2 + bool
+1
drivers/ras/Makefile
··· 1 + obj-$(CONFIG_RAS) += ras.o
+12
drivers/ras/ras.c
··· 1 + /* 2 + * Copyright (C) 2014 Intel Corporation 3 + * 4 + * Authors: 5 + * Chen, Gong <gong.chen@linux.intel.com> 6 + */ 7 + 8 + #define CREATE_TRACE_POINTS 9 + #define TRACE_INCLUDE_PATH ../../include/ras 10 + #include <ras/ras_event.h> 11 + 12 + EXPORT_TRACEPOINT_SYMBOL_GPL(mc_event);