ras.c 703 B

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