Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:trace_uprobe_match_command_head

Proto:static bool trace_uprobe_match_command_head(struct trace_uprobe *tu, int argc, const char **argv)

Type:bool

Parameter:

TypeParameterName
struct trace_uprobe *tu
intargc
const char **argv
290  If Not argc Then Return true
293  len = strlen - Find the length of a string*@s: The string to be sized
294  If strncmp(filename, argv[0], len) || argv[0][len] != ':' Then Return false
297  If ref_ctr_offset == 0 Then 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*@
300  Else 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*@
304  If strcmp(buf, & argv[0][len + 1]) Then Return false
307  argc--
307  argv++
309  Return trace_probe_match_command_args( & tp, argc, argv)
Caller
NameDescribe
trace_uprobe_match