2 #define TRACE_SYSTEM ras
3 #define TRACE_INCLUDE_FILE ras_event
5 #if !defined(_TRACE_HW_EVENT_MC_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define _TRACE_HW_EVENT_MC_H
32 TP_PROTO(
const unsigned int err_type,
33 const char *error_msg,
35 const int error_count,
42 unsigned long syndrome,
43 const char *driver_detail),
45 TP_ARGS(err_type, error_msg, label, error_count, mc_index,
46 top_layer, mid_layer, low_layer, address, grain_bits,
47 syndrome, driver_detail),
61 __string( driver_detail, driver_detail )
68 __entry->error_count = error_count;
71 __entry->middle_layer = mid_layer;
72 __entry->lower_layer = low_layer;
74 __entry->grain_bits = grain_bits;
79 TP_printk(
"%d %s error%s:%s%s on %s (mc:%d location:%d:%d:%d address:0x%08lx grain:%d syndrome:0x%08lx%s%s)",
83 "Fatal" :
"Uncorrected"),
84 __entry->error_count > 1 ?
"s" :
"",
95 ((
char *)
__get_str(driver_detail))[0] ?
" " :
"",