Lines Matching defs:field

87 	struct ftrace_event_field *field;
89 list_for_each_entry(field, head, link) {
90 if (!strcmp(field->name, name))
91 return field;
100 struct ftrace_event_field *field;
104 field = __find_event_field(head, name);
105 if (field)
106 return field;
108 field = __find_event_field(&ftrace_generic_fields, name);
109 if (field)
110 return field;
119 struct ftrace_event_field *field;
121 field = kmem_cache_alloc(field_cachep, GFP_TRACE);
122 if (!field)
125 field->name = name;
126 field->type = type;
129 field->filter_type = filter_assign_type(type);
131 field->filter_type = filter_type;
133 field->offset = offset;
134 field->size = size;
135 field->is_signed = is_signed;
136 field->len = len;
138 list_add(&field->link, head);
219 struct ftrace_event_field *field, *next;
223 list_for_each_entry_safe(field, next, head, link) {
224 list_del(&field->link);
225 kmem_cache_free(field_cachep, field);
240 * head->next points to the last field with the largest offset,
248 * Check if the referenced field is an array and return true,
253 struct trace_event_fields *field = call->class->fields_array;
267 for (; field->type; field++) {
268 if (strncmp(field->name, fmt, len) ||
269 field->name[len])
271 array_descriptor = strchr(field->type, '[');
1576 struct ftrace_event_field *field;
1596 field = list_entry(v, struct ftrace_event_field, link);
1600 * field:TYPE VAR
1602 * field:TYPE VAR[LEN]
1604 array_descriptor = strchr(field->type, '[');
1606 if (str_has_prefix(field->type, "__data_loc"))
1611 field->type, field->name, field->offset,
1612 field->size, !!field->is_signed);
1613 else if (field->len)
1615 (int)(array_descriptor - field->type),
1616 field->type, field->name,
1617 field->len, field->offset,
1618 field->size, !!field->is_signed);
1621 (int)(array_descriptor - field->type),
1622 field->type, field->name,
1623 field->offset, field->size, !!field->is_signed);
2453 struct trace_event_fields *field = call->class->fields_array;
2456 for (; field->type; field++) {
2457 if (field->type == TRACE_FUNCTION_TYPE) {
2458 field->define_fields(call);
2462 offset = ALIGN(offset, field->align);
2463 ret = trace_define_field_ext(call, field->type, field->name,
2464 offset, field->size,
2465 field->is_signed, field->filter_type,
2466 field->len);
2472 offset += field->size;
2858 struct ftrace_event_field *field;
2864 /* Dynamic events should never have field maps */
2869 list_for_each_entry(field, head, link) {
2870 ptr = strchr(field->type, '[');
2881 str = kstrdup(field->type, GFP_KERNEL);
2884 ptr = str + (ptr - field->type);
2900 field->type = str;
3687 * We use the callback data field (which is a pointer)