Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:print_syscall_enter

Proto:static enum print_line_t print_syscall_enter(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
130  tr = tr
131  s = The below is zeroed out in pipe_read
132  ent = ent
137  trace = ent
138  syscall = nr
139  entry = syscall_nr_to_meta(syscall)
141  If Not entry Then Go to end
144  If type != type Then
145  WARN_ON_ONCE(1)
146  Go to end
149  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
151  When i < nb_args cycle
153  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
157  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
161  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
166  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
167  end :
168  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
170  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.