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()
1264 struct hist_elt_data *elt_data; in hist_field_var_ref() local
1270 elt_data = elt->private_data; in hist_field_var_ref()
1271 var_val = elt_data->var_ref_vals[hist_field->var_ref_idx]; in hist_field_var_ref()
1605 static void hist_elt_data_free(struct hist_elt_data *elt_data) in hist_elt_data_free() argument
1609 for (i = 0; i < elt_data->n_field_var_str; i++) in hist_elt_data_free()
1610 kfree(elt_data->field_var_str[i]); in hist_elt_data_free()
1612 kfree(elt_data->field_var_str); in hist_elt_data_free()
1614 kfree(elt_data->comm); in hist_elt_data_free()
1615 kfree(elt_data); in hist_elt_data_free()
1620 struct hist_elt_data *elt_data = elt->private_data; in hist_trigger_elt_data_free() local
1622 hist_elt_data_free(elt_data); in hist_trigger_elt_data_free()
1629 struct hist_elt_data *elt_data; in hist_trigger_elt_data_alloc() local
1633 elt_data = kzalloc(sizeof(*elt_data), GFP_KERNEL); in hist_trigger_elt_data_alloc()
1634 if (!elt_data) in hist_trigger_elt_data_alloc()
1641 elt_data->comm = kzalloc(size, GFP_KERNEL); in hist_trigger_elt_data_alloc()
1642 if (!elt_data->comm) { in hist_trigger_elt_data_alloc()
1643 kfree(elt_data); in hist_trigger_elt_data_alloc()
1653 hist_elt_data_free(elt_data); in hist_trigger_elt_data_alloc()
1661 elt_data->field_var_str = kcalloc(n_str, sizeof(char *), GFP_KERNEL); in hist_trigger_elt_data_alloc()
1662 if (!elt_data->field_var_str) { in hist_trigger_elt_data_alloc()
1663 hist_elt_data_free(elt_data); in hist_trigger_elt_data_alloc()
1666 elt_data->n_field_var_str = n_str; in hist_trigger_elt_data_alloc()
1669 elt_data->field_var_str[i] = kzalloc(size, GFP_KERNEL); in hist_trigger_elt_data_alloc()
1670 if (!elt_data->field_var_str[i]) { in hist_trigger_elt_data_alloc()
1671 hist_elt_data_free(elt_data); in hist_trigger_elt_data_alloc()
1676 elt->private_data = elt_data; in hist_trigger_elt_data_alloc()
1683 struct hist_elt_data *elt_data = elt->private_data; in hist_trigger_elt_data_init() local
1685 if (elt_data->comm) in hist_trigger_elt_data_init()
1686 save_comm(elt_data->comm, current); in hist_trigger_elt_data_init()
3125 struct hist_elt_data *elt_data = elt->private_data; in __update_field_vars() local
3142 char *str = elt_data->field_var_str[j++]; in __update_field_vars()
3386 struct hist_elt_data *elt_data, *track_elt_data; in cond_snapshot_update() local
3405 elt_data = context->elt->private_data; in cond_snapshot_update()
3407 if (elt_data->comm) in cond_snapshot_update()
3408 strncpy(track_elt_data->comm, elt_data->comm, TASK_COMM_LEN); in cond_snapshot_update()
4286 struct hist_elt_data *elt_data; in hist_field_execname() local
4291 elt_data = elt->private_data; in hist_field_execname()
4293 if (WARN_ON_ONCE(!elt_data->comm)) in hist_field_execname()
4296 return (u64)(unsigned long)(elt_data->comm); in hist_field_execname()
5150 struct hist_elt_data *elt_data; in hist_trigger_elt_update() local
5155 elt_data = elt->private_data; in hist_trigger_elt_update()
5156 elt_data->var_ref_vals = var_ref_vals; in hist_trigger_elt_update()
5175 str = elt_data->field_var_str[idx]; in hist_trigger_elt_update()
5368 struct hist_elt_data *elt_data = elt->private_data; in hist_trigger_print_key() local
5371 if (WARN_ON_ONCE(!elt_data)) in hist_trigger_print_key()
5374 comm = elt_data->comm; in hist_trigger_print_key()