• L
    tracing: Use defined fields and print_fmt to print formats · 5a65e956
    Lai Jiangshan 提交于
    The calls ftrace_format_##call() and ftrace_define_fields_##call()
    are almost duplicate in functionality. With the addition of the
    print_fmt in previous patches, these two functions can be merged
    into one.
    
    The trace_define_field() defines the fields and links them into
    the struct ftrace_event_call. The previous patches introduced
    the print_fmt field and this can now be used with the trace_define_field()
    to create the event format file fields and print_fmt field.
    
    The struct ftrace_event_call->fields are used to print the fields
    The struct ftrace_event_call->print_fmt is used to print
    the "print fmt: XXXXXXXXXXX" line.
    Signed-off-by: NLai Jiangshan <laijs@cn.fujitsu.com>
    LKML-Reference: <4B273D49.5000006@cn.fujitsu.com>
    Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
    5a65e956
trace_events.c 32.4 KB