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:32:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:parse_var_defs

Proto:static int parse_var_defs(struct hist_trigger_data *hist_data)

Type:int

Parameter:

TypeParameterName
struct hist_trigger_data *hist_data
4705  tr = tr
4707  n_vars = 0
4708  ret = 0
4710  When i < n_assignments cycle
4711  str = assignment_str[i]
4712  When j < TRACING_MAP_VARS_MAX cycle
4714  If Not field_str Then Break
4718  If Not var_name || Not field_str Then
4725  If n_vars == TRACING_MAP_VARS_MAX Then
4727  ret = -EINVAL
4728  Go to free
4732  If Not s Then
4733  ret = -ENOMEM
4734  Go to free
4736  name[n_vars] = s
4739  If Not s Then
4740  kfree(name[n_vars])
4741  ret = -ENOMEM
4742  Go to free
4744  expr[n_vars++] = s
4746  n_vars = n_vars
4750  Return ret
4751  free :
4752  free_var_defs(hist_data)
4754  Return ret
Caller
NameDescribe
create_hist_fields