Lines Matching refs:field
87 struct ftrace_event_field *field; in __find_event_field() local
89 list_for_each_entry(field, head, link) { in __find_event_field()
90 if (!strcmp(field->name, name)) in __find_event_field()
91 return field; in __find_event_field()
100 struct ftrace_event_field *field; in trace_find_event_field() local
104 field = __find_event_field(head, name); in trace_find_event_field()
105 if (field) in trace_find_event_field()
106 return field; in trace_find_event_field()
108 field = __find_event_field(&ftrace_generic_fields, name); in trace_find_event_field()
109 if (field) in trace_find_event_field()
110 return field; in trace_find_event_field()
119 struct ftrace_event_field *field; in __trace_define_field() local
121 field = kmem_cache_alloc(field_cachep, GFP_TRACE); in __trace_define_field()
122 if (!field) in __trace_define_field()
125 field->name = name; in __trace_define_field()
126 field->type = type; in __trace_define_field()
129 field->filter_type = filter_assign_type(type); in __trace_define_field()
131 field->filter_type = filter_type; in __trace_define_field()
133 field->offset = offset; in __trace_define_field()
134 field->size = size; in __trace_define_field()
135 field->is_signed = is_signed; in __trace_define_field()
136 field->len = len; in __trace_define_field()
138 list_add(&field->link, head); in __trace_define_field()
217 struct ftrace_event_field *field, *next; in trace_destroy_fields() local
221 list_for_each_entry_safe(field, next, head, link) { in trace_destroy_fields()
222 list_del(&field->link); in trace_destroy_fields()
223 kmem_cache_free(field_cachep, field); in trace_destroy_fields()
251 struct trace_event_fields *field = call->class->fields_array; in test_field() local
265 for (; field->type; field++) { in test_field()
266 if (strncmp(field->name, fmt, len) || in test_field()
267 field->name[len]) in test_field()
269 array_descriptor = strchr(field->type, '['); in test_field()
1563 struct ftrace_event_field *field; in f_show() local
1583 field = list_entry(v, struct ftrace_event_field, link); in f_show()
1591 array_descriptor = strchr(field->type, '['); in f_show()
1593 if (str_has_prefix(field->type, "__data_loc")) in f_show()
1598 field->type, field->name, field->offset, in f_show()
1599 field->size, !!field->is_signed); in f_show()
1600 else if (field->len) in f_show()
1602 (int)(array_descriptor - field->type), in f_show()
1603 field->type, field->name, in f_show()
1604 field->len, field->offset, in f_show()
1605 field->size, !!field->is_signed); in f_show()
1608 (int)(array_descriptor - field->type), in f_show()
1609 field->type, field->name, in f_show()
1610 field->offset, field->size, !!field->is_signed); in f_show()
2388 struct trace_event_fields *field = call->class->fields_array; in event_define_fields() local
2391 for (; field->type; field++) { in event_define_fields()
2392 if (field->type == TRACE_FUNCTION_TYPE) { in event_define_fields()
2393 field->define_fields(call); in event_define_fields()
2397 offset = ALIGN(offset, field->align); in event_define_fields()
2398 ret = trace_define_field_ext(call, field->type, field->name, in event_define_fields()
2399 offset, field->size, in event_define_fields()
2400 field->is_signed, field->filter_type, in event_define_fields()
2401 field->len); in event_define_fields()
2407 offset += field->size; in event_define_fields()
2696 struct ftrace_event_field *field; in update_event_fields() local
2707 list_for_each_entry(field, head, link) { in update_event_fields()
2708 ptr = strchr(field->type, '['); in update_event_fields()
2719 str = kstrdup(field->type, GFP_KERNEL); in update_event_fields()
2722 ptr = str + (ptr - field->type); in update_event_fields()
2738 field->type = str; in update_event_fields()