函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__create_val_field

函数原型:static int __create_val_field(struct hist_trigger_data *hist_data, unsigned int val_idx, struct trace_event_file *file, char *var_name, char *field_str, unsigned long flags)

返回类型:int

参数:

类型参数名称
struct hist_trigger_data *hist_data
unsigned intval_idx
struct trace_event_file *file
char *var_name
char *field_str
unsigned longflags
4489  ret等于0
4491  hist_field等于parse_expr(hist_data, file, field_str, flags, var_name, 0)
4492  如果是错误
4493  ret等于错误
4494  转到:out
4497  fields[val_idx]等于hist_field
4499  n_vals先自加
4500  n_fields先自加
4502  如果WARN_ON(n_vals > TRACING_MAP_VALS_MAX + TRACING_MAP_VARS_MAX)则ret等于负EINVAL
4504  out :
4505  返回:ret
调用者
名称描述
create_val_field
create_var_field