Lines Matching refs:var_name
1104 const char *var_name) in find_var_field() argument
1112 strcmp(hist_field->var.name, var_name) == 0) { in find_var_field()
1123 const char *var_name) in find_var() argument
1131 hist_field = find_var_field(hist_data, var_name); in find_var()
1138 hist_field = find_var_field(test_data, var_name); in find_var()
1150 char *var_name) in find_var_file() argument
1165 if (find_var_field(var_hist_data, var_name)) { in find_var_file()
1167 hist_err(tr, HIST_ERR_VAR_NOT_UNIQUE, errpos(var_name)); in find_var_file()
1179 const char *var_name) in find_file_var() argument
1190 hist_field = find_var_field(test_data, var_name); in find_file_var()
1200 find_match_var(struct hist_trigger_data *hist_data, char *var_name) in find_match_var() argument
1214 file = find_var_file(tr, system, event_name, var_name); in find_match_var()
1217 hist_field = find_file_var(file, var_name); in find_match_var()
1221 errpos(var_name)); in find_match_var()
1235 char *var_name) in find_event_var() argument
1242 hist_field = find_match_var(hist_data, var_name); in find_event_var()
1249 file = find_var_file(tr, system, event_name, var_name); in find_event_var()
1253 hist_field = find_file_var(file, var_name); in find_event_var()
1939 char *var_name) in create_hist_field() argument
2058 if (var_name) { in create_hist_field()
2059 hist_field->var.name = kstrdup(var_name, GFP_KERNEL); in create_hist_field()
2212 static bool is_var_ref(char *var_name) in is_var_ref() argument
2214 if (!var_name || strlen(var_name) < 2 || var_name[0] != '$') in is_var_ref()
2221 char *var_name) in field_name_from_var() argument
2229 if (strcmp(var_name, name) == 0) { in field_name_from_var()
2242 char *var_name) in local_field_var_ref() argument
2259 if (!is_var_ref(var_name)) in local_field_var_ref()
2262 var_name++; in local_field_var_ref()
2264 return field_name_from_var(hist_data, var_name); in local_field_var_ref()
2269 char *var_name) in parse_var_ref() argument
2274 if (!is_var_ref(var_name)) in parse_var_ref()
2277 var_name++; in parse_var_ref()
2279 var_field = find_event_var(hist_data, system, event_name, var_name); in parse_var_ref()
2285 hist_err(tr, HIST_ERR_VAR_NOT_FOUND, errpos(var_name)); in parse_var_ref()
2396 char *var_name) in create_alias() argument
2401 alias = create_hist_field(hist_data, NULL, flags, var_name); in create_alias()
2419 char *str, char *var_name, in parse_const() argument
2432 field = create_hist_field(hist_data, NULL, *flags, var_name); in parse_const()
2443 unsigned long *flags, char *var_name) in parse_atom() argument
2452 hist_field = parse_const(hist_data, str, var_name, flags); in parse_atom()
2483 if (var_name) { in parse_atom()
2484 hist_field = create_alias(hist_data, hist_field, var_name); in parse_atom()
2501 hist_field = create_hist_field(hist_data, field, *flags, var_name); in parse_atom()
2516 char *var_name, unsigned int *n_subexprs);
2521 char *var_name, unsigned int *n_subexprs) in parse_unary() argument
2566 expr = create_hist_field(hist_data, NULL, flags, var_name); in parse_unary()
2653 char *var_name, unsigned int *n_subexprs) in parse_expr() argument
2671 return parse_atom(hist_data, file, str, &flags, var_name); in parse_expr()
2674 return parse_unary(hist_data, file, str, flags, var_name, n_subexprs); in parse_expr()
2753 expr = create_hist_field(hist_data, NULL, flags, var_name); in parse_expr()
3089 char *subsys_name, char *event_name, char *var_name) in find_target_event_var() argument
3109 hist_field = find_var_field(hist_data, var_name); in find_target_event_var()
3295 char *subsys_name, char *event_name, char *var_name) in create_target_field_var() argument
3314 return create_field_var(target_hist_data, file, var_name); in create_target_field_var()
4223 char *var_name, char *field_str, in __create_val_field() argument
4229 hist_field = parse_expr(hist_data, file, field_str, flags, var_name, &n_subexprs); in __create_val_field()
4396 char *var_name, char *expr_str) in create_var_field() argument
4405 if (find_var(hist_data, file, var_name) && !hist_data->remove) { in create_var_field()
4406 hist_err(tr, HIST_ERR_DUPLICATE_VAR, errpos(var_name)); in create_var_field()
4415 ret = __create_val_field(hist_data, val_idx, file, var_name, expr_str, flags); in create_var_field()
4572 char *var_name = hist_data->attrs->var_defs.name[i]; in create_var_fields() local
4575 ret = create_var_field(hist_data, j++, file, var_name, expr); in create_var_fields()
4598 char *s, *str, *var_name, *field_str; in parse_var_defs() local
4609 var_name = strsep(&field_str, "="); in parse_var_defs()
4610 if (!var_name || !field_str) { in parse_var_defs()
4612 errpos(var_name)); in parse_var_defs()
4618 hist_err(tr, HIST_ERR_TOO_MANY_VARS, errpos(var_name)); in parse_var_defs()
4623 s = kstrdup(var_name, GFP_KERNEL); in parse_var_defs()