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

Name:parse_atom

Proto:static struct hist_field *parse_atom(struct hist_trigger_data *hist_data, struct trace_event_file *file, char *str, unsigned long *flags, char *var_name)

Type:struct hist_field

Parameter:

TypeParameterName
struct hist_trigger_data *hist_data
struct trace_event_file *file
char *str
unsigned long *flags
char *var_name
2882  ref_system = NULL , ref_event = NULL , ref_var = str
2883  struct ftrace_event_field * field = NULL
2884  struct hist_field * hist_field = NULL
2885  ret = 0
2887  s = 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
2888  If s Then
2889  s = 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
2890  If s Then
2892  If Not str Then
2893  ret = -EINVAL
2894  Go to out
2897  If Not str Then
2898  ret = -EINVAL
2899  Go to out
2901  ref_var = str
2905  s = local_field_var_ref(hist_data, ref_system, ref_event, ref_var)
2906  If Not s Then
2907  hist_field = parse_var_ref(hist_data, ref_system, ref_event, ref_var)
2909  If hist_field Then
2910  If var_name Then
2912  If Not hist_field Then
2913  ret = -ENOMEM
2914  Go to out
2917  Return hist_field
2919  Else str = s
2922  field = parse_field(hist_data, file, str, flags)
2923  If IS_ERR(field) Then
2924  ret = PTR_ERR(field)
2925  Go to out
2928  hist_field = create_hist_field(hist_data, field, * flags, var_name)
2929  If Not hist_field Then
2930  ret = -ENOMEM
2931  Go to out
2934  Return hist_field
2935  out :
2936  Return ERR_PTR(ret)
Caller
NameDescribe
parse_expr
create_field_var