Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_probe.c Create Date:2022-07-28 12:42:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__trace_probe_log_err

Proto:void __trace_probe_log_err(int offset, int err_type)

Type:void

Parameter:

TypeParameterName
intoffset
interr_type
166  len = 0 , pos = 0
168  If Not argv Then Return
172  When i < argc cycle
173  If i == index Then pos = len
175  len += strlen - Find the length of a string*@s: The string to be sized + 1
177  command = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
178  If Not command Then Return
181  If index >= argc Then
187  pos = len
188  offset = 0
192  p = command
193  When i < argc cycle
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)