Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dyn_event_release

Proto:int dyn_event_release(int argc, char **argv, struct dyn_event_operations *type)

Type:int

Parameter:

TypeParameterName
intargc
char **argv
struct dyn_event_operations *type
37  system = NULL
38  ret = -ENOENT
40  If argv[0][0] == '-' Then
41  If argv[0][1] != ':' Then Return -EINVAL
43  event = argv[0][2]
44  Else
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  If Not event Then Return -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  If p Then
54  system = event
55  event = p + 1
56  p = '\0'
58  If event[0] == '\0' Then Return -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  If type && type != ops Then Continue
65  If Not match(system, event, argc, (constchar * * )argv, pos) Then Continue
69  ret = free(pos)
70  If ret Then Break
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  Return ret
Caller
NameDescribe
create_dyn_event
create_or_delete_trace_uprobe
create_or_delete_trace_kprobe