ras.c 562 B

123456789101112131415161718192021222324252627282930
  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);