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

Name:create_var_field

Proto:static int create_var_field(struct hist_trigger_data *hist_data, unsigned int val_idx, struct trace_event_file *file, char *var_name, char *expr_str)

Type:int

Parameter:

TypeParameterName
struct hist_trigger_data *hist_data
unsigned intval_idx
struct trace_event_file *file
char *var_name
char *expr_str
4524  tr = tr
4525  flags = 0
4527  If WARN_ON(val_idx >= TRACING_MAP_VALS_MAX + TRACING_MAP_VARS_MAX) Then Return -EINVAL
4530  If find_var(hist_data, file, var_name) && Not remove Then
4531  hist_err(tr, HIST_ERR_DUPLICATE_VAR, errpos(var_name))
4532  Return -EINVAL
4535  flags |= HIST_FIELD_FL_VAR
4536  n_vars++
4537  If WARN_ON(n_vars > TRACING_MAP_VARS_MAX) Then Return -EINVAL
4540  Return __create_val_field(hist_data, val_idx, file, var_name, expr_str, flags)
Caller
NameDescribe
create_var_fields