Lines Matching refs:field
39 struct ftrace_event_field *field; in parse_field() local
60 field = trace_find_event_field(call, field_name); in parse_field()
62 if (!field) in parse_field()
65 *pf = field; in parse_field()
79 if (is_string_field(field)) in parse_field()
94 if (field->is_signed) in parse_field()
108 if (!is_string_field(field)) in parse_field()
140 struct ftrace_event_field *field; in trace_get_entry_size() local
145 list_for_each_entry(field, head, link) { in trace_get_entry_size()
146 if (field->size + field->offset > size) in trace_get_entry_size()
147 size = field->size + field->offset; in trace_get_entry_size()
156 struct ftrace_event_field *field; in trace_alloc_entry() local
166 list_for_each_entry(field, head, link) { in trace_alloc_entry()
167 if (!is_string_field(field)) in trace_alloc_entry()
169 if (field->filter_type == FILTER_STATIC_STRING) in trace_alloc_entry()
171 if (field->filter_type == FILTER_DYN_STRING || in trace_alloc_entry()
172 field->filter_type == FILTER_RDYN_STRING) { in trace_alloc_entry()
176 if (field->filter_type == FILTER_RDYN_STRING) in trace_alloc_entry()
177 str_loc -= field->offset + field->size; in trace_alloc_entry()
179 str_item = (u32 *)(entry + field->offset); in trace_alloc_entry()
184 paddr = (char **)(entry + field->offset); in trace_alloc_entry()
198 struct ftrace_event_field *field; in parse_entry() local
212 while ((len = parse_field(str, call, &field, &val)) > 0) { in parse_entry()
213 if (is_function_field(field)) in parse_entry()
216 if (is_string_field(field)) { in parse_entry()
219 if (field->filter_type == FILTER_STATIC_STRING) { in parse_entry()
220 strscpy(entry + field->offset, addr, field->size); in parse_entry()
221 } else if (field->filter_type == FILTER_DYN_STRING || in parse_entry()
222 field->filter_type == FILTER_RDYN_STRING) { in parse_entry()
236 str_item = (u32 *)(entry + field->offset); in parse_entry()
237 if (field->filter_type == FILTER_RDYN_STRING) in parse_entry()
238 str_loc -= field->offset + field->size; in parse_entry()
243 paddr = (char **)(entry + field->offset); in parse_entry()
247 switch (field->size) { in parse_entry()
251 memcpy(entry + field->offset, &tmp, 1); in parse_entry()
257 memcpy(entry + field->offset, &tmp, 2); in parse_entry()
263 memcpy(entry + field->offset, &tmp, 4); in parse_entry()
267 memcpy(entry + field->offset, &val, 8); in parse_entry()