xref: /openbmc/linux/drivers/ras/ras.c (revision 905e46ac)
1 /*
2  * Copyright (C) 2014 Intel Corporation
3  *
4  * Authors:
5  *	Chen, Gong <gong.chen@linux.intel.com>
6  */
7 
8 #include <linux/init.h>
9 #include <linux/ras.h>
10 
11 #define CREATE_TRACE_POINTS
12 #define TRACE_INCLUDE_PATH ../../include/ras
13 #include <ras/ras_event.h>
14 
15 static int __init ras_init(void)
16 {
17 	int rc = 0;
18 
19 	ras_debugfs_init();
20 	rc = ras_add_daemon_trace();
21 
22 	return rc;
23 }
24 subsys_initcall(ras_init);
25 
26 #if defined(CONFIG_ACPI_EXTLOG) || defined(CONFIG_ACPI_EXTLOG_MODULE)
27 EXPORT_TRACEPOINT_SYMBOL_GPL(extlog_mem_event);
28 #endif
29 EXPORT_TRACEPOINT_SYMBOL_GPL(mc_event);
30 
31 
32 int __init parse_ras_param(char *str)
33 {
34 #ifdef CONFIG_RAS_CEC
35 	parse_cec_param(str);
36 #endif
37 
38 	return 1;
39 }
40 __setup("ras", parse_ras_param);
41