Merge 4.13-rc2 into tty-next
[linux/fpc-iii.git] / drivers / ras / ras.c
blob5429d37957329f83387a2da6bc687162024de1b0
1 /*
2 * Copyright (C) 2014 Intel Corporation
4 * Authors:
5 * Chen, Gong <gong.chen@linux.intel.com>
6 */
8 #include <linux/init.h>
9 #include <linux/ras.h>
10 #include <linux/uuid.h>
12 #define CREATE_TRACE_POINTS
13 #define TRACE_INCLUDE_PATH ../../include/ras
14 #include <ras/ras_event.h>
16 void log_non_standard_event(const uuid_le *sec_type, const uuid_le *fru_id,
17 const char *fru_text, const u8 sev, const u8 *err,
18 const u32 len)
20 trace_non_standard_event(sec_type, fru_id, fru_text, sev, err, len);
23 void log_arm_hw_error(struct cper_sec_proc_arm *err)
25 trace_arm_event(err);
28 static int __init ras_init(void)
30 int rc = 0;
32 ras_debugfs_init();
33 rc = ras_add_daemon_trace();
35 return rc;
37 subsys_initcall(ras_init);
39 #if defined(CONFIG_ACPI_EXTLOG) || defined(CONFIG_ACPI_EXTLOG_MODULE)
40 EXPORT_TRACEPOINT_SYMBOL_GPL(extlog_mem_event);
41 #endif
42 EXPORT_TRACEPOINT_SYMBOL_GPL(mc_event);
43 EXPORT_TRACEPOINT_SYMBOL_GPL(non_standard_event);
44 EXPORT_TRACEPOINT_SYMBOL_GPL(arm_event);
46 static int __init parse_ras_param(char *str)
48 #ifdef CONFIG_RAS_CEC
49 parse_cec_param(str);
50 #endif
52 return 1;
54 __setup("ras", parse_ras_param);