函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events_hist.c Create Date:2022-07-27 13:39:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:parse_atom

函数原型: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)

返回类型:struct hist_field

参数:

类型参数名称
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  如果s
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  如果s
2892  如果非str
2893  ret等于负EINVAL
2894  转到:out
2897  如果非str
2898  ret等于负EINVAL
2899  转到:out
2901  ref_var等于str
2905  s等于local_field_var_ref(hist_data, ref_system, ref_event, ref_var)
2906  如果非s
2907  hist_field等于parse_var_ref(hist_data, ref_system, ref_event, ref_var)
2909  如果hist_field
2910  如果var_name
2912  如果非hist_field
2913  ret等于负ENOMEM
2914  转到:out
2917  返回:hist_field
2919  否则str等于s
2922  field等于parse_field(hist_data, file, str, flags)
2923  如果是错误
2924  ret等于错误
2925  转到:out
2928  hist_field等于create_hist_field(hist_data, field, * flags, var_name)
2929  如果非hist_field
2930  ret等于负ENOMEM
2931  转到:out
2934  返回:hist_field
2935  out :
2936  返回:错误号
调用者
名称描述
parse_expr
create_field_var