函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:print_hex_fmt

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

返回类型:enum print_line_t

参数:

类型参数名称
struct trace_iterator *iter
3871  tr等于tr
3872  s等于 The below is zeroed out in pipe_read
3873  newline等于'\n'
3877  entry等于ent
3879  如果trace_flags按位与TRACE_ITER_CONTEXT_INFO
3880  SEQ_PUT_HEX_FIELD(s, pid)
3881  SEQ_PUT_HEX_FIELD(s, cpu)
3882  SEQ_PUT_HEX_FIELD(s, ts)
3883  如果跟踪泛滥则返回: Retry after flushing the seq
3887  event等于ftrace_find_event(type)
3888  如果event
3889  ret等于hex(iter, 0, event)
3890  如果ret不等于TRACE_TYPE_HANDLED则返回:ret
3894  SEQ_PUT_FIELD(s, newline)
3896  返回: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.