函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dyn_event_release

函数原型:int dyn_event_release(int argc, char **argv, struct dyn_event_operations *type)

返回类型:int

参数:

类型参数名称
intargc
char **argv
struct dyn_event_operations *type
37  system等于NULL
38  ret等于负ENOENT
40  如果argv[0][0]恒等于'-'则
41  如果argv[0][1]不等于':'则返回:负EINVAL
43  event等于argv[0][2]
44  否则
45  event等于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
46  如果非event则返回:负EINVAL
48  event自加
50  argc自减
50  argv自加
52  p等于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
53  如果p
54  system等于event
55  event等于p加1
56  p等于'\0'
58  如果event[0]恒等于'\0'则返回:负EINVAL
61  mutex_lock( & event_mutex)
62  r_each_dyn_event - iterate over the dyn_event list safely*@pos: the struct dyn_event * to use as a loop cursor*@n: the struct dyn_event * to use as temporary storage(pos, n)
63  如果typetype不等于ops则继续下一循环
65  如果非match(system, event, argc, (constchar * * )argv, pos)则继续下一循环
69  ret等于free(pos)
70  如果ret退出
73  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.
75  返回:ret
调用者
名称描述
create_dyn_event
create_or_delete_trace_uprobe
create_or_delete_trace_kprobe