Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:print_hex_fmt

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

Type:enum print_line_t

Parameter:

TypeParameterName
struct trace_iterator *iter
3871  tr = tr
3872  s = The below is zeroed out in pipe_read
3873  newline = '\n'
3877  entry = ent
3879  If trace_flags & TRACE_ITER_CONTEXT_INFO Then
3880  SEQ_PUT_HEX_FIELD(s, pid)
3881  SEQ_PUT_HEX_FIELD(s, cpu)
3882  SEQ_PUT_HEX_FIELD(s, ts)
3883  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
3887  event = ftrace_find_event(type)
3888  If event Then
3889  ret = hex(iter, 0, event)
3890  If ret != TRACE_TYPE_HANDLED Then Return ret
3894  SEQ_PUT_FIELD(s, newline)
3896  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.