函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:print_graph_comment

函数原型:static enum print_line_t print_graph_comment(struct trace_seq *s, struct trace_entry *ent, struct trace_iterator *iter, unsigned int flags)

返回类型:enum print_line_t

参数:

类型参数名称
struct trace_seq *s
struct trace_entry *ent
struct trace_iterator *iter
unsigned intflags
973  tr等于tr
974  sym_flags等于trace_flags按位与TRACE_ITER_SYM_MASK masks the options in trace_flags that* control the output of kernel symbols.
975  data等于private
977  depth等于0
981  如果datadepth = ({
982  cpu
982  ({
982  循环
982  const void * __vpp_verify = NULL
982  当0循环
982  cpu_data
982  })
982  })->depth
984  print_graph_prologue(iter, s, 0, 0, flags)
987  print_graph_duration(tr, 0, s, flags | FLAGS_FILL_FULL)
990  如果depth大于0则以i小于depth加1的和乘TRACE_GRAPH_INDENT循环
992  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
995  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
998  :type恒等于TRACE_BPUTS
999  ret等于trace_print_bputs_msg_only(iter)
1000  如果ret不等于TRACE_TYPE_HANDLED则返回:ret
1002  退出
1003  :type恒等于TRACE_BPRINT
1004  ret等于trace_print_bprintk_msg_only(iter)
1005  如果ret不等于TRACE_TYPE_HANDLED则返回:ret
1007  退出
1008  :type恒等于TRACE_PRINT
1009  ret等于trace_print_printk_msg_only(iter)
1010  如果ret不等于TRACE_TYPE_HANDLED则返回:ret
1012  退出
1013  默认
1014  event等于race_find_event - find a registered event*@type: the type of event to look for* Returns an event of type @type otherwise NULL* Called with trace_event_read_lock() held.
1015  如果非event则返回: Relay to other output functions
1018  ret等于trace(iter, sym_flags, event)
1019  如果ret不等于TRACE_TYPE_HANDLED则返回:ret
1023  如果跟踪泛滥则转到:out
1027  如果buffer[len - 1]恒等于'\n'则
1028  buffer[len - 1]等于'\0'
1029  len自减
1032  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
1033  out :
1034  返回: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_function_flags