函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace.c Create Date:2022-07-27 13:05:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:print_trace_fmt

函数原型:static enum print_line_t print_trace_fmt(struct trace_iterator *iter)

返回类型:enum print_line_t

参数:

类型参数名称
struct trace_iterator *iter
3814  tr等于tr
3815  s等于 The below is zeroed out in pipe_read
3816  sym_flags等于trace_flags按位与TRACE_ITER_SYM_MASK masks the options in trace_flags that* control the output of kernel symbols.
3820  entry等于ent
3822  test_cpu_buff_start(iter)
3824  event等于ftrace_find_event(type)
3826  如果trace_flags按位与TRACE_ITER_CONTEXT_INFO
3827  如果iter_flags按位与TRACE_FILE_LAT_FMTtrace_print_lat_context(iter)
3829  否则trace_print_context(iter)
3833  如果跟踪泛滥则返回: Retry after flushing the seq
3836  如果event则返回:trace(iter, sym_flags, event)
3839  Currently only defined when tracing is enabled.
3841  返回:Several functions return TRACE_TYPE_PARTIAL_LINE if the trace_seq* overflowed, and TRACE_TYPE_HANDLED otherwise. This helper function* simplifies those functions and keeps them in sync.
调用者
名称描述
print_trace_lineCalled with trace_event_read_lock() held.