Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:parse_action_params

Proto:static int parse_action_params(struct trace_array *tr, char *params, struct action_data *data)

Type:int

Parameter:

TypeParameterName
struct trace_array *tr
char *params
struct action_data *data
3928  bool first_param = true
3929  ret = 0
3931  When params cycle
3932  If n_params >= SYNTH_FIELDS_MAX Then
3934  Go to out
3937  param = 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
3938  If Not param Then
3940  ret = -EINVAL
3941  Go to out
3944  param = strstrip(param)
3947  ret = -EINVAL
3948  Go to out
3951  saved_param = kstrdup(param, GFP_KERNEL)
3952  If Not saved_param Then
3953  ret = -ENOMEM
3954  Go to out
3957  If first_param && use_trace_keyword Then
3959  first_param = false
3960  Continue
3962  first_param = false
3964  params[n_params++] = saved_param
3966  out :
3967  Return ret
Caller
NameDescribe
action_parse