[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1274554806-28216-3-git-send-email-bp@alien8.de>
Date: Sat, 22 May 2010 21:00:06 +0200
From: Borislav Petkov <bp@...en8.de>
To: Ingo Molnar <mingo@...e.hu>,
Frederic Weisbecker <fweisbec@...il.com>,
Steven Rostedt <rostedt@...dmis.org>,
Peter Zijlstra <peterz@...radead.org>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Lin Ming <ming.m.lin@...el.com>
Cc: linux-kernel@...r.kernel.org, Borislav Petkov <bp@...en8.de>
Subject: [PATCH 2/2] x86, mce: Make MCE tracepoint persistent event
Not-yet-signed-off-by: Borislav Petkov <bp@...en8.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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists