Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:trigger_process_regex

Proto:static int trigger_process_regex(struct trace_event_file *file, char *buff)

Type:int

Parameter:

TypeParameterName
struct trace_event_file *file
char *buff
219  next = buff
221  ret = -EINVAL
223  command = strsep - Split a string into tokens*@s: The string to be searched*@ct: The characters to search for* strsep() updates @s to point after the token, ready for the next call.* It returns empty tokens, too, behaving exactly like the libc function
224  command = If command[0] != '!' Then command Else command + 1
226  mutex_lock( & trigger_cmd_mutex)
228  If strcmp(name, command) == 0 Then
229  ret = func(p, file, buff, command, next)
230  Go to out_unlock
233  out_unlock :
234  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.
236  Return ret
Caller
NameDescribe
event_trigger_regex_write