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

Name:trace_print_graph_duration

Proto:void trace_print_graph_duration(unsigned long long duration, struct trace_seq *s)

Type:void

Parameter:

TypeParameterName
unsigned long longduration
struct trace_seq *s
563  nsecs_rem = do_div() is NOT a C function(duration, 1000)
570  sprintf(usecs_str, "%lu", (unsignedlong)duration)
573  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
575  len = strlen - Find the length of a string*@s: The string to be sized
578  If len < 7 Then
579  slen = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(size_t, size of nsecs_str , 8UL - len)
581  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
582  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
583  len += strlen - Find the length of a string*@s: The string to be sized + 1
586  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
589  When i < 8 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
Caller
NameDescribe
print_graph_duration