blob: e87fd9e32ee27be7c92b828ee49345116d71edf1 [file] [log] [blame]
Chen, Gong76ac8272014-06-11 13:54:04 -07001/*
2 * Copyright (C) 2014 Intel Corporation
3 *
4 * Authors:
5 * Chen, Gong <gong.chen@linux.intel.com>
6 */
7
Chen, Gongd963cd92014-06-11 14:02:20 -07008#include <linux/init.h>
9#include <linux/ras.h>
Tyler Baicar297b64c2017-06-21 12:17:12 -060010#include <linux/uuid.h>
Chen, Gongd963cd92014-06-11 14:02:20 -070011
Chen, Gong76ac8272014-06-11 13:54:04 -070012#define CREATE_TRACE_POINTS
13#define TRACE_INCLUDE_PATH ../../include/ras
14#include <ras/ras_event.h>
15
Tyler Baicar297b64c2017-06-21 12:17:12 -060016void 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)
19{
20 trace_non_standard_event(sec_type, fru_id, fru_text, sev, err, len);
21}
22
Chen, Gongd963cd92014-06-11 14:02:20 -070023static int __init ras_init(void)
24{
25 int rc = 0;
26
27 ras_debugfs_init();
28 rc = ras_add_daemon_trace();
29
30 return rc;
31}
32subsys_initcall(ras_init);
33
Chen, Gong2dfb7d52014-06-17 22:33:07 -040034#if defined(CONFIG_ACPI_EXTLOG) || defined(CONFIG_ACPI_EXTLOG_MODULE)
35EXPORT_TRACEPOINT_SYMBOL_GPL(extlog_mem_event);
36#endif
Chen, Gong76ac8272014-06-11 13:54:04 -070037EXPORT_TRACEPOINT_SYMBOL_GPL(mc_event);
Tyler Baicar297b64c2017-06-21 12:17:12 -060038EXPORT_TRACEPOINT_SYMBOL_GPL(non_standard_event);
Borislav Petkov011d8262017-03-27 11:33:02 +020039
40int __init parse_ras_param(char *str)
41{
42#ifdef CONFIG_RAS_CEC
43 parse_cec_param(str);
44#endif
45
46 return 1;
47}
48__setup("ras", parse_ras_param);