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:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:print_graph_comment

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

Type:enum print_line_t

Parameter:

TypeParameterName
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  If data Then depth = ({
982  cpu
982  ({
982  Do
982  const void * __vpp_verify = NULL
982  When 0 cycle
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  If depth > 0 Then When i < (depth + 1) * TRACE_GRAPH_INDENT cycle
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  Case type == TRACE_BPUTS
999  ret = trace_print_bputs_msg_only(iter)
1000  If ret != TRACE_TYPE_HANDLED Then Return ret
1002  Break
1003  Case type == TRACE_BPRINT
1004  ret = trace_print_bprintk_msg_only(iter)
1005  If ret != TRACE_TYPE_HANDLED Then Return ret
1007  Break
1008  Case type == TRACE_PRINT
1009  ret = trace_print_printk_msg_only(iter)
1010  If ret != TRACE_TYPE_HANDLED Then Return ret
1012  Break
1013  Default
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  If Not event Then Return Relay to other output functions
1018  ret = trace(iter, sym_flags, event)
1019  If ret != TRACE_TYPE_HANDLED Then Return ret
1023  If race_seq_has_overflowed - return true if the trace_seq took too much*@s: trace sequence descriptor* Returns true if too much data was added to the trace_seq and it is* now full and will not take anymore. Then Go to out
1027  If buffer[len - 1] == '\n' Then
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  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