函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Case of a leaf function on its call entry

函数原型:static enum print_line_t print_graph_entry_leaf(struct trace_iterator *iter, struct ftrace_graph_ent_entry *entry, struct ftrace_graph_ret_entry *ret_entry, struct trace_seq *s, unsigned int flags)

返回类型:enum print_line_t

参数:

类型参数名称
struct trace_iterator *iter
struct ftrace_graph_ent_entry *entry
struct ftrace_graph_ret_entry *ret_entry
struct trace_seq *s
unsigned intflags
631  data等于private
632  tr等于tr
636  cpu等于cpu
639  graph_ret等于ret
640  call等于graph_ent
641  duration等于rettimecalltime
643  如果data
646  cpu_data等于per_cpu_ptr(cpu_data, cpu)
653  depth等于depth减1
656  如果depth小于FTRACE_RETFUNC_DEPTH且非WARN_ON_ONCE(depth < 0)则enter_funcs[depth]等于0
662  print_graph_duration(tr, duration, s, flags)
665 i小于depthTRACE_GRAPH_INDENT循环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
668  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
670  print_graph_irq(iter, Current function , TRACE_GRAPH_RET, cpu, pid, flags)
673  返回: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.
调用者
名称描述
print_graph_entry