函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:kernel\trace\trace_output.c Create Date:2022-07-27 13:11:42
首页 Copyright©Brick

832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
/* TRACE_FN */
static enum print_line_t trace_fn_trace(struct trace_iterator *iter, int flags,
                    struct trace_event *event)
{
    struct ftrace_entry *field;
    struct trace_seq *s = &iter->seq;
 
    trace_assign_type(field, iter->ent);
 
    seq_print_ip_sym(s, field->ip, flags);
 
    if ((flags & TRACE_ITER_PRINT_PARENT) && field->parent_ip) {
        trace_seq_puts(s, " <-");
        seq_print_ip_sym(s, field->parent_ip, flags);
    }
 
    trace_seq_putc(s, '\n');
 
    return trace_handle_return(s);
}