函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__trace_probe_log_err

函数原型:void __trace_probe_log_err(int offset, int err_type)

返回类型:void

参数:

类型参数名称
intoffset
interr_type
166  len等于0, pos等于0
168  如果非argv则返回
172 i小于argc循环
173  如果i恒等于indexpos等于len
175  len加等于strlen - Find the length of a string*@s: The string to be sized加1
177  command等于分配内存并置零
178  如果非command则返回
181  如果index大于等于argc
187  pos等于len
188  offset等于0
192  p等于command
193 i小于argc循环
194  len等于strlen - Find the length of a string*@s: The string to be sized
195  strcpy(p, argv[i])
196  p[len]等于' '
197  p加等于len加1
199  *p减1的差等于'\0'
201  racing_log_err - write an error to the tracing error log*@tr: The associated trace array for the error (NULL for top level array)*@loc: A string describing where the error occurred*@cmd: The tracing command that caused the error*@errs: The array of
204  kfree(command)