Lines Matching refs:var_name

1048 					 const char *var_name)  in find_var_field()  argument
1056 strcmp(hist_field->var.name, var_name) == 0) { in find_var_field()
1067 const char *var_name) in find_var() argument
1075 hist_field = find_var_field(hist_data, var_name); in find_var()
1082 hist_field = find_var_field(test_data, var_name); in find_var()
1094 char *var_name) in find_var_file() argument
1109 if (find_var_field(var_hist_data, var_name)) { in find_var_file()
1111 hist_err(tr, HIST_ERR_VAR_NOT_UNIQUE, errpos(var_name)); in find_var_file()
1123 const char *var_name) in find_file_var() argument
1134 hist_field = find_var_field(test_data, var_name); in find_file_var()
1144 find_match_var(struct hist_trigger_data *hist_data, char *var_name) in find_match_var() argument
1158 file = find_var_file(tr, system, event_name, var_name); in find_match_var()
1161 hist_field = find_file_var(file, var_name); in find_match_var()
1165 errpos(var_name)); in find_match_var()
1179 char *var_name) in find_event_var() argument
1186 hist_field = find_match_var(hist_data, var_name); in find_event_var()
1193 file = find_var_file(tr, system, event_name, var_name); in find_event_var()
1197 hist_field = find_file_var(file, var_name); in find_event_var()
1873 char *var_name) in create_hist_field() argument
1981 if (var_name) { in create_hist_field()
1982 hist_field->var.name = kstrdup(var_name, GFP_KERNEL); in create_hist_field()
2130 static bool is_var_ref(char *var_name) in is_var_ref() argument
2132 if (!var_name || strlen(var_name) < 2 || var_name[0] != '$') in is_var_ref()
2139 char *var_name) in field_name_from_var() argument
2147 if (strcmp(var_name, name) == 0) { in field_name_from_var()
2160 char *var_name) in local_field_var_ref() argument
2177 if (!is_var_ref(var_name)) in local_field_var_ref()
2180 var_name++; in local_field_var_ref()
2182 return field_name_from_var(hist_data, var_name); in local_field_var_ref()
2187 char *var_name) in parse_var_ref() argument
2192 if (!is_var_ref(var_name)) in parse_var_ref()
2195 var_name++; in parse_var_ref()
2197 var_field = find_event_var(hist_data, system, event_name, var_name); in parse_var_ref()
2203 hist_err(tr, HIST_ERR_VAR_NOT_FOUND, errpos(var_name)); in parse_var_ref()
2296 char *var_name) in create_alias() argument
2301 alias = create_hist_field(hist_data, NULL, flags, var_name); in create_alias()
2319 char *str, char *var_name, in parse_const() argument
2332 field = create_hist_field(hist_data, NULL, *flags, var_name); in parse_const()
2343 unsigned long *flags, char *var_name) in parse_atom() argument
2352 hist_field = parse_const(hist_data, str, var_name, flags); in parse_atom()
2383 if (var_name) { in parse_atom()
2384 hist_field = create_alias(hist_data, hist_field, var_name); in parse_atom()
2401 hist_field = create_hist_field(hist_data, field, *flags, var_name); in parse_atom()
2416 char *var_name, unsigned int *n_subexprs);
2421 char *var_name, unsigned int *n_subexprs) in parse_unary() argument
2466 expr = create_hist_field(hist_data, NULL, flags, var_name); in parse_unary()
2551 char *var_name, unsigned int *n_subexprs) in parse_expr() argument
2569 return parse_atom(hist_data, file, str, &flags, var_name); in parse_expr()
2572 return parse_unary(hist_data, file, str, flags, var_name, n_subexprs); in parse_expr()
2651 expr = create_hist_field(hist_data, NULL, flags, var_name); in parse_expr()
2984 char *subsys_name, char *event_name, char *var_name) in find_target_event_var() argument
3004 hist_field = find_var_field(hist_data, var_name); in find_target_event_var()
3174 char *subsys_name, char *event_name, char *var_name) in create_target_field_var() argument
3193 return create_field_var(target_hist_data, file, var_name); in create_target_field_var()
4091 char *var_name, char *field_str, in __create_val_field() argument
4097 hist_field = parse_expr(hist_data, file, field_str, flags, var_name, &n_subexprs); in __create_val_field()
4163 char *var_name, char *expr_str) in create_var_field() argument
4172 if (find_var(hist_data, file, var_name) && !hist_data->remove) { in create_var_field()
4173 hist_err(tr, HIST_ERR_DUPLICATE_VAR, errpos(var_name)); in create_var_field()
4182 ret = __create_val_field(hist_data, val_idx, file, var_name, expr_str, flags); in create_var_field()
4330 char *var_name = hist_data->attrs->var_defs.name[i]; in create_var_fields() local
4333 ret = create_var_field(hist_data, j++, file, var_name, expr); in create_var_fields()
4356 char *s, *str, *var_name, *field_str; in parse_var_defs() local
4367 var_name = strsep(&field_str, "="); in parse_var_defs()
4368 if (!var_name || !field_str) { in parse_var_defs()
4370 errpos(var_name)); in parse_var_defs()
4376 hist_err(tr, HIST_ERR_TOO_MANY_VARS, errpos(var_name)); in parse_var_defs()
4381 s = kstrdup(var_name, GFP_KERNEL); in parse_var_defs()