• Home
  • Raw
  • Download

Lines Matching refs:elt_data

704 	struct hist_elt_data *elt_data;  in track_data_free()  local
711 elt_data = track_data->elt.private_data; in track_data_free()
712 if (elt_data) { in track_data_free()
713 kfree(elt_data->comm); in track_data_free()
714 kfree(elt_data); in track_data_free()
725 struct hist_elt_data *elt_data; in track_data_alloc() local
740 elt_data = kzalloc(sizeof(*elt_data), GFP_KERNEL); in track_data_alloc()
741 if (!elt_data) { in track_data_alloc()
746 data->elt.private_data = elt_data; in track_data_alloc()
748 elt_data->comm = kzalloc(TASK_COMM_LEN, GFP_KERNEL); in track_data_alloc()
749 if (!elt_data->comm) { in track_data_alloc()
1268 struct hist_elt_data *elt_data; in hist_field_var_ref() local
1274 elt_data = elt->private_data; in hist_field_var_ref()
1275 var_val = elt_data->var_ref_vals[hist_field->var_ref_idx]; in hist_field_var_ref()
1599 static void hist_elt_data_free(struct hist_elt_data *elt_data) in hist_elt_data_free() argument
1603 for (i = 0; i < elt_data->n_field_var_str; i++) in hist_elt_data_free()
1604 kfree(elt_data->field_var_str[i]); in hist_elt_data_free()
1606 kfree(elt_data->field_var_str); in hist_elt_data_free()
1608 kfree(elt_data->comm); in hist_elt_data_free()
1609 kfree(elt_data); in hist_elt_data_free()
1614 struct hist_elt_data *elt_data = elt->private_data; in hist_trigger_elt_data_free() local
1616 hist_elt_data_free(elt_data); in hist_trigger_elt_data_free()
1623 struct hist_elt_data *elt_data; in hist_trigger_elt_data_alloc() local
1627 elt_data = kzalloc(sizeof(*elt_data), GFP_KERNEL); in hist_trigger_elt_data_alloc()
1628 if (!elt_data) in hist_trigger_elt_data_alloc()
1635 elt_data->comm = kzalloc(size, GFP_KERNEL); in hist_trigger_elt_data_alloc()
1636 if (!elt_data->comm) { in hist_trigger_elt_data_alloc()
1637 kfree(elt_data); in hist_trigger_elt_data_alloc()
1647 hist_elt_data_free(elt_data); in hist_trigger_elt_data_alloc()
1655 elt_data->field_var_str = kcalloc(n_str, sizeof(char *), GFP_KERNEL); in hist_trigger_elt_data_alloc()
1656 if (!elt_data->field_var_str) { in hist_trigger_elt_data_alloc()
1657 hist_elt_data_free(elt_data); in hist_trigger_elt_data_alloc()
1660 elt_data->n_field_var_str = n_str; in hist_trigger_elt_data_alloc()
1663 elt_data->field_var_str[i] = kzalloc(size, GFP_KERNEL); in hist_trigger_elt_data_alloc()
1664 if (!elt_data->field_var_str[i]) { in hist_trigger_elt_data_alloc()
1665 hist_elt_data_free(elt_data); in hist_trigger_elt_data_alloc()
1670 elt->private_data = elt_data; in hist_trigger_elt_data_alloc()
1677 struct hist_elt_data *elt_data = elt->private_data; in hist_trigger_elt_data_init() local
1679 if (elt_data->comm) in hist_trigger_elt_data_init()
1680 save_comm(elt_data->comm, current); in hist_trigger_elt_data_init()
3100 struct hist_elt_data *elt_data = elt->private_data; in __update_field_vars() local
3113 char *str = elt_data->field_var_str[j++]; in __update_field_vars()
3345 struct hist_elt_data *elt_data, *track_elt_data; in cond_snapshot_update() local
3364 elt_data = context->elt->private_data; in cond_snapshot_update()
3366 if (elt_data->comm) in cond_snapshot_update()
3367 strncpy(track_elt_data->comm, elt_data->comm, TASK_COMM_LEN); in cond_snapshot_update()
4243 struct hist_elt_data *elt_data; in hist_field_execname() local
4248 elt_data = elt->private_data; in hist_field_execname()
4250 if (WARN_ON_ONCE(!elt_data->comm)) in hist_field_execname()
4253 return (u64)(unsigned long)(elt_data->comm); in hist_field_execname()
5084 struct hist_elt_data *elt_data; in hist_trigger_elt_update() local
5089 elt_data = elt->private_data; in hist_trigger_elt_update()
5090 elt_data->var_ref_vals = var_ref_vals; in hist_trigger_elt_update()
5108 str = elt_data->field_var_str[idx]; in hist_trigger_elt_update()
5281 struct hist_elt_data *elt_data = elt->private_data; in hist_trigger_print_key() local
5284 if (WARN_ON_ONCE(!elt_data)) in hist_trigger_print_key()
5287 comm = elt_data->comm; in hist_trigger_print_key()