Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:print_kretprobe_event

Proto:static enum print_line_t print_kretprobe_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
1305  s = The below is zeroed out in pipe_read
1308  field = ent
1309  tp = trace_probe_primary_from_call(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, structtrace_event_call, event))
1311  If WARN_ON_ONCE(!tp) Then Go to out
1314  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
1316  If Not seq_print_ip_sym(s, ret_ip, flags | TRACE_ITER_SYM_OFFSET) Then Go to out
1319  race_seq_puts - trace sequence printing of simple string*@s: trace sequence descriptor*@str: simple string to record* The tracer may use either the sequence operations or its own* copy to user routines
1321  If Not seq_print_ip_sym(s, func, flags & ~TRACE_ITER_SYM_OFFSET) Then Go to out
1324  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
1326  If print_probe_args(s, args, nr_args, (u8 * ) & field[1], field) < 0 Then Go to out
1330  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
1332  out :
1333  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.