"tsize" should be "\tsize". Also remove the space before "__str_loc". Before: # cat tracing/events/irq/irq_handler_entry/format ... field:int irq; offset:12; size:4; field: __str_loc name; offset:16;tsize:2; ... After: # cat tracing/events/irq/irq_handler_entry/format ... field:int irq; offset:12; size:4; field:__str_loc name; offset:16; size:2; ... [ Impact: standardize __string field description in events format file ]
Unified · Split
| @@ -209,8 +209,8 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags) \ · 208 unmodified lines | |||
| 209 | 209 | ||
| 210 | #undef __string | 210 | #undef __string |
| 211 | #define __string(item, src) \ | 211 | #define __string(item, src) \ |
| 212 | ret = trace_seq_printf(s, "\tfield: __str_loc " #item ";\t" \ | 212 | ret = trace_seq_printf(s, "\tfield:__str_loc " #item ";\t" \ |
| 213 | "offset:%u;tsize:%u;\n", \ | 213 | "offset:%u;\tsize:%u;\n", \ |
| 214 | (unsigned int)offsetof(typeof(field), \ | 214 | (unsigned int)offsetof(typeof(field), \ |
| 215 | __str_loc_##item), \ | 215 | __str_loc_##item), \ |
| 216 | (unsigned int)sizeof(field.__str_loc_##item)); \ | 216 | (unsigned int)sizeof(field.__str_loc_##item)); \ |