Lines Matching refs:elt_data

707 	struct hist_elt_data *elt_data;  in track_data_free()  local
714 elt_data = track_data->elt.private_data; in track_data_free()
715 if (elt_data) { in track_data_free()
716 kfree(elt_data->comm); in track_data_free()
717 kfree(elt_data); in track_data_free()
728 struct hist_elt_data *elt_data; in track_data_alloc() local
743 elt_data = kzalloc(sizeof(*elt_data), GFP_KERNEL); in track_data_alloc()
744 if (!elt_data) { in track_data_alloc()
749 data->elt.private_data = elt_data; in track_data_alloc()
751 elt_data->comm = kzalloc(TASK_COMM_LEN, GFP_KERNEL); in track_data_alloc()
752 if (!elt_data->comm) { in track_data_alloc()
1271 struct hist_elt_data *elt_data; in hist_field_var_ref() local
1277 elt_data = elt->private_data; in hist_field_var_ref()
1278 var_val = elt_data->var_ref_vals[hist_field->var_ref_idx]; in hist_field_var_ref()
1612 static void hist_elt_data_free(struct hist_elt_data *elt_data) in hist_elt_data_free() argument
1616 for (i = 0; i < elt_data->n_field_var_str; i++) in hist_elt_data_free()
1617 kfree(elt_data->field_var_str[i]); in hist_elt_data_free()
1619 kfree(elt_data->field_var_str); in hist_elt_data_free()
1621 kfree(elt_data->comm); in hist_elt_data_free()
1622 kfree(elt_data); in hist_elt_data_free()
1627 struct hist_elt_data *elt_data = elt->private_data; in hist_trigger_elt_data_free() local
1629 hist_elt_data_free(elt_data); in hist_trigger_elt_data_free()
1636 struct hist_elt_data *elt_data; in hist_trigger_elt_data_alloc() local
1640 elt_data = kzalloc(sizeof(*elt_data), GFP_KERNEL); in hist_trigger_elt_data_alloc()
1641 if (!elt_data) in hist_trigger_elt_data_alloc()
1648 elt_data->comm = kzalloc(size, GFP_KERNEL); in hist_trigger_elt_data_alloc()
1649 if (!elt_data->comm) { in hist_trigger_elt_data_alloc()
1650 kfree(elt_data); in hist_trigger_elt_data_alloc()
1660 hist_elt_data_free(elt_data); in hist_trigger_elt_data_alloc()
1668 elt_data->field_var_str = kcalloc(n_str, sizeof(char *), GFP_KERNEL); in hist_trigger_elt_data_alloc()
1669 if (!elt_data->field_var_str) { in hist_trigger_elt_data_alloc()
1670 hist_elt_data_free(elt_data); in hist_trigger_elt_data_alloc()
1673 elt_data->n_field_var_str = n_str; in hist_trigger_elt_data_alloc()
1676 elt_data->field_var_str[i] = kzalloc(size, GFP_KERNEL); in hist_trigger_elt_data_alloc()
1677 if (!elt_data->field_var_str[i]) { in hist_trigger_elt_data_alloc()
1678 hist_elt_data_free(elt_data); in hist_trigger_elt_data_alloc()
1683 elt->private_data = elt_data; in hist_trigger_elt_data_alloc()
1690 struct hist_elt_data *elt_data = elt->private_data; in hist_trigger_elt_data_init() local
1692 if (elt_data->comm) in hist_trigger_elt_data_init()
1693 save_comm(elt_data->comm, current); in hist_trigger_elt_data_init()
3132 struct hist_elt_data *elt_data = elt->private_data; in __update_field_vars() local
3149 char *str = elt_data->field_var_str[j++]; in __update_field_vars()
3393 struct hist_elt_data *elt_data, *track_elt_data; in cond_snapshot_update() local
3412 elt_data = context->elt->private_data; in cond_snapshot_update()
3414 if (elt_data->comm) in cond_snapshot_update()
3415 strncpy(track_elt_data->comm, elt_data->comm, TASK_COMM_LEN); in cond_snapshot_update()
4293 struct hist_elt_data *elt_data; in hist_field_execname() local
4298 elt_data = elt->private_data; in hist_field_execname()
4300 if (WARN_ON_ONCE(!elt_data->comm)) in hist_field_execname()
4303 return (u64)(unsigned long)(elt_data->comm); in hist_field_execname()
5158 struct hist_elt_data *elt_data; in hist_trigger_elt_update() local
5163 elt_data = elt->private_data; in hist_trigger_elt_update()
5164 elt_data->var_ref_vals = var_ref_vals; in hist_trigger_elt_update()
5183 str = elt_data->field_var_str[idx]; in hist_trigger_elt_update()
5376 struct hist_elt_data *elt_data = elt->private_data; in hist_trigger_print_key() local
5379 if (WARN_ON_ONCE(!elt_data)) in hist_trigger_print_key()
5382 comm = elt_data->comm; in hist_trigger_print_key()