Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace.c Create Date:2022-07-28 12:00:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:print_trace_fmt

Proto:static enum print_line_t print_trace_fmt(struct trace_iterator *iter)

Type:enum print_line_t

Parameter:

TypeParameterName
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  If trace_flags & TRACE_ITER_CONTEXT_INFO Then
3827  If iter_flags & TRACE_FILE_LAT_FMT Then trace_print_lat_context(iter)
3829  Else trace_print_context(iter)
3833  If race_seq_has_overflowed - return true if the trace_seq took too much*@s: trace sequence descriptor* Returns true if too much data was added to the trace_seq and it is* now full and will not take anymore. Then Return Retry after flushing the seq
3836  If event Then Return trace(iter, sym_flags, event)
3839  Currently only defined when tracing is enabled.
3841  Return 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.
Caller
NameDescribe
print_trace_lineCalled with trace_event_read_lock() held.