Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:synth_event_create

Proto:static int synth_event_create(int argc, const char **argv)

Type:int

Parameter:

TypeParameterName
intargc
const char **argv
1392  name = argv[0]
1395  If name[0] != 's' || name[1] != ':' Then Return -ECANCELED
1397  name += 2
1400  If strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for Then
1401  len = str_has_prefix - Test if a string has a given prefix*@str: The string to test*@prefix: The string to see if @str starts with* A common way to test a prefix of a string is to do:* strncmp(str, prefix, sizeof(prefix) - 1)* But this can lead to bugs due to
1402  If len == 0 Then Return -EINVAL
1404  name += len
1406  Return __create_synth_event(argc - 1, name, argv + 1)