• Home
  • Raw
  • Download

Lines Matching refs:i

276 #define for_each_hist_field(i, hist_data)	\  argument
277 for ((i) = 0; (i) < (hist_data)->n_fields; (i)++)
279 #define for_each_hist_val_field(i, hist_data) \ argument
280 for ((i) = 0; (i) < (hist_data)->n_vals; (i)++)
282 #define for_each_hist_key_field(i, hist_data) \ argument
283 for ((i) = (hist_data)->n_vals; (i) < (hist_data)->n_fields; (i)++)
694 unsigned int i; in find_var_ref() local
696 for (i = 0; i < hist_data->n_var_refs; i++) { in find_var_ref()
697 hist_field = hist_data->var_refs[i]; in find_var_ref()
754 int i; in check_var_refs() local
756 for_each_hist_field(i, hist_data) { in check_var_refs()
757 field = hist_data->fields[i]; in check_var_refs()
787 int i; in field_has_hist_vars() local
799 for (i = 0; i < HIST_FIELD_OPERANDS_MAX; i++) { in field_has_hist_vars()
802 operand = hist_field->operands[i]; in field_has_hist_vars()
813 int i; in has_hist_vars() local
815 for_each_hist_field(i, hist_data) { in has_hist_vars()
816 hist_field = hist_data->fields[i]; in has_hist_vars()
871 int i; in find_var_field() local
873 for_each_hist_field(i, hist_data) { in find_var_field()
874 hist_field = hist_data->fields[i]; in find_var_field()
969 unsigned int i; in find_match_var() local
971 for (i = 0; i < hist_data->n_actions; i++) { in find_match_var()
972 struct action_data *data = hist_data->actions[i]; in find_match_var()
1045 unsigned int i, var_idx; in resolve_var_refs() local
1049 for (i = 0; i < hist_data->n_var_refs; i++) { in resolve_var_refs()
1050 hist_field = hist_data->var_refs[i]; in resolve_var_refs()
1079 var_ref_vals[i] = var_val; in resolve_var_refs()
1180 unsigned int i; in destroy_hist_trigger_attrs() local
1185 for (i = 0; i < attrs->n_assignments; i++) in destroy_hist_trigger_attrs()
1186 kfree(attrs->assignment_str[i]); in destroy_hist_trigger_attrs()
1188 for (i = 0; i < attrs->n_actions; i++) in destroy_hist_trigger_attrs()
1189 kfree(attrs->action_str[i]); in destroy_hist_trigger_attrs()
1365 unsigned int i; in hist_elt_data_free() local
1367 for (i = 0; i < SYNTH_FIELDS_MAX; i++) in hist_elt_data_free()
1368 kfree(elt_data->field_var_str[i]); in hist_elt_data_free()
1387 unsigned int i, n_str; in hist_trigger_elt_data_alloc() local
1393 for_each_hist_key_field(i, hist_data) { in hist_trigger_elt_data_alloc()
1394 key_field = hist_data->fields[i]; in hist_trigger_elt_data_alloc()
1417 for (i = 0; i < n_str; i++) { in hist_trigger_elt_data_alloc()
1418 elt_data->field_var_str[i] = kzalloc(size, GFP_KERNEL); in hist_trigger_elt_data_alloc()
1419 if (!elt_data->field_var_str[i]) { in hist_trigger_elt_data_alloc()
1591 unsigned int i; in destroy_hist_field() local
1602 for (i = 0; i < HIST_FIELD_OPERANDS_MAX; i++) in destroy_hist_field()
1603 destroy_hist_field(hist_field->operands[i], level + 1); in destroy_hist_field()
1731 unsigned int i; in destroy_hist_fields() local
1733 for (i = 0; i < HIST_FIELDS_MAX; i++) { in destroy_hist_fields()
1734 if (hist_data->fields[i]) { in destroy_hist_fields()
1735 destroy_hist_field(hist_data->fields[i], 0); in destroy_hist_fields()
1736 hist_data->fields[i] = NULL; in destroy_hist_fields()
1740 for (i = 0; i < hist_data->n_var_refs; i++) { in destroy_hist_fields()
1741 WARN_ON(!(hist_data->var_refs[i]->flags & HIST_FIELD_FL_VAR_REF)); in destroy_hist_fields()
1742 __destroy_hist_field(hist_data->var_refs[i]); in destroy_hist_fields()
1743 hist_data->var_refs[i] = NULL; in destroy_hist_fields()
1810 int i; in find_var_ref_idx() local
1812 for (i = 0; i < hist_data->n_var_refs; i++) { in find_var_ref_idx()
1813 ref_field = hist_data->var_refs[i]; in find_var_ref_idx()
1816 return i; in find_var_ref_idx()
1843 int i; in create_var_ref() local
1846 for (i = 0; i < hist_data->n_var_refs; i++) { in create_var_ref()
1847 ref_field = hist_data->var_refs[i]; in create_var_ref()
1883 unsigned int i; in field_name_from_var() local
1885 for (i = 0; i < hist_data->attrs->var_defs.n_vars; i++) { in field_name_from_var()
1886 name = hist_data->attrs->var_defs.name[i]; in field_name_from_var()
1889 field = hist_data->attrs->var_defs.expr[i]; in field_name_from_var()
2366 unsigned int n, i, j; in compatible_keys() local
2371 i = hist_data->n_vals; in compatible_keys()
2375 hist_field = hist_data->fields[i + n]; in compatible_keys()
2478 unsigned int i, n, first = true; in create_field_var_hist() local
2530 for_each_hist_key_field(i, hist_data) { in create_field_var_hist()
2531 key_field = hist_data->fields[i]; in create_field_var_hist()
2626 unsigned int i, j, var_idx; in __update_field_vars() local
2629 for (i = 0, j = field_var_str_start; i < n_field_vars; i++) { in __update_field_vars()
2630 struct field_var *field_var = field_vars[i]; in __update_field_vars()
2917 unsigned int i; in snapshot_action() local
2922 for (i = 0; i < hist_data->n_actions; i++) { in snapshot_action()
2923 struct action_data *data = hist_data->actions[i]; in snapshot_action()
2979 unsigned int i, save_var_idx; in track_data_print() local
2989 for (i = 0; i < hist_data->n_save_vars; i++) { in track_data_print()
2990 struct hist_field *save_val = hist_data->save_vars[i]->val; in track_data_print()
2991 struct hist_field *save_var = hist_data->save_vars[i]->var; in track_data_print()
3021 unsigned int i; in action_data_destroy() local
3027 for (i = 0; i < data->n_params; i++) in action_data_destroy()
3028 kfree(data->params[i]); in action_data_destroy()
3320 unsigned int i; in destroy_field_vars() local
3322 for (i = 0; i < hist_data->n_field_vars; i++) in destroy_field_vars()
3323 destroy_field_var(hist_data->field_vars[i]); in destroy_field_vars()
3325 for (i = 0; i < hist_data->n_save_vars; i++) in destroy_field_vars()
3326 destroy_field_var(hist_data->save_vars[i]); in destroy_field_vars()
3452 unsigned int i; in trace_action_create() local
3477 for (i = 0; i < data->n_params; i++) { in trace_action_create()
3480 p = param = kstrdup(data->params[i], GFP_KERNEL); in trace_action_create()
3532 data->var_ref_idx[i] = var_ref_idx; in trace_action_create()
3567 unsigned int i; in action_create() local
3596 for (i = 0; i < data->n_params; i++) { in action_create()
3597 param = kstrdup(data->params[i], GFP_KERNEL); in action_create()
3765 unsigned int i, j = 1; in create_val_fields() local
3776 for (i = 0, j = 1; i < TRACING_MAP_VALS_MAX && in create_val_fields()
3777 j < TRACING_MAP_VALS_MAX; i++) { in create_val_fields()
3862 unsigned int i, key_offset = 0, n_vals = hist_data->n_vals; in create_key_fields() local
3870 for (i = n_vals; i < n_vals + TRACING_MAP_KEYS_MAX; i++) { in create_key_fields()
3874 ret = create_key_field(hist_data, i, key_offset, in create_key_fields()
3892 unsigned int i, j = hist_data->n_vals; in create_var_fields() local
3897 for (i = 0; i < n_vars; i++) { in create_var_fields()
3898 char *var_name = hist_data->attrs->var_defs.name[i]; in create_var_fields()
3899 char *expr = hist_data->attrs->var_defs.expr[i]; in create_var_fields()
3911 unsigned int i; in free_var_defs() local
3913 for (i = 0; i < hist_data->attrs->var_defs.n_vars; i++) { in free_var_defs()
3914 kfree(hist_data->attrs->var_defs.name[i]); in free_var_defs()
3915 kfree(hist_data->attrs->var_defs.expr[i]); in free_var_defs()
3925 unsigned int i, j, n_vars = 0; in parse_var_defs() local
3928 for (i = 0; i < hist_data->attrs->n_assignments; i++) { in parse_var_defs()
3929 str = hist_data->attrs->assignment_str[i]; in parse_var_defs()
4024 unsigned int i, j, k; in create_sort_keys() local
4031 for (i = 0; i < TRACING_MAP_SORT_KEYS_MAX; i++) { in create_sort_keys()
4036 sort_key = &hist_data->sort_keys[i]; in create_sort_keys()
4048 if ((i == TRACING_MAP_SORT_KEYS_MAX - 1) && fields_str) { in create_sort_keys()
4100 hist_data->n_sort_keys = i; in create_sort_keys()
4107 unsigned int i; in destroy_actions() local
4109 for (i = 0; i < hist_data->n_actions; i++) { in destroy_actions()
4110 struct action_data *data = hist_data->actions[i]; in destroy_actions()
4126 unsigned int i; in parse_actions() local
4131 for (i = 0; i < hist_data->attrs->n_actions; i++) { in parse_actions()
4132 str = hist_data->attrs->action_str[i]; in parse_actions()
4174 unsigned int i; in create_actions() local
4177 for (i = 0; i < hist_data->attrs->n_actions; i++) { in create_actions()
4178 data = hist_data->actions[i]; in create_actions()
4202 unsigned int i; in print_actions() local
4204 for (i = 0; i < hist_data->n_actions; i++) { in print_actions()
4205 struct action_data *data = hist_data->actions[i]; in print_actions()
4220 unsigned int i; in print_action_spec() local
4223 for (i = 0; i < hist_data->n_save_vars; i++) { in print_action_spec()
4224 seq_printf(m, "%s", hist_data->save_vars[i]->var->var.name); in print_action_spec()
4225 if (i < hist_data->n_save_vars - 1) in print_action_spec()
4231 for (i = 0; i < data->n_params; i++) { in print_action_spec()
4232 if (i || data->use_trace_keyword) in print_action_spec()
4234 seq_printf(m, "%s", data->params[i]); in print_action_spec()
4272 unsigned int i, j; in actions_match() local
4277 for (i = 0; i < hist_data->n_actions; i++) { in actions_match()
4278 struct action_data *data = hist_data->actions[i]; in actions_match()
4279 struct action_data *data_test = hist_data_test->actions[i]; in actions_match()
4330 unsigned int i; in print_actions_spec() local
4332 for (i = 0; i < hist_data->n_actions; i++) { in print_actions_spec()
4333 struct action_data *data = hist_data->actions[i]; in print_actions_spec()
4345 unsigned int i; in destroy_field_var_hists() local
4347 for (i = 0; i < hist_data->n_field_var_hists; i++) { in destroy_field_var_hists()
4348 kfree(hist_data->field_var_hists[i]->cmd); in destroy_field_var_hists()
4349 kfree(hist_data->field_var_hists[i]); in destroy_field_var_hists()
4374 int i, idx = 0; in create_tracing_map_fields() local
4376 for_each_hist_field(i, hist_data) { in create_tracing_map_fields()
4377 hist_field = hist_data->fields[i]; in create_tracing_map_fields()
4476 unsigned int i, var_idx; in hist_trigger_elt_update() local
4482 for_each_hist_val_field(i, hist_data) { in hist_trigger_elt_update()
4483 hist_field = hist_data->fields[i]; in hist_trigger_elt_update()
4509 tracing_map_update_sum(elt, i, hist_val); in hist_trigger_elt_update()
4512 for_each_hist_key_field(i, hist_data) { in hist_trigger_elt_update()
4513 hist_field = hist_data->fields[i]; in hist_trigger_elt_update()
4554 unsigned int i; in hist_trigger_actions() local
4556 for (i = 0; i < hist_data->n_actions; i++) { in hist_trigger_actions()
4557 data = hist_data->actions[i]; in hist_trigger_actions()
4574 unsigned int i; in event_hist_trigger() local
4578 for_each_hist_key_field(i, hist_data) { in event_hist_trigger()
4579 key_field = hist_data->fields[i]; in event_hist_trigger()
4622 unsigned int i; in hist_trigger_stacktrace_print() local
4624 for (i = 0; i < max_entries; i++) { in hist_trigger_stacktrace_print()
4625 if (!stacktrace_entries[i]) in hist_trigger_stacktrace_print()
4629 sprint_symbol(str, stacktrace_entries[i]); in hist_trigger_stacktrace_print()
4643 unsigned int i; in hist_trigger_print_key() local
4648 for_each_hist_key_field(i, hist_data) { in hist_trigger_print_key()
4649 key_field = hist_data->fields[i]; in hist_trigger_print_key()
4651 if (i > hist_data->n_vals) in hist_trigger_print_key()
4721 unsigned int i; in hist_trigger_entry_print() local
4728 for (i = 1; i < hist_data->n_vals; i++) { in hist_trigger_entry_print()
4729 field_name = hist_field_name(hist_data->fields[i], 0); in hist_trigger_entry_print()
4731 if (hist_data->fields[i]->flags & HIST_FIELD_FL_VAR || in hist_trigger_entry_print()
4732 hist_data->fields[i]->flags & HIST_FIELD_FL_EXPR) in hist_trigger_entry_print()
4735 if (hist_data->fields[i]->flags & HIST_FIELD_FL_HEX) { in hist_trigger_entry_print()
4737 tracing_map_read_sum(elt, i)); in hist_trigger_entry_print()
4740 tracing_map_read_sum(elt, i)); in hist_trigger_entry_print()
4754 int i, n_entries; in print_entries() local
4762 for (i = 0; i < n_entries; i++) in print_entries()
4764 sort_entries[i]->key, in print_entries()
4765 sort_entries[i]->elt); in print_entries()
4905 struct field_var *field_var, unsigned int i, in field_var_debug_show() argument
4912 seq_printf(m, "\n hist_data->%s[%d]:\n", vars_name, i); in field_var_debug_show()
4916 seq_printf(m, "\n %s[%d].var:\n", vars_name, i); in field_var_debug_show()
4925 seq_printf(m, "\n %s[%d].val:\n", vars_name, i); in field_var_debug_show()
4942 struct action_data *data, int i) in hist_action_debug_show() argument
4948 seq_printf(m, "\n hist_data->actions[%d].track_data.var_ref:\n", i); in hist_action_debug_show()
4954 seq_printf(m, "\n hist_data->actions[%d].track_data.track_var:\n", i); in hist_action_debug_show()
4963 i, data->match_data.event_system); in hist_action_debug_show()
4965 i, data->match_data.event); in hist_action_debug_show()
4974 int i, ret = 0; in hist_actions_debug_show() local
4979 for (i = 0; i < hist_data->n_actions; i++) { in hist_actions_debug_show()
4980 struct action_data *action = hist_data->actions[i]; in hist_actions_debug_show()
4982 ret = hist_action_debug_show(m, action, i); in hist_actions_debug_show()
4990 for (i = 0; i < hist_data->n_save_vars; i++) { in hist_actions_debug_show()
4991 ret = field_var_debug_show(m, hist_data->save_vars[i], i, true); in hist_actions_debug_show()
5003 int i, ret; in hist_trigger_debug_show() local
5027 for (i = 1; i < hist_data->n_vals; i++) { in hist_trigger_debug_show()
5028 seq_printf(m, "\n hist_data->fields[%d]:\n", i); in hist_trigger_debug_show()
5029 ret = hist_field_debug_show(m, hist_data->fields[i], 0); in hist_trigger_debug_show()
5036 for (i = hist_data->n_vals; i < hist_data->n_fields; i++) { in hist_trigger_debug_show()
5037 seq_printf(m, "\n hist_data->fields[%d]:\n", i); in hist_trigger_debug_show()
5038 ret = hist_field_debug_show(m, hist_data->fields[i], in hist_trigger_debug_show()
5047 for (i = 0; i < hist_data->n_var_refs; i++) { in hist_trigger_debug_show()
5048 seq_printf(m, "\n hist_data->var_refs[%d]:\n", i); in hist_trigger_debug_show()
5049 ret = hist_field_debug_show(m, hist_data->var_refs[i], in hist_trigger_debug_show()
5058 for (i = 0; i < hist_data->n_field_vars; i++) { in hist_trigger_debug_show()
5059 ret = field_var_debug_show(m, hist_data->field_vars[i], i, false); in hist_trigger_debug_show()
5148 unsigned int i; in event_hist_trigger_print() local
5157 for_each_hist_key_field(i, hist_data) { in event_hist_trigger_print()
5158 field = hist_data->fields[i]; in event_hist_trigger_print()
5160 if (i > hist_data->n_vals) in event_hist_trigger_print()
5171 for_each_hist_val_field(i, hist_data) { in event_hist_trigger_print()
5172 field = hist_data->fields[i]; in event_hist_trigger_print()
5178 if (i == HITCOUNT_IDX) in event_hist_trigger_print()
5191 for_each_hist_val_field(i, hist_data) { in event_hist_trigger_print()
5192 field = hist_data->fields[i]; in event_hist_trigger_print()
5204 for (i = 0; i < hist_data->n_sort_keys; i++) { in event_hist_trigger_print()
5211 sort_key = &hist_data->sort_keys[i]; in event_hist_trigger_print()
5217 if (i > 0) in event_hist_trigger_print()
5266 unsigned int i; in unregister_field_var_hists() local
5270 for (i = 0; i < hist_data->n_field_var_hists; i++) { in unregister_field_var_hists()
5271 file = hist_data->field_var_hists[i]->hist_data->event_file; in unregister_field_var_hists()
5272 cmd = hist_data->field_var_hists[i]->cmd; in unregister_field_var_hists()
5390 unsigned int i; in hist_trigger_match() local
5413 for_each_hist_field(i, hist_data) { in hist_trigger_match()
5414 key_field = hist_data->fields[i]; in hist_trigger_match()
5415 key_field_test = hist_data_test->fields[i]; in hist_trigger_match()
5434 for (i = 0; i < hist_data->n_sort_keys; i++) { in hist_trigger_match()
5435 sort_key = &hist_data->sort_keys[i]; in hist_trigger_match()
5436 sort_key_test = &hist_data_test->sort_keys[i]; in hist_trigger_match()