函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:create_or_delete_synth_event

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

返回类型:int

参数:

类型参数名称
intargc
char **argv
1362  name等于argv[0]
1363  struct synth_event * event = NULL
1367  如果name[0]恒等于'!'则
1368  mutex_lock( & event_mutex)
1369  event等于find_synth_event(name + 1)
1370  如果event
1371  如果refret等于负EBUSY
1373  否则
1375  如果非ret
1380  否则ret等于负ENOENT
1382  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
1383  返回:ret
1386  ret等于__create_synth_event(argc - 1, name, (constchar * * )argv + 1)
1387  返回:如果ret恒等于负ECANCELED则负EINVAL否则ret