• Home
  • Raw
  • Download

Lines Matching refs:fields

130 	u64			fields[];  member
136 int offset = offsetof(typeof(trace), fields); in synth_event_define_fields()
144 size = event->fields[i]->size; in synth_event_define_fields()
145 is_signed = event->fields[i]->is_signed; in synth_event_define_fields()
146 type = event->fields[i]->type; in synth_event_define_fields()
147 name = event->fields[i]->name; in synth_event_define_fields()
153 event->fields[i]->offset = n_u64; in synth_event_define_fields()
155 if (event->fields[i]->is_string && !event->fields[i]->is_dynamic) { in synth_event_define_fields()
366 fmt = synth_field_fmt(se->fields[i]->type); in print_synth_event()
375 if (se->fields[i]->is_string) { in print_synth_event()
376 if (se->fields[i]->is_dynamic) { in print_synth_event()
380 offset = (u32)entry->fields[n_u64]; in print_synth_event()
385 trace_seq_printf(s, print_fmt, se->fields[i]->name, in print_synth_event()
391 trace_seq_printf(s, print_fmt, se->fields[i]->name, in print_synth_event()
393 (char *)&entry->fields[n_u64], in print_synth_event()
397 } else if (se->fields[i]->is_stack) { in print_synth_event()
401 offset = (u32)entry->fields[n_u64]; in print_synth_event()
408 trace_seq_printf(s, "%s=STACK:\n", se->fields[i]->name); in print_synth_event()
420 se->fields[i]->name, in print_synth_event()
421 se->fields[i]->size, in print_synth_event()
422 entry->fields[n_u64], in print_synth_event()
425 if (strcmp(se->fields[i]->type, "gfp_t") == 0) { in print_synth_event()
428 entry->fields[n_u64], in print_synth_event()
459 data_offset = offsetof(typeof(*entry), fields); in trace_string()
466 *(u32 *)&entry->fields[*n_u64] = data_offset; in trace_string()
468 ret = kern_fetch_store_string((unsigned long)str_val, &entry->fields[*n_u64], entry); in trace_string()
472 str_field = (char *)&entry->fields[*n_u64]; in trace_string()
500 data_offset = struct_size(entry, fields, event->n_u64); in trace_stack()
520 *(u32 *)&entry->fields[*n_u64] = data_offset; in trace_stack()
572 if (event->fields[i]->is_string) { in trace_event_raw_event_synth()
576 event->fields[i]->is_dynamic, in trace_event_raw_event_synth()
579 } else if (event->fields[i]->is_stack) { in trace_event_raw_event_synth()
586 struct synth_field *field = event->fields[i]; in trace_event_raw_event_synth()
591 *(u8 *)&entry->fields[n_u64] = (u8)val; in trace_event_raw_event_synth()
595 *(u16 *)&entry->fields[n_u64] = (u16)val; in trace_event_raw_event_synth()
599 *(u32 *)&entry->fields[n_u64] = (u32)val; in trace_event_raw_event_synth()
603 entry->fields[n_u64] = val; in trace_event_raw_event_synth()
635 fmt = synth_field_fmt(event->fields[i]->type); in __set_synth_event_print_fmt()
637 event->fields[i]->name, fmt, in __set_synth_event_print_fmt()
643 if (event->fields[i]->is_string && in __set_synth_event_print_fmt()
644 event->fields[i]->is_dynamic) in __set_synth_event_print_fmt()
646 ", __get_str(%s)", event->fields[i]->name); in __set_synth_event_print_fmt()
647 else if (event->fields[i]->is_stack) in __set_synth_event_print_fmt()
649 ", __get_stacktrace(%s)", event->fields[i]->name); in __set_synth_event_print_fmt()
652 ", REC->%s", event->fields[i]->name); in __set_synth_event_print_fmt()
897 INIT_LIST_HEAD(&call->class->fields); in register_synth_event()
948 free_synth_field(event->fields[i]); in free_synth_event()
950 kfree(event->fields); in free_synth_event()
960 struct synth_field **fields) in alloc_synth_event() argument
978 event->fields = kcalloc(n_fields, sizeof(*event->fields), GFP_KERNEL); in alloc_synth_event()
979 if (!event->fields) { in alloc_synth_event()
986 if (fields[i]->is_dynamic) in alloc_synth_event()
1003 fields[i]->field_pos = i; in alloc_synth_event()
1004 event->fields[i] = fields[i]; in alloc_synth_event()
1006 if (fields[i]->is_dynamic) in alloc_synth_event()
1007 event->dynamic_fields[j++] = fields[i]; in alloc_synth_event()
1131 struct synth_field_desc *fields, in synth_event_add_fields() argument
1138 if (fields[i].type == NULL || fields[i].name == NULL) { in synth_event_add_fields()
1143 ret = synth_event_add_field(cmd, fields[i].type, fields[i].name); in synth_event_add_fields()
1251 struct synth_field_desc *fields, in synth_event_gen_cmd_array_start() argument
1274 if (fields[i].type == NULL || fields[i].name == NULL) in synth_event_gen_cmd_array_start()
1277 ret = synth_event_add_field(cmd, fields[i].type, fields[i].name); in synth_event_gen_cmd_array_start()
1289 struct synth_field *field, *fields[SYNTH_FIELDS_MAX]; in __create_synth_event() local
1379 fields[n_fields++] = field; in __create_synth_event()
1399 event = alloc_synth_event(name, n_fields, fields); in __create_synth_event()
1420 free_synth_field(fields[i]); in __create_synth_event()
1449 int synth_event_create(const char *name, struct synth_field_desc *fields, in synth_event_create() argument
1463 fields, n_fields); in synth_event_create()
1569 char *name = NULL, *fields, *p; in create_or_delete_synth_event() local
1600 fields = skip_spaces(p); in create_or_delete_synth_event()
1602 ret = __create_synth_event(name, fields); in create_or_delete_synth_event()
1749 if (state.event->fields[i]->is_string && in synth_event_trace()
1750 state.event->fields[i]->is_dynamic) { in synth_event_trace()
1777 if (state.event->fields[i]->is_string) { in synth_event_trace()
1781 state.event->fields[i]->is_dynamic, in synth_event_trace()
1785 struct synth_field *field = state.event->fields[i]; in synth_event_trace()
1789 *(u8 *)&state.entry->fields[n_u64] = (u8)val; in synth_event_trace()
1793 *(u16 *)&state.entry->fields[n_u64] = (u16)val; in synth_event_trace()
1797 *(u32 *)&state.entry->fields[n_u64] = (u32)val; in synth_event_trace()
1801 state.entry->fields[n_u64] = val; in synth_event_trace()
1869 if (state.event->fields[i]->is_string) { in synth_event_trace_array()
1873 state.event->fields[i]->is_dynamic, in synth_event_trace_array()
1877 struct synth_field *field = state.event->fields[i]; in synth_event_trace_array()
1882 *(u8 *)&state.entry->fields[n_u64] = (u8)val; in synth_event_trace_array()
1886 *(u16 *)&state.entry->fields[n_u64] = (u16)val; in synth_event_trace_array()
1890 *(u32 *)&state.entry->fields[n_u64] = (u32)val; in synth_event_trace_array()
1894 state.entry->fields[n_u64] = val; in synth_event_trace_array()
1993 field = event->fields[i]; in __synth_event_add_val()
2006 field = event->fields[trace_state->cur_field++]; in __synth_event_add_val()
2024 str_field = (char *)&entry->fields[field->offset]; in __synth_event_add_val()
2029 *(u8 *)&trace_state->entry->fields[field->offset] = (u8)val; in __synth_event_add_val()
2033 *(u16 *)&trace_state->entry->fields[field->offset] = (u16)val; in __synth_event_add_val()
2037 *(u32 *)&trace_state->entry->fields[field->offset] = (u32)val; in __synth_event_add_val()
2041 trace_state->entry->fields[field->offset] = val; in __synth_event_add_val()
2152 char *fields, *p; in create_synth_event() local
2175 fields = skip_spaces(p); in create_synth_event()
2199 ret = __create_synth_event(name, fields); in create_synth_event()
2235 field = event->fields[i]; in __synth_event_show()