To avoid the confuision of usage for RAS related trace event, add an unified RAS trace event stub. Signed-off-by: Chen, Gong <gong.chen@xxxxxxxxxxxxxxx> --- drivers/edac/edac_mc.c | 3 --- kernel/trace/Makefile | 1 + kernel/trace/ras-traces.c | 12 ++++++++++++ 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 kernel/trace/ras-traces.c diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c index 33edd67..28c1695 100644 --- a/drivers/edac/edac_mc.c +++ b/drivers/edac/edac_mc.c @@ -33,9 +33,6 @@ #include <asm/edac.h> #include "edac_core.h" #include "edac_module.h" - -#define CREATE_TRACE_POINTS -#define TRACE_INCLUDE_PATH ../../include/ras #include <ras/ras_event.h> /* lock to memory controller's control array */ diff --git a/kernel/trace/Makefile b/kernel/trace/Makefile index 1378e84..167193a 100644 --- a/kernel/trace/Makefile +++ b/kernel/trace/Makefile @@ -52,6 +52,7 @@ endif obj-$(CONFIG_EVENT_TRACING) += trace_events_filter.o obj-$(CONFIG_EVENT_TRACING) += trace_events_trigger.o obj-$(CONFIG_KPROBE_EVENT) += trace_kprobe.o +obj-$(CONFIG_TRACEPOINTS) += ras-traces.o obj-$(CONFIG_TRACEPOINTS) += power-traces.o ifeq ($(CONFIG_PM_RUNTIME),y) obj-$(CONFIG_TRACEPOINTS) += rpm-traces.o diff --git a/kernel/trace/ras-traces.c b/kernel/trace/ras-traces.c new file mode 100644 index 0000000..b0c6ed1 --- /dev/null +++ b/kernel/trace/ras-traces.c @@ -0,0 +1,12 @@ +/* + * Copyright (C) 2014 Intel Corporation + * + * Authors: + * Chen, Gong <gong.chen@xxxxxxxxxxxxxxx> + */ + +#define CREATE_TRACE_POINTS +#define TRACE_INCLUDE_PATH ../../include/ras +#include <ras/ras_event.h> + +EXPORT_TRACEPOINT_SYMBOL_GPL(mc_event); -- 1.8.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html