1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2014 Intel Corporation
6 * Chen, Gong <gong.chen@linux.intel.com>
9 #include <linux/init.h>
10 #include <linux/ras.h>
11 #include <linux/uuid.h>
13 #define CREATE_TRACE_POINTS
14 #define TRACE_INCLUDE_PATH ../../include/ras
15 #include <ras/ras_event.h>
17 void log_non_standard_event(const guid_t
*sec_type
, const guid_t
*fru_id
,
18 const char *fru_text
, const u8 sev
, const u8
*err
,
21 trace_non_standard_event(sec_type
, fru_id
, fru_text
, sev
, err
, len
);
24 void log_arm_hw_error(struct cper_sec_proc_arm
*err
)
29 static int __init
ras_init(void)
34 rc
= ras_add_daemon_trace();
38 subsys_initcall(ras_init
);
40 #if defined(CONFIG_ACPI_EXTLOG) || defined(CONFIG_ACPI_EXTLOG_MODULE)
41 EXPORT_TRACEPOINT_SYMBOL_GPL(extlog_mem_event
);
43 EXPORT_TRACEPOINT_SYMBOL_GPL(mc_event
);
44 EXPORT_TRACEPOINT_SYMBOL_GPL(non_standard_event
);
45 EXPORT_TRACEPOINT_SYMBOL_GPL(arm_event
);
47 static int __init
parse_ras_param(char *str
)
55 __setup("ras", parse_ras_param
);