Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:print_graph_return

Proto:static enum print_line_t print_graph_return(struct ftrace_graph_ret *trace, struct trace_seq *s, struct trace_entry *ent, struct trace_iterator *iter, unsigned int flags)

Type:enum print_line_t

Parameter:

TypeParameterName
struct ftrace_graph_ret *trace
struct trace_seq *s
struct trace_entry *ent
struct trace_iterator *iter
unsigned intflags
905  duration = rettime - calltime
906  data = private
907  tr = tr
908  pid = pid
909  cpu = cpu
910  func_match = 1
913  If Return check for irq code* returns 1 if* - we are inside irq code* - we just left irq code* returns 0 if* - funcgraph-interrupts option is set* - we are not inside irq code Then Return TRACE_TYPE_HANDLED
916  If data Then
918  cpu = cpu
920  cpu_data = per_cpu_ptr(cpu_data, cpu)
927  depth = depth - 1
929  If depth < FTRACE_RETFUNC_DEPTH && Not WARN_ON_ONCE(depth < 0) Then
933  enter_funcs[depth] = 0
937  print_graph_prologue(iter, s, 0, 0, flags)
940  print_graph_duration(tr, duration, s, flags)
943  When i < depth * TRACE_GRAPH_INDENT cycle 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
953  If func_match && Not (flags & TRACE_GRAPH_PRINT_TAIL) Then 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
955  Else 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
959  If flags & TRACE_GRAPH_PRINT_OVERRUN 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
963  print_graph_irq(iter, Current function , TRACE_GRAPH_RET, cpu, pid, flags)
966  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.
Caller
NameDescribe
print_graph_function_flags