函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:trace_raw_output_prep

函数原型:int trace_raw_output_prep(struct trace_iterator *iter, struct trace_event *trace_event)

返回类型:int

参数:

类型参数名称
struct trace_iterator *iter
struct trace_event *trace_event
296  s等于 The below is zeroed out in pipe_read
297  p等于 trace_seq for __print_flags() and __print_symbolic() etc.
300  event等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(trace_event, structtrace_event_call, event)
301  entry等于ent
303  如果type不等于type
304  WARN_ON_ONCE(1)
305  返回: Relay to other output functions
308  trace_seq_init(p)
309  Currently only defined when tracing is enabled.
311  返回: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.