Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:print_synth_event

Proto:static enum print_line_t print_synth_event(struct trace_iterator *iter, int flags, struct trace_event *event)

Type:enum print_line_t

Parameter:

TypeParameterName
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  When i < n_fields cycle
832  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 Go to end
835  fmt = synth_field_fmt(type)
838  If trace_flags & TRACE_ITER_VERBOSE Then 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
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  If is_string Then
849  Else
857  If strcmp(type, "gfp_t") == 0 Then
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  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.