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

Name:__create_val_field

Proto: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)

Type:int

Parameter:

TypeParameterName
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  If IS_ERR(hist_field) Then
4493  ret = PTR_ERR(hist_field)
4494  Go to out
4497  fields[val_idx] = hist_field
4499  ++n_vals
4500  ++n_fields
4502  If WARN_ON(n_vals > TRACING_MAP_VALS_MAX + TRACING_MAP_VARS_MAX) Then ret = -EINVAL
4504  out :
4505  Return ret
Caller
NameDescribe
create_val_field
create_var_field