函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:synth_event_create

函数原型:static int synth_event_create(int argc, const char **argv)

返回类型:int

参数:

类型参数名称
intargc
const char **argv
1392  name等于argv[0]
1395  如果name[0]不等于's'或name[1]不等于':'则返回:负ECANCELED
1397  name加等于2
1400  如果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
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  如果len恒等于0则返回:负EINVAL
1404  name加等于len
1406  返回:__create_synth_event(argc - 1, name, argv + 1)