#undef TRACE_SYSTEM
#define TRACE_SYSTEM …
#if !defined(_TRACE_ERROR_REPORT_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_ERROR_REPORT_H
#include <linux/tracepoint.h>
#ifndef __ERROR_REPORT_DECLARE_TRACE_ENUMS_ONCE_ONLY
#define __ERROR_REPORT_DECLARE_TRACE_ENUMS_ONCE_ONLY
enum error_detector { … };
#endif
#define error_detector_list …
#undef EM
#undef EMe
#define EM(a, b) …
#define EMe(a, b) …
error_detector_list
#undef EM
#undef EMe
#define EM(a, b) …
#define EMe(a, b) …
#define show_error_detector_list(val) …
DECLARE_EVENT_CLASS(error_report_template,
TP_PROTO(enum error_detector error_detector, unsigned long id),
TP_ARGS(error_detector, id),
TP_STRUCT__entry(__field(enum error_detector, error_detector)
__field(unsigned long, id)),
TP_fast_assign(__entry->error_detector = error_detector;
__entry->id = id;),
TP_printk("[%s] %lx",
show_error_detector_list(__entry->error_detector),
__entry->id));
DEFINE_EVENT(error_report_template, error_report_end,
TP_PROTO(enum error_detector error_detector, unsigned long id),
TP_ARGS(error_detector, id));
#endif
#include <trace/define_trace.h>