[PATCH 2/2] x86, mce: Make MCE tracepoint persistent event
From: Borislav Petkov
Date: Sat May 22 2010 - 15:02:01 EST
Not-yet-signed-off-by: Borislav Petkov <bp@xxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/