函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:print_syscall_enter

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

返回类型:enum print_line_t

参数:

类型参数名称
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  如果非entry则转到:end
144  如果type不等于type
145  WARN_ON_ONCE(1)
146  转到: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 i小于nb_args循环
153  如果跟踪泛滥则转到:end
157  如果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
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  返回: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.