Lines Matching refs:n_fields
143 for (i = 0, n_u64 = 0; i < event->n_fields; i++) { in synth_event_define_fields()
362 for (i = 0, n_u64 = 0; i < se->n_fields; i++) { in print_synth_event()
388 i == se->n_fields - 1 ? "" : " "); in print_synth_event()
394 i == se->n_fields - 1 ? "" : " "); in print_synth_event()
417 char *space = (i == se->n_fields - 1 ? "" : " "); in print_synth_event()
570 for (i = 0, n_u64 = 0; i < event->n_fields; i++) { in trace_event_raw_event_synth()
634 for (i = 0; i < event->n_fields; i++) { in __set_synth_event_print_fmt()
638 i == event->n_fields - 1 ? "" : ", "); in __set_synth_event_print_fmt()
642 for (i = 0; i < event->n_fields; i++) { in __set_synth_event_print_fmt()
947 for (i = 0; i < event->n_fields; i++) in free_synth_event()
959 static struct synth_event *alloc_synth_event(const char *name, int n_fields, in alloc_synth_event() argument
978 event->fields = kcalloc(n_fields, sizeof(*event->fields), GFP_KERNEL); in alloc_synth_event()
985 for (i = 0; i < n_fields; i++) in alloc_synth_event()
1002 for (i = 0, j = 0; i < n_fields; i++) { in alloc_synth_event()
1010 event->n_fields = n_fields; in alloc_synth_event()
1064 if (++cmd->n_fields > SYNTH_FIELDS_MAX) in synth_event_add_field()
1106 if (++cmd->n_fields > SYNTH_FIELDS_MAX) in synth_event_add_field_str()
1132 unsigned int n_fields) in synth_event_add_fields() argument
1137 for (i = 0; i < n_fields; i++) { in synth_event_add_fields()
1210 if (++cmd->n_fields > SYNTH_FIELDS_MAX) { in __synth_event_gen_cmd_start()
1252 unsigned int n_fields) in synth_event_gen_cmd_array_start() argument
1264 if (n_fields > SYNTH_FIELDS_MAX) in synth_event_gen_cmd_array_start()
1273 for (i = 0; i < n_fields; i++) { in synth_event_gen_cmd_array_start()
1291 int i, argc, n_fields = 0, ret = 0; in __create_synth_event() local
1374 if (n_fields == SYNTH_FIELDS_MAX) { in __create_synth_event()
1379 fields[n_fields++] = field; in __create_synth_event()
1393 if (n_fields == 0) { in __create_synth_event()
1399 event = alloc_synth_event(name, n_fields, fields); in __create_synth_event()
1419 for (i = 0; i < n_fields; i++) in __create_synth_event()
1450 unsigned int n_fields, struct module *mod) in synth_event_create() argument
1463 fields, n_fields); in synth_event_create()
1746 for (i = 0; i < state.event->n_fields; i++) { in synth_event_trace()
1764 if (n_vals != state.event->n_fields) { in synth_event_trace()
1772 for (i = 0, n_u64 = 0; i < state.event->n_fields; i++) { in synth_event_trace()
1861 if (n_vals != state.event->n_fields) { in synth_event_trace_array()
1868 for (i = 0, n_u64 = 0; i < state.event->n_fields; i++) { in synth_event_trace_array()
1992 for (i = 0; i < event->n_fields; i++) { in __synth_event_add_val()
2002 if (trace_state->cur_field >= event->n_fields) { in __synth_event_add_val()
2234 for (i = 0; i < event->n_fields; i++) { in __synth_event_show()
2246 i == event->n_fields - 1 ? "" : "; "); in __synth_event_show()