From: Borislav Petkov on 22 May 2010 15:10 Not-yet-signed-off-by: Borislav Petkov <bp(a)alien8.de> --- arch/x86/kernel/cpu/mcheck/mce.c | 4 ++++ include/trace/events/mce.h | 1 + 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index 8a6f0af..5f40726 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c @@ -1668,6 +1668,10 @@ int __init mcheck_init(void) mcheck_intel_therm_init(); +#ifdef CONFIG_EVENT_TRACING + event_mce_record.type = EVENT_PERSISTENT; +#endif + return 0; } diff --git a/include/trace/events/mce.h b/include/trace/events/mce.h index 7eee778..b1ad772 100644 --- a/include/trace/events/mce.h +++ b/include/trace/events/mce.h @@ -5,6 +5,7 @@ #define _TRACE_MCE_H #include <linux/ktime.h> +#include <linux/ftrace_event.h> #include <linux/tracepoint.h> #include <asm/mce.h> -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Pages: 1 Prev: [RFC PATCH 0/2] perf: persistent events prototype Next: perf: Add persistent events |