函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:print_synth_event

函数原型:static enum print_line_t print_synth_event(struct trace_iterator *iter, int flags, struct trace_event *event)

返回类型:enum print_line_t

参数:

类型参数名称
struct trace_iterator *iter
intflags
struct trace_event *event
818  tr等于tr
819  s等于 The below is zeroed out in pipe_read
826  entry等于ent
827  se等于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.(event, structsynth_event, event)
829  race_seq_printf - sequence printing of trace information*@s: trace sequence descriptor*@fmt: printf format string* The tracer may use either sequence operations or its own* copy to user routines
831 i小于n_fields循环
832  如果跟踪泛滥则转到:end
835  fmt等于synth_field_fmt(type)
838  如果trace_flags按位与TRACE_ITER_VERBOSErace_seq_printf - sequence printing of trace information*@s: trace sequence descriptor*@fmt: printf format string* The tracer may use either sequence operations or its own* copy to user routines
841  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
844  如果is_string
849  否则
857  如果字符串比较恒等于0则
864  n_u64自加
867  end :
868  race_seq_putc - trace sequence printing of simple character*@s: trace sequence descriptor*@c: simple character to record* The tracer may use either the sequence operations or its own* copy to user routines
870  返回: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.