• Home
  • Raw
  • Download

Lines Matching refs:tr

805 static void hist_err(struct trace_array *tr, u8 err_type, u16 err_pos)  in hist_err()  argument
810 tracing_log_err(tr, last_cmd_loc, last_cmd, err_text, in hist_err()
871 struct trace_array *tr = hist_data->event_file->tr; in hist_field_timestamp() local
875 if (hist_data->attrs->ts_in_usecs && trace_clock_in_ns(tr)) in hist_field_timestamp()
962 struct trace_array *tr = hist_data->event_file->tr; in find_any_var_ref() local
966 list_for_each_entry(var_data, &tr->hist_vars, list) { in find_any_var_ref()
1011 struct trace_array *tr = hist_data->event_file->tr; in find_hist_vars() local
1014 list_for_each_entry(var_data, &tr->hist_vars, list) { in find_hist_vars()
1066 struct trace_array *tr = hist_data->event_file->tr; in save_hist_vars() local
1073 if (tracing_check_open_get_tr(tr)) in save_hist_vars()
1078 trace_array_put(tr); in save_hist_vars()
1083 list_add(&var_data->list, &tr->hist_vars); in save_hist_vars()
1090 struct trace_array *tr = hist_data->event_file->tr; in remove_hist_vars() local
1104 trace_array_put(tr); in remove_hist_vars()
1151 static struct trace_event_file *find_var_file(struct trace_array *tr, in find_var_file() argument
1161 return find_event_file(tr, system, event_name); in find_var_file()
1163 list_for_each_entry(var_data, &tr->hist_vars, list) { in find_var_file()
1171 hist_err(tr, HIST_ERR_VAR_NOT_UNIQUE, errpos(var_name)); in find_var_file()
1206 struct trace_array *tr = hist_data->event_file->tr; in find_match_var() local
1218 file = find_var_file(tr, system, event_name, var_name); in find_match_var()
1224 hist_err(tr, HIST_ERR_VAR_NOT_UNIQUE, in find_match_var()
1241 struct trace_array *tr = hist_data->event_file->tr; in find_event_var() local
1253 file = find_var_file(tr, system, event_name, var_name); in find_event_var()
1456 static int parse_assignment(struct trace_array *tr, in parse_assignment() argument
1509 hist_err(tr, HIST_ERR_TOO_MANY_VARS, errpos(str)); in parse_assignment()
1527 parse_hist_trigger_attrs(struct trace_array *tr, char *trigger_str) in parse_hist_trigger_attrs() argument
1544 hist_err(tr, HIST_ERR_EMPTY_ASSIGNMENT, errpos(str)); in parse_hist_trigger_attrs()
1547 ret = parse_assignment(tr, str, attrs); in parse_hist_trigger_attrs()
2260 struct trace_array *tr = hist_data->event_file->tr; in parse_var_ref() local
2273 hist_err(tr, HIST_ERR_VAR_NOT_FOUND, errpos(var_name)); in parse_var_ref()
2284 struct trace_array *tr = file->tr; in parse_field() local
2335 hist_err(tr, HIST_ERR_BAD_FIELD_MODIFIER, errpos(modifier)); in parse_field()
2359 hist_err(tr, HIST_ERR_FIELD_NOT_FOUND, in parse_field()
2400 struct trace_array *tr = hist_data->event_file->tr; in parse_const() local
2405 hist_err(tr, HIST_ERR_EXPECT_NUMBER, errpos(str)); in parse_const()
2512 hist_err(file->tr, HIST_ERR_TOO_MANY_SUBEXPR, errpos(str)); in parse_unary()
2531 hist_err(file->tr, HIST_ERR_UNARY_MINUS_SUBEXPR, in parse_unary()
2558 hist_err(file->tr, HIST_ERR_INVALID_STR_OPERAND, errpos(str)); in parse_unary()
2588 static int check_expr_operands(struct trace_array *tr, in check_expr_operands() argument
2621 hist_err(tr, HIST_ERR_TIMESTAMP_MISMATCH, 0); in check_expr_operands()
2642 hist_err(file->tr, HIST_ERR_TOO_MANY_SUBEXPR, errpos(str)); in parse_expr()
2677 hist_err(file->tr, HIST_ERR_INVALID_STR_OPERAND, errpos(operand1_str)); in parse_expr()
2690 hist_err(file->tr, HIST_ERR_INVALID_STR_OPERAND, errpos(str)); in parse_expr()
2713 ret = check_expr_operands(file->tr, operand1, operand2, &var1, &var2); in parse_expr()
2749 hist_err(file->tr, HIST_ERR_DIVISION_BY_ZERO, errpos(str)); in parse_expr()
2887 static struct trace_event_file *event_file(struct trace_array *tr, in event_file() argument
2892 file = __find_event_file(tr, system, event_name); in event_file()
2949 struct trace_array *tr = target_hist_data->event_file->tr; in create_field_var_hist() local
2961 hist_err(tr, HIST_ERR_TOO_MANY_FIELD_VARS, errpos(field_name)); in create_field_var_hist()
2965 file = event_file(tr, subsys_name, event_name); in create_field_var_hist()
2968 hist_err(tr, HIST_ERR_EVENT_FILE_NOT_FOUND, errpos(field_name)); in create_field_var_hist()
2981 hist_err(tr, HIST_ERR_HIST_NOT_FOUND, errpos(field_name)); in create_field_var_hist()
3042 hist_err(tr, HIST_ERR_HIST_CREATE_FAIL, errpos(field_name)); in create_field_var_hist()
3054 hist_err(tr, HIST_ERR_SYNTH_VAR_NOT_FOUND, errpos(field_name)); in create_field_var_hist()
3193 struct trace_array *tr = file->tr; in create_field_var() local
3198 hist_err(tr, HIST_ERR_TOO_MANY_FIELD_VARS, errpos(field_name)); in create_field_var()
3205 hist_err(tr, HIST_ERR_FIELD_VAR_PARSE_FAIL, errpos(field_name)); in create_field_var()
3212 hist_err(tr, HIST_ERR_VAR_CREATE_FIND_FAIL, errpos(field_name)); in create_field_var()
3341 static bool cond_snapshot_update(struct trace_array *tr, void *cond_data) in cond_snapshot_update() argument
3344 struct track_data *track_data = tr->cond_snapshot->cond_data; in cond_snapshot_update()
3387 tracing_snapshot_cond(file->tr, &context); in save_track_data_snapshot()
3419 track_data = tracing_cond_snapshot_data(file->tr); in track_data_snapshot_print()
3440 static bool cond_snapshot_update(struct trace_array *tr, void *cond_data) in cond_snapshot_update() argument
3531 track_data = tracing_cond_snapshot_data(file->tr); in track_data_destroy()
3533 tracing_snapshot_cond_disable(file->tr); in track_data_destroy()
3551 struct trace_array *tr = file->tr; in track_data_create() local
3557 hist_err(tr, HIST_ERR_ONX_NOT_VAR, errpos(track_data_var_str)); in track_data_create()
3564 hist_err(tr, HIST_ERR_ONX_VAR_NOT_FOUND, errpos(track_data_var_str)); in track_data_create()
3577 hist_err(tr, HIST_ERR_ONX_VAR_CREATE_FAIL, 0); in track_data_create()
3585 hist_err(tr, HIST_ERR_ONX_VAR_CREATE_FAIL, 0); in track_data_create()
3596 static int parse_action_params(struct trace_array *tr, char *params, in parse_action_params() argument
3605 hist_err(tr, HIST_ERR_TOO_MANY_PARAMS, 0); in parse_action_params()
3612 hist_err(tr, HIST_ERR_PARAM_NOT_FOUND, 0); in parse_action_params()
3619 hist_err(tr, HIST_ERR_INVALID_PARAM, errpos(param)); in parse_action_params()
3643 static int action_parse(struct trace_array *tr, char *str, struct action_data *data, in action_parse() argument
3651 hist_err(tr, HIST_ERR_ACTION_NOT_FOUND, 0); in action_parse()
3658 hist_err(tr, HIST_ERR_ACTION_NOT_FOUND, 0); in action_parse()
3667 hist_err(tr, HIST_ERR_NO_SAVE_PARAMS, 0); in action_parse()
3672 ret = parse_action_params(tr, params, data); in action_parse()
3681 hist_err(tr, HIST_ERR_ACTION_MISMATCH, errpos(action_name)); in action_parse()
3693 hist_err(tr, HIST_ERR_NO_CLOSING_PAREN, errpos(params)); in action_parse()
3703 hist_err(tr, HIST_ERR_ACTION_MISMATCH, errpos(action_name)); in action_parse()
3718 ret = parse_action_params(tr, params, data); in action_parse()
3771 ret = action_parse(hist_data->event_file->tr, str, data, handler); in track_data_parse()
3859 struct trace_array *tr = hist_data->event_file->tr; in trace_action_find_var() local
3875 hist_err(tr, HIST_ERR_PARAM_NOT_FOUND, errpos(var)); in trace_action_find_var()
3935 struct trace_array *tr = hist_data->event_file->tr; in trace_action_create() local
3957 hist_err(tr, HIST_ERR_SYNTH_EVENT_NOT_FOUND, errpos(synth_event_name)); in trace_action_create()
4025 hist_err(tr, HIST_ERR_SYNTH_TYPE_MISMATCH, errpos(param)); in trace_action_create()
4032 hist_err(tr, HIST_ERR_SYNTH_COUNT_MISMATCH, errpos(event->name)); in trace_action_create()
4050 struct trace_array *tr = file->tr; in action_create() local
4067 ret = tracing_snapshot_cond_enable(file->tr, track_data, in action_create()
4078 hist_err(tr, HIST_ERR_TOO_MANY_SAVE_ACTIONS, 0); in action_create()
4091 hist_err(tr, HIST_ERR_FIELD_VAR_CREATE_FAIL, in action_create()
4114 static struct action_data *onmatch_parse(struct trace_array *tr, char *str) in onmatch_parse() argument
4126 hist_err(tr, HIST_ERR_NO_CLOSING_PAREN, errpos(match_event)); in onmatch_parse()
4132 hist_err(tr, HIST_ERR_SUBSYS_NOT_FOUND, errpos(match_event_system)); in onmatch_parse()
4136 if (IS_ERR(event_file(tr, match_event_system, match_event))) { in onmatch_parse()
4137 hist_err(tr, HIST_ERR_INVALID_SUBSYS_EVENT, errpos(match_event)); in onmatch_parse()
4153 ret = action_parse(tr, str, data, HANDLER_ONMATCH); in onmatch_parse()
4220 hist_err(file->tr, HIST_ERR_BAD_FIELD_MODIFIER, errpos(field_str)); in __create_val_field()
4343 struct trace_array *tr = hist_data->event_file->tr; in create_var_field() local
4351 hist_err(tr, HIST_ERR_DUPLICATE_VAR, errpos(var_name)); in create_var_field()
4412 struct trace_array *tr = hist_data->event_file->tr; in create_key_field() local
4436 hist_err(tr, HIST_ERR_INVALID_REF_KEY, errpos(field_str)); in create_key_field()
4533 struct trace_array *tr = hist_data->event_file->tr; in parse_var_defs() local
4547 hist_err(tr, HIST_ERR_MALFORMED_ASSIGNMENT, in parse_var_defs()
4554 hist_err(tr, HIST_ERR_TOO_MANY_VARS, errpos(var_name)); in parse_var_defs()
4611 static int is_descending(struct trace_array *tr, const char *str) in is_descending() argument
4622 hist_err(tr, HIST_ERR_INVALID_SORT_MODIFIER, errpos((char *)str)); in is_descending()
4629 struct trace_array *tr = hist_data->event_file->tr; in create_sort_keys() local
4653 hist_err(tr, HIST_ERR_EMPTY_SORT_FIELD, errpos("sort=")); in create_sort_keys()
4658 hist_err(tr, HIST_ERR_TOO_MANY_SORT_FIELDS, errpos("sort=")); in create_sort_keys()
4666 hist_err(tr, HIST_ERR_EMPTY_SORT_FIELD, errpos("sort=")); in create_sort_keys()
4671 descending = is_descending(tr, field_str); in create_sort_keys()
4693 descending = is_descending(tr, field_str); in create_sort_keys()
4704 hist_err(tr, HIST_ERR_INVALID_SORT_FIELD, errpos(field_name)); in create_sort_keys()
4733 struct trace_array *tr = hist_data->event_file->tr; in parse_actions() local
4746 data = onmatch_parse(tr, action_str); in parse_actions()
6219 struct trace_array *tr = file->tr; in hist_register_trigger() local
6227 hist_err(tr, HIST_ERR_NAMED_MISMATCH, errpos(hist_data->attrs->name)); in hist_register_trigger()
6242 hist_err(tr, HIST_ERR_TRIGGER_EEXIST, 0); in hist_register_trigger()
6250 hist_err(tr, HIST_ERR_TRIGGER_ENOENT_CLEAR, 0); in hist_register_trigger()
6273 ret = tracing_set_clock(file->tr, hist_data->attrs->clock); in hist_register_trigger()
6275 hist_err(tr, HIST_ERR_SET_CLOCK_FAIL, errpos(clock)); in hist_register_trigger()
6279 tracing_set_filter_buffering(file->tr, true); in hist_register_trigger()
6384 tracing_set_filter_buffering(file->tr, false); in hist_unregister_trigger()
6431 tracing_set_filter_buffering(file->tr, false); in hist_unreg_all()
6510 attrs = parse_hist_trigger_attrs(file->tr, param); in event_hist_trigger_parse()